X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Findependent-series.html;h=fd2618fd04397b9a27b65d889c9c3472e8eb7da8;hb=606568fef36a321148399da4c58a05e2753ac2f9;hp=e3ae8a4a5e07240c18e0027942074bd18b486cba;hpb=c6a0ebbac1ac1454b2d633e6623eef7e1913f5e1;p=dygraphs.git diff --git a/tests/independent-series.html b/tests/independent-series.html index e3ae8a4..fd2618f 100644 --- a/tests/independent-series.html +++ b/tests/independent-series.html @@ -1,3 +1,4 @@ + Independent Series @@ -27,6 +28,7 @@ +

Independent Series

By using the connectSeparated attribute, it's possible to display a chart of several time series with completely independent x-values.

The trick is to specify values for the series at the union of the x-values of all series. For one series' x values, specify null for each of the other series.

@@ -126,7 +128,7 @@

The gap would normally be encoded as a null, or missing value. But when you use connectSeparatedPoints, that has a special meaning. Instead, you have to use NaN. This is a bit of a hack, but it gets the job done.