X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=tests%2Fplotters.html;h=c354d5b5ce6dae6e69c2ea578c73a240db3849b8;hb=9d3fcd6a7073787f5b994ed10d5bd53a9c1e64dc;hp=104ab78092e74a02eea459ede2ec8b55202c4ec1;hpb=98bb0633936c9713bfdd34a37989ff9ef60bf149;p=dygraphs.git
diff --git a/tests/plotters.html b/tests/plotters.html
index 104ab78..c354d5b 100644
--- a/tests/plotters.html
+++ b/tests/plotters.html
@@ -1,11 +1,7 @@
-
Plotters demo
-
@@ -111,8 +107,12 @@
includeZero: true,
dateWindow: [ Date.parse("2012/07/20"), Date.parse("2012/07/26") ],
animatedZooms: true,
- drawXGrid: false,
- plotter: barChartPlotter
+ plotter: barChartPlotter,
+ axes: {
+ x: {
+ drawGrid: false
+ }
+ }
}
);
@@ -246,11 +246,13 @@ var candleData = "Date,Open,Close,High,Low\n" +
{
labels: ['Date', 'A', 'B'],
includeZero: true,
- "A": {
- strokeWidth: 2
- },
- "B": {
- plotter: barChartPlotter
+ series: {
+ "A": {
+ strokeWidth: 2
+ },
+ "B": {
+ plotter: barChartPlotter
+ }
}
});
@@ -314,12 +316,14 @@ var candleData = "Date,Open,Close,High,Low\n" +
NoisyData(),
{
errorBars: true,
- 'A': {
- plotter: Dygraph.Plotters.errorPlotter
- },
- 'B': {
- plotter: Dygraph.Plotters.linePlotter,
- strokePattern: Dygraph.DASHED_LINE
+ series: {
+ 'A': {
+ plotter: Dygraph.Plotters.errorPlotter
+ },
+ 'B': {
+ plotter: Dygraph.Plotters.linePlotter,
+ strokePattern: Dygraph.DASHED_LINE
+ }
}
});