James Moger
2014-05-15 7b835f5a9bb54de4997ea16dc48971aa20b1bbbf
src/main/java/com/gitblit/wicket/charting/Flotr2LineChart.java
@@ -80,7 +80,7 @@
         }
         line(sb, MessageFormat.format("[{0}, {1}] ",  value.name, Float.toString(value.value)));
      }
      line(sb, MessageFormat.format(" ], label : ''{0}'', lines : '{' show : true '}', color: ''#ff9900'' '}'", valueName));
      line(sb, MessageFormat.format(" ], label : \"{0}\", lines : '{' show : true '}', color: ''#ff9900'' '}'", valueName));
      
      if(highlights.size() > 0){
         // get the highlights
@@ -92,14 +92,14 @@
            }
            line(sb, MessageFormat.format("[{0}, {1}] ",  value.name, Float.toString(value.value)));
         }
         line(sb, MessageFormat.format(" ], label : ''{0}'', points : '{' show : true, fill: true, fillColor:''#002060'' '}', color: ''#ff9900'' '}'", valueName));
         line(sb, MessageFormat.format(" ], label : \"{0}\", points : '{' show : true, fill: true, fillColor:''#002060'' '}', color: ''#ff9900'' '}'", valueName));
      }
      line(sb, "]");
      
      // Add the options
      line(sb, ", {");
      if(title != null && title.isEmpty() == false){
         line(sb, MessageFormat.format("title : ''{0}'',", title));
         line(sb, MessageFormat.format("title : \"{0}\",", title));
      }
      line(sb, "mouse: {");
      line(sb, "  track: true,");