X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fsmall-range-zero.html;h=0f202ddabe7d6223b6c9661362924ceb36b803ae;hb=2b66af4f76dcd72d22f5844cb7684f3cb79fde42;hp=3647125d085620f3ecd09411d26c2a5352a53096;hpb=44f29e932dcbe83c1bfaebb8735579392e27a5df;p=dygraphs.git diff --git a/tests/small-range-zero.html b/tests/small-range-zero.html index 3647125..0f202dd 100644 --- a/tests/small-range-zero.html +++ b/tests/small-range-zero.html @@ -1,15 +1,13 @@ - no range - - - - - + + +

There should be an appropriate amount of padding at the top of the chart:

@@ -22,7 +20,7 @@ return "date," + label + "\n20091206,2659329.631743\n20091213,2772361.123362\n20091220,2737584.647191\n20091227,2720000.550414\n20100103,2910306.897977\n20100110,2901385.313093\n20100117,2903041.312099\n20100124,2966455.128911\n"; } - new Dygraph(document.getElementById("blah"), + var g1 = new Dygraph(document.getElementById("blah"), CSV, { width: 640, @@ -53,7 +51,7 @@ str += data[i].join(",") + "\n"; } - new Dygraph(document.getElementById("blah2"), + var g2 = new Dygraph(document.getElementById("blah2"), str, { labels: [ "date", "zero", "non-zero" ] });