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: how to use it:
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
``` ```
var d1 = [[5,5],[7,3],[9,12]]; ... lines: { show: true},
var options = { series: { curvedLines: { active: true }}}; curvedLines: {
$.plot($("#placeholder"), [{data: d1, lines: { show: true}, curvedLines: {apply: true}}], options); apply: true,
``` tension: 1
} ...
```
or
```
... lines: { show: true},
curvedLines: {
apply: true,
nrSplinePoints: 30,
monotonicFit: true
} ...
```
or ....
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
options: options:

Loading…
Cancel
Save