Commit b942d5c1 authored by Michael's avatar Michael

Update README

parent dddb14a7
...@@ -7,11 +7,12 @@ Feel free to add additional features and correct errors. ...@@ -7,11 +7,12 @@ Feel free to add additional features and correct errors.
Regards Michael Regards Michael
Update: ### Update:
added tests/Issue18.htm with a better explanation of the curvePointFactor and fitPointDist parameter! added tests/Issue18.htm with a better explanation of the curvePointFactor
and fitPointDist parameter!
how to use it: ### how to use it:
____________________________________________________ ____________________________________________________
var d1 = [[5,5],[7,3],[9,12]]; var d1 = [[5,5],[7,3],[9,12]];
...@@ -19,18 +20,20 @@ added tests/Issue18.htm with a better explanation of the curvePointFactor and fi ...@@ -19,18 +20,20 @@ added tests/Issue18.htm with a better explanation of the curvePointFactor and fi
var options = { series: { curvedLines: { active: true }}}; var options = { series: { curvedLines: { active: true }}};
//you might want to adjust curvePointFactor //you might want to adjust curvePointFactor
$.plot($("#placeholder"), [{data = d1, lines: { show: true}, curvedLines: {apply: true}}], options); $.plot($("#placeholder"), [{data = d1, lines: { show: true},
curvedLines: {apply: true}}], options);
_____________________________________________________ _____________________________________________________
options: ### options:
_____________________________________________________ _____________________________________________________
active: bool true => plugin can be used active: bool true => plugin can be used
apply: bool true => series will be drawn as curved line 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 fit: bool true => forces the max,mins of the curve to
curvePointFactor int defines how many "virtual" points are used per "real" data point to be on the datapoints
emulate the curvedLines (points total = real points * curvePointFactor) curvePointFactor int defines how many "virtual" points are used per "real" data
fitPointDist: int defines the x axis distance of the additional two points that are used point to emulate the curvedLines (points total = real
to enforce the min max condition. points * curvePointFactor)
_____________________________________________________ fitPointDist: int defines the x axis distance of the additional two points
that are used to enforce the min max condition.
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