X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Findependent-series.js;h=5ff8d1337a286fbd74a5d710752e2516336db44c;hb=866ceb258a016484e30d2c7f96cb6cbb9ff05c8c;hp=5de2e8b45b422e23ea11728e5393c68c1c528b59;hpb=795b16307db2a673ba7aa3452f6f6b0e93baeb3a;p=dygraphs.git diff --git a/gallery/independent-series.js b/gallery/independent-series.js index 5de2e8b..5ff8d13 100644 --- a/gallery/independent-series.js +++ b/gallery/independent-series.js @@ -5,84 +5,84 @@ Gallery.register( name: 'Independent Series', title: 'Independent Series', setup: function(parent) { - parent.innerHTML = - "
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.
For example, say you had two series:
\ - \
-
\
- | \
-
Then you would specify the following CSV or native data: \ -
Encoding a gap\ -There's one extra wrinkle. What if one of the series has a missing \ - value, i.e. what if your series are something like \ -\ -
|