X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Findependent-series.html;h=1a2153f9a015bd96213336db025d3dd14d8a5636;hb=d97bf726ccc5645e60171f86b134fb29ac31b846;hp=e3ae8a4a5e07240c18e0027942074bd18b486cba;hpb=c6a0ebbac1ac1454b2d633e6623eef7e1913f5e1;p=dygraphs.git diff --git a/tests/independent-series.html b/tests/independent-series.html index e3ae8a4..1a2153f 100644 --- a/tests/independent-series.html +++ b/tests/independent-series.html @@ -1,13 +1,13 @@ + 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.

@@ -78,7 +79,7 @@ + + + + + +
+ Index +
 
+0
+1
+2
+3
+4
+5
+6
+7
+8
+
+ (CSV) +
x,A,B
+0,2,1
+1,3,2
+2,3,1
+3,,
+4,4,
+5,3,
+6,3,
+7,3,
+8,4,2
+
+ (native) +
[ 
+  [0, 2, 1], 
+  [1, 3, 2],
+  [2, 3, 1],
+  [3, null, null],
+  [4, 4, null],
+  [5, 3, null],
+  [6, 3, null],
+  [7, 3, null],
+  [8, 4, 2] ]
+
+