Permalink
Browse files

Add a title parameter which can be used to give the gnuplot graph a t…

…itle
  • Loading branch information...
1 parent 40c149c commit e03e949ad9496607ba22867f0626cbf7cf8f2965 Kraig Amador committed Sep 16, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/tsd/GraphHandler.java
@@ -675,6 +675,9 @@ static void setPlotParams(final HttpQuery query, final Plot plot) {
if ((value = popParam(querystring, "key")) != null) {
params.put("key", value);
}
+ if ((value = popParam(querystring, "title")) != null) {
+ params.put("title", "\"" + value + "\"");
+ }
// This must remain after the previous `if' in order to properly override
// any previous `key' parameter if a `nokey' parameter is given.
if ((value = popParam(querystring, "nokey")) != null) {

0 comments on commit e03e949

Please sign in to comment.