From 0dc303ebd2a9d2668e6e0decad4bd94c050a8b24 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 6 Dec 2014 15:13:57 +0100 Subject: [PATCH] Update README.md updated example options --- README.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b5ba26b..aae5604 100644 --- a/README.md +++ b/README.md @@ -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: