collection.js: use unicode escape instead of UTF8 as it is sent with no charset header
[collection4.git] / share / collection.js
index 57de19d..158a36e 100644 (file)
@@ -358,6 +358,9 @@ function inst_get_chart_opts (inst, def) /* {{{ */
   if (def.title)
     chart_opts.title = { text: def.title };
 
+  if (def.vertical_label)
+    chart_opts.yAxis.title = { text: def.vertical_label };
+
   return (chart_opts);
 } /* }}} function chart_opts_get */
 
@@ -396,7 +399,10 @@ function inst_redraw (inst, def, data_list) /* {{{ */
   }
 
   for (i = inst.chart.series.length - 1; i >= 0; i--)
+  {
+    series_array[i].visible = inst.chart.series[i].visible;
     inst.chart.series[i].remove (/* redraw = */ false);
+  }
 
   for (i = 0; i < series_array.length; i++)
     inst.chart.addSeries (series_array[i], /* redraw = */ false);
@@ -680,10 +686,10 @@ $(document).ready(function() {
         + "<div class=\"graph-button\" onClick=\"zoom_reference ('"+id+"');\">!</div>"
         + "</div>"
         + "<div class=\"graph-buttons navigation\">"
-        + "<div class=\"graph-button\" onClick=\"zoom_earlier ('"+id+"');\"></div>"
-        + "<div class=\"graph-button\" onClick=\"zoom_out     ('"+id+"');\"></div>"
+        + "<div class=\"graph-button\" onClick=\"zoom_earlier ('"+id+"');\">\u2190</div>"
+        + "<div class=\"graph-button\" onClick=\"zoom_out     ('"+id+"');\">\u2212</div>"
         + "<div class=\"graph-button\" onClick=\"zoom_in      ('"+id+"');\">+</div>"
-        + "<div class=\"graph-button\" onClick=\"zoom_later   ('"+id+"');\"></div>"
+        + "<div class=\"graph-button\" onClick=\"zoom_later   ('"+id+"');\">\u2192</div>"
         + "</div>"
         );
     });