From 98bb0633936c9713bfdd34a37989ff9ef60bf149 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Sun, 16 Nov 2014 16:15:54 -0500 Subject: [PATCH] move smooth plotter into its own demo --- tests/plotters.html | 47 +---------------------------- tests/smooth-plots.html | 79 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 46 deletions(-) create mode 100644 tests/smooth-plots.html 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.

+ + + + -- 2.7.4