1. BeezyT
  2. jqplot

Commits

cleonello  committed f9e9524

Fixed bug where cursor legend didn't honor series showLabel option. Added example of axis scaling and new force tick at 0 and 100 options.

  • Participants
  • Parent commits 5e84960
  • Branches default

Comments (0)

Files changed (2)

File examples/canvasOverlay.html

View file
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <!-- Use Compatibility mode in IE -->
   <title>Bar Charts</title>
+  <!--[if lt IE 9]><script language="javascript" type="text/javascript" src="../src/excanvas.js"></script><![endif]-->
   
   <link rel="stylesheet" type="text/css" href="../src/jquery.jqplot.css" />
   <link rel="stylesheet" type="text/css" href="../examples/examples.css" />

File src/plugins/jqplot.cursor.js

View file
             var pad = false;
             for (var i = 0; i< series.length; i++) {
                 s = series[i];
-                if (s.show) {
+                if (s.show && s.showLabel) {
                     var lt = $.jqplot.sprintf(this.formatString, s.label.toString());
                     if (lt) {
                         var color = s.color;
                     }
                 }
             }
+            series = s = null;
+            delete series;
+            delete s;
         }
         
         function addrow(label, color, pad, idx) {