X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=gallery%2Findependent-series.js;h=cc411533cf9916b6d9b760e22831c7a5a59e039f;hb=406714e12102ee6714774e2801622577ca0daa16;hp=5de2e8b45b422e23ea11728e5393c68c1c528b59;hpb=c1f22b5a5d4ffbf25a75fc567232e65381c1938b;p=dygraphs.git diff --git a/gallery/independent-series.js b/gallery/independent-series.js index 5de2e8b..cc41153 100644 --- a/gallery/independent-series.js +++ b/gallery/independent-series.js @@ -1,88 +1,87 @@ -// Use this as a template for new Gallery entries. Gallery.register( 'independent-series', { 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 \ -\ -
|