Update README.md

updated example options
pull/27/head
Michael 11 years ago
parent a45bc8badf
commit 0dc303ebd2

@ -22,10 +22,23 @@ The old fit option has been replaced with monotonicFit, which if set, enforces t
how to use it:
* * * * * * * * * * * * * * * * * * * * * * * *
```
var d1 = [[5,5],[7,3],[9,12]];
var options = { series: { curvedLines: { active: true }}};
$.plot($("#placeholder"), [{data: d1, lines: { show: true}, curvedLines: {apply: true}}], options);
```
... lines: { show: true},
curvedLines: {
apply: true,
tension: 1
} ...
```
or
```
... lines: { show: true},
curvedLines: {
apply: true,
nrSplinePoints: 30,
monotonicFit: true
} ...
```
or ....
* * * * * * * * * * * * * * * * * * * * * * * *
options:

Loading…
Cancel
Save