Skip to content

Commit

Permalink
Add a title parameter which can be used to give the gnuplot graph a t…
Browse files Browse the repository at this point in the history
…itle
  • Loading branch information
Kraig Amador committed Sep 16, 2011
1 parent 40c149c commit e03e949
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tsd/GraphHandler.java
Expand Up @@ -675,6 +675,9 @@ static void setPlotParams(final HttpQuery query, final Plot plot) {
if ((value = popParam(querystring, "key")) != null) { if ((value = popParam(querystring, "key")) != null) {
params.put("key", value); 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 // This must remain after the previous `if' in order to properly override
// any previous `key' parameter if a `nokey' parameter is given. // any previous `key' parameter if a `nokey' parameter is given.
if ((value = popParam(querystring, "nokey")) != null) { if ((value = popParam(querystring, "nokey")) != null) {
Expand Down

0 comments on commit e03e949

Please sign in to comment.