From 0ea3616771d339450b54b090a651fd7eb3e27feb Mon Sep 17 00:00:00 2001 From: manuel.luis Date: Thu, 15 Jan 2015 01:35:35 +0100 Subject: jsrrdgraph: Fix parse AREA in cmd line. --- js/RrdCmdLine.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/RrdCmdLine.js b/js/RrdCmdLine.js index 48b3d9d..581e2f0 100644 --- a/js/RrdCmdLine.js +++ b/js/RrdCmdLine.js @@ -442,9 +442,9 @@ RrdCmdLine.prototype = { parse_area: function (line) { var args = line.split(/#|:/); - var stack = args[3] === 'STACK' ? true : undefined; + var stack = args[4] === 'STACK' ? true : undefined; var color = this.graph.parse_color(args[2]); - this.graph.gdes_add_area(args[1], this.graph.color2rgba(color), stack); + this.graph.gdes_add_area(args[1], this.graph.color2rgba(color), args[3], stack); }, // TICK:vname#rrggbb[aa][:fraction[:legend]] parse_tick: function (line) -- cgit v1.1