From a5ffcea3f2edf3bce54d3e7b8863a8287366b686 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 22 Dec 2010 18:05:50 +0100 Subject: [PATCH] share/collection.js: Fix a typo. --- share/collection.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/collection.js b/share/collection.js index c720086..6aff20f 100644 --- a/share/collection.js +++ b/share/collection.js @@ -218,7 +218,6 @@ function def_draw_one (def, data, chart_opts) /* {{{ */ var chart_series = new Object (); chart_series.type = 'line'; - chart_series.name = def.legend || def.data_source; chart_series.pointInterval = data.interval * 1000; chart_series.pointStart = data.first_value_time * 1000; chart_series.data = data.data; @@ -226,6 +225,11 @@ function def_draw_one (def, data, chart_opts) /* {{{ */ chart_series.shadow = false; chart_series.marker = { enabled: false }; + if (def.legend) + chart_series.name = def.legend; + else if (def.ds_name) + chart_series.name = def.ds_name; + if (def.area) chart_series.type = 'area'; -- 2.30.2