X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Findependent-series.html;h=b9f07bfddcd413ab89782a2d7184a8ae482f8381;hb=627e054d1d77a0a8b02ed684b4105c5beafbc52a;hp=37cf0e0c60db7963f1a2dc17b3ef444c099c0130;hpb=876cc77c81254b2d4f6c1016a887714142c580a4;p=dygraphs.git diff --git a/tests/independent-series.html b/tests/independent-series.html index 37cf0e0..b9f07bf 100644 --- a/tests/independent-series.html +++ b/tests/independent-series.html @@ -1,13 +1,14 @@ +
+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.
+ 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] ]+ |
+