From: Robert Konigsberg Date: Tue, 28 Feb 2012 11:31:46 +0000 (-0500) Subject: More name standardization. X-Git-Tag: v1.0.0~314^2~9 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=d0c6a883771cf625d9d57f516dbc5f3121c2fc86;p=dygraphs.git More name standardization. --- diff --git a/gallery/avoid-min-zero.js b/gallery/avoid-min-zero.js new file mode 100644 index 0000000..9d72980 --- /dev/null +++ b/gallery/avoid-min-zero.js @@ -0,0 +1,60 @@ +Gallery.register( + 'avoid-min-zero', + { + name: "Avoid Min Zero", + setup: function(parent) { + parent.innerHTML = + "

1: Line chart with axis at zero problem:

" + + "

2: Step chart with axis at zero problem:

" + + "

3: Line chart with avoidMinZero option:

" + + "

4: Step chart with avoidMinZero option:

"; + }, + run: function() { + var g1 = new Dygraph(document.getElementById("graph1"), + "Date,Temperature\n" + + "2008-05-07,0\n" + + "2008-05-08,1\n" + + "2008-05-09,0\n" + + "2008-05-10,0\n" + + "2008-05-11,3\n" + + "2008-05-12,4\n" + ) + var g2 = new Dygraph(document.getElementById("graphd2"), + "Date,Temperature\n" + + "2008-05-07,0\n" + + "2008-05-08,1\n" + + "2008-05-09,0\n" + + "2008-05-10,0\n" + + "2008-05-11,3\n" + + "2008-05-12,4\n", + { + stepPlot: true + } + ) + var g3 = new Dygraph(document.getElementById("graph3"), + "Date,Temperature\n" + + "2008-05-07,0\n" + + "2008-05-08,1\n" + + "2008-05-09,0\n" + + "2008-05-10,0\n" + + "2008-05-11,3\n" + + "2008-05-12,4\n", + { + avoidMinZero: true + } + ) + var g4 = new Dygraph(document.getElementById("graphd4"), + "Date,Temperature\n" + + "2008-05-07,0\n" + + "2008-05-08,1\n" + + "2008-05-09,0\n" + + "2008-05-10,0\n" + + "2008-05-11,3\n" + + "2008-05-12,4\n", + { + stepPlot: true, + avoidMinZero: true + } + ) + } +}); diff --git a/gallery/avoidMinZero.js b/gallery/avoidMinZero.js deleted file mode 100644 index 9d72980..0000000 --- a/gallery/avoidMinZero.js +++ /dev/null @@ -1,60 +0,0 @@ -Gallery.register( - 'avoid-min-zero', - { - name: "Avoid Min Zero", - setup: function(parent) { - parent.innerHTML = - "

1: Line chart with axis at zero problem:

" + - "

2: Step chart with axis at zero problem:

" + - "

3: Line chart with avoidMinZero option:

" + - "

4: Step chart with avoidMinZero option:

"; - }, - run: function() { - var g1 = new Dygraph(document.getElementById("graph1"), - "Date,Temperature\n" + - "2008-05-07,0\n" + - "2008-05-08,1\n" + - "2008-05-09,0\n" + - "2008-05-10,0\n" + - "2008-05-11,3\n" + - "2008-05-12,4\n" - ) - var g2 = new Dygraph(document.getElementById("graphd2"), - "Date,Temperature\n" + - "2008-05-07,0\n" + - "2008-05-08,1\n" + - "2008-05-09,0\n" + - "2008-05-10,0\n" + - "2008-05-11,3\n" + - "2008-05-12,4\n", - { - stepPlot: true - } - ) - var g3 = new Dygraph(document.getElementById("graph3"), - "Date,Temperature\n" + - "2008-05-07,0\n" + - "2008-05-08,1\n" + - "2008-05-09,0\n" + - "2008-05-10,0\n" + - "2008-05-11,3\n" + - "2008-05-12,4\n", - { - avoidMinZero: true - } - ) - var g4 = new Dygraph(document.getElementById("graphd4"), - "Date,Temperature\n" + - "2008-05-07,0\n" + - "2008-05-08,1\n" + - "2008-05-09,0\n" + - "2008-05-10,0\n" + - "2008-05-11,3\n" + - "2008-05-12,4\n", - { - stepPlot: true, - avoidMinZero: true - } - ) - } -}); diff --git a/gallery/border.js b/gallery/border.js index a07c761..38adf5c 100644 --- a/gallery/border.js +++ b/gallery/border.js @@ -1,5 +1,5 @@ Gallery.register( - 'border-test', + 'border', { name: "Border test", title: 'Graph stays within the border', diff --git a/gallery/callback.js b/gallery/callback.js deleted file mode 100644 index 8891b4c..0000000 --- a/gallery/callback.js +++ /dev/null @@ -1,84 +0,0 @@ -Gallery.register( - 'callbacks', - { - name: "Callbacks", - title: "Hover, click and zoom to test the callbacks.", - setup: function(parent) { - parent.innerHTML = - "
" + - "