From: Dan Vanderkam Date: Sun, 16 Nov 2014 21:15:54 +0000 (-0500) Subject: move smooth plotter into its own demo X-Git-Tag: v1.1.0~25^2 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=refs%2Fheads%2Fre-smooth-plotter;p=dygraphs.git move smooth plotter into its own demo --- diff --git a/tests/plotters.html b/tests/plotters.html index 7f5242b..104ab78 100644 --- a/tests/plotters.html +++ b/tests/plotters.html @@ -7,7 +7,6 @@ - @@ -56,9 +52,7 @@

Smooth Lines

-

This plotter draws smooth lines between points using bezier curves:

- Smoothing: 
-
+

See the smooth-plots demo for an example of a custom plotter which connects points using bezier curves instead of straight lines.

diff --git a/tests/smooth-plots.html b/tests/smooth-plots.html new file mode 100644 index 0000000..175da2d --- /dev/null +++ b/tests/smooth-plots.html @@ -0,0 +1,79 @@ + + + + + Plotters demo + + + + + + + +

Smooth Lines

+

This plotter draws smooth lines between points using bezier curves.

+

Smoothing:  0.33

+
+ +

View source to see how this works. You'll have to source extras/smooth-plotter.js in addition to dygraphs to get this feature. See the pull request that introduced this plotter to learn more about how it smooths your curves.

+ + + +