X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Findependent-series.html;h=d0ac975105b1c0638d6417864efd54a1a6e5fb8d;hb=d570a072a5b2b2cca3fe74bac9b60aebbb6c5b0e;hp=e3ae8a4a5e07240c18e0027942074bd18b486cba;hpb=c6a0ebbac1ac1454b2d633e6623eef7e1913f5e1;p=dygraphs.git diff --git a/tests/independent-series.html b/tests/independent-series.html index e3ae8a4..d0ac975 100644 --- a/tests/independent-series.html +++ b/tests/independent-series.html @@ -1,13 +1,17 @@ + + Independent Series - - - - + + + +

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 +131,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.