From 546377f936a53d16c823892a5acfc08553c3c564 Mon Sep 17 00:00:00 2001 From: Manuel Luis SanmartĂ­n Rozada Date: Thu, 30 Jan 2014 23:46:18 +0100 Subject: jsrrdgraph: Fix errors in second axis. --- js/RrdGraph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/RrdGraph.js b/js/RrdGraph.js index 40d70da..cf39f8f 100644 --- a/js/RrdGraph.js +++ b/js/RrdGraph.js @@ -1825,7 +1825,7 @@ RrdGraph.prototype.axis_paint = function() if (this.second_axis_scale != 0){ this.gfx.line (this.xorigin+this.xsize,this.yorigin+4, this.xorigin+this.xsize,this.yorigin-this.ysize-4, - MGRIDWIDTH, this.graph_col[this.GRC.AXIS]); + this.MGRIDWIDTH, this.GRC.AXIS); this.gfx.new_area (this.xorigin+this.xsize-2, this.yorigin-this.ysize-2, this.xorigin+this.xsize+3, this.yorigin-this.ysize-2, this.xorigin+this.xsize, this.yorigin-this.ysize-7, /* LINEOFFSET */ @@ -2294,7 +2294,7 @@ RrdGraph.prototype.draw_horizontal_grid = function() nlabels++; if (this.second_axis_scale != 0){ var graph_label_right; - sval = this.ygrid_scale.gridstep*i*this.second_axis_scale+this.second_axis_shift; + var sval = this.ygrid_scale.gridstep*i*this.second_axis_scale+this.second_axis_shift; if (!this.second_axis_format){ if (!second_axis_magfact){ var dummy = this.ygrid_scale.gridstep*(sgrid+egrid)/2.0*this.second_axis_scale+this.second_axis_shift; -- cgit v1.1