Commit 84d7785c authored by MichaelZinsmaier's avatar MichaelZinsmaier

small fix to stay compatible with flot 0.8

parent f277e912
......@@ -60,10 +60,9 @@
active: bool true => plugin can be used
apply: bool true => series will be drawn as curved line
fit: bool true => forces the max,mins of the curve to be on the datapoints
curvePointFactor number defines how many "virtual" points are used per "real" data point to
curvePointFactor int defines how many "virtual" points are used per "real" data point to
emulate the curvedLines
fitPointDist: number guessed by default can be set manually.
defines the x axis distance of the additional two points that are used
fitPointDist: int defines the x axis distance of the additional two points that are used
to enforce the min max condition. (you will get curvePointFactor * 3 * |datapoints|
"virtual" points if fit is true)
......@@ -151,7 +150,7 @@
newSerie.lines = $.extend({}, series.lines);
newSerie.lines.fill = undefined;
newSerie.label = undefined;
newSerie.datapoints = {};
newSerie.datapoints = $.extend({}, series.datapoints);
//Redefine datapoints to top only (else it can have null values which will open the cruve !)
newSerie.datapoints.points = pointsTop;
newSerie.datapoints.pointsize = 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment