Code

share/collection.js: Add the vertical (y-axis) label.
authorFlorian Forster <octo@noris.net>
Thu, 23 Dec 2010 08:29:40 +0000 (09:29 +0100)
committerFlorian Forster <octo@noris.net>
Thu, 23 Dec 2010 08:29:40 +0000 (09:29 +0100)
share/collection.js

index 57de19dd44a9f8fe9575ed97762d2f40dfa26905..57bd04dbb0ce1960b2c2d06e946acf20a154b846 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 */