X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fannotation-gviz.html;h=ec458b0c7e15f115e1067afd7eaeeb2837dd155a;hb=debdb88d1ccca3648f45d6cc5d49896f3014cfdd;hp=2bb64dbf7521dd30f914f61a3fdc9079e88a977a;hpb=2d9596f2fd2a3c8d8d064c0f68a22c69ef82626b;p=dygraphs.git diff --git a/tests/annotation-gviz.html b/tests/annotation-gviz.html index 2bb64db..ec458b0 100644 --- a/tests/annotation-gviz.html +++ b/tests/annotation-gviz.html @@ -6,6 +6,7 @@ @@ -24,14 +25,20 @@ data.addColumn('string', 'title2'); data.addColumn('string', 'text2'); data.addRows([ - [new Date(2008, 1 ,1), 30000, undefined, undefined, 40645, undefined, undefined], - [new Date(2008, 1 ,2), 14045, undefined, undefined, 20374, undefined, undefined], - [new Date(2008, 1 ,3), 55022, undefined, undefined, 50766, undefined, undefined], - [new Date(2008, 1 ,4), 75284, undefined, undefined, 14334, 'Out of Stock','Ran out of stock on pens at 4pm'], - [new Date(2008, 1 ,5), 41476, 'Bought Pens','Bought 200k pens', 66467, undefined, undefined], - [new Date(2008, 1 ,6), 33322, undefined, undefined, 39463, undefined, undefined] + [new Date(2008, 11 ,1), 30000, undefined, undefined, 40645, undefined, undefined], + [new Date(2008, 11 ,2), 14045, undefined, undefined, 20374, undefined, undefined], + [new Date(2008, 11 ,3), 55022, undefined, undefined, 50766, undefined, undefined], + [new Date(2008, 11 ,4), 75284, undefined, undefined, 14334, 'Out of Stock','Ran out of stock on pens at 4pm'], + [new Date(2008, 11 ,5), 41476, 'Bought Pens','Bought 200k pens', 66467, undefined, undefined], + [new Date(2008, 11 ,6), 33322, undefined, undefined, 39463, undefined, undefined] ]); + for (var i = 1; i < 14; i++) { + data.addRows([ + [new Date(2008, 11 , 6 + i), i * 1000, 'title1-' + i, 'text1 ' + (i * 1000 - i), (i * 2000 + i), 'title2-' + i, 'text2' + i * 1000], + ]); + } + var chart = new google.visualization.AnnotatedTimeLine(document.getElementById('gviz_div')); chart.draw(data, {displayAnnotations: true}); @@ -49,4 +56,3 @@