projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rebase (Straw broom) Plugin
[dygraphs.git]
/
auto_tests
/
tests
/
to_dom_coords.js
diff --git
a/auto_tests/tests/to_dom_coords.js
b/auto_tests/tests/to_dom_coords.js
index
abbe332
..
5aa4520
100644
(file)
--- a/
auto_tests/tests/to_dom_coords.js
+++ b/
auto_tests/tests/to_dom_coords.js
@@
-34,14
+34,14
@@
var checkForInverses = function(g) {
it('testPlainChart', function() {
var opts = {
it('testPlainChart', function() {
var opts = {
- axes
: {
- x
: {
+ axes: {
+ x: {
drawAxis : false,
drawAxis : false,
- drawGrid : false
,
+ drawGrid : false
},
},
- y
: {
+ y: {
drawAxis : false,
drawAxis : false,
- drawGrid : false
,
+ drawGrid : false
}
},
rightGap: 0,
}
},
rightGap: 0,
@@
-49,7
+49,8
@@
it('testPlainChart', function() {
dateWindow: [0, 100],
width: 400,
height: 400,
dateWindow: [0, 100],
width: 400,
height: 400,
- colors: ['#ff0000']
+ colors: ['#ff0000'],
+ labels: ['X', 'Y']
}
var graph = document.getElementById("graph");
}
var graph = document.getElementById("graph");
@@
-69,12
+70,12
@@
it('testPlainChart', function() {
it('testChartWithAxes', function() {
var opts = {
it('testChartWithAxes', function() {
var opts = {
- axes
: {
- x
: {
+ axes: {
+ x: {
drawGrid: false,
drawAxis: true,
},
drawGrid: false,
drawAxis: true,
},
- y
: {
+ y: {
drawGrid: false,
drawAxis: true,
axisLabelWidth: 100
drawGrid: false,
drawAxis: true,
axisLabelWidth: 100
@@
-87,7
+88,8
@@
it('testChartWithAxes', function() {
dateWindow: [0, 100],
width: 500,
height: 450,
dateWindow: [0, 100],
width: 500,
height: 450,
- colors: ['#ff0000']
+ colors: ['#ff0000'],
+ labels: ['X', 'Y']
}
var graph = document.getElementById("graph");
}
var graph = document.getElementById("graph");
@@
-103,16
+105,16
@@
it('testChartWithAxes', function() {
it('testChartWithAxesAndLabels', function() {
var opts = {
it('testChartWithAxesAndLabels', function() {
var opts = {
- axes
: {
- x
: {
+ axes: {
+ x: {
drawGrid: false,
drawAxis: true,
},
drawGrid: false,
drawAxis: true,
},
- y
: {
+ y: {
drawGrid: false,
drawAxis: true,
axisLabelWidth: 100
drawGrid: false,
drawAxis: true,
axisLabelWidth: 100
- }
+ }
,
},
xAxisHeight: 50,
axisTickSize: 0,
},
xAxisHeight: 50,
axisTickSize: 0,
@@
-126,7
+128,8
@@
it('testChartWithAxesAndLabels', function() {
xlabel: 'This is the x-axis',
xLabelHeight: 25,
title: 'This is the title of the chart',
xlabel: 'This is the x-axis',
xLabelHeight: 25,
title: 'This is the title of the chart',
- titleHeight: 25
+ titleHeight: 25,
+ labels: ['X', 'Y']
}
var graph = document.getElementById("graph");
}
var graph = document.getElementById("graph");
@@
-148,7
+151,8
@@
it('testYAxisLabelWidth', function() {
valueRange: [0, 100],
dateWindow: [0, 100],
width: 500,
valueRange: [0, 100],
dateWindow: [0, 100],
width: 500,
- height: 500
+ height: 500,
+ labels: ['X', 'Y']
}
var graph = document.getElementById("graph");
}
var graph = document.getElementById("graph");
@@
-172,7
+176,8
@@
it('testAxisTickSize', function() {
valueRange: [0, 100],
dateWindow: [0, 100],
width: 500,
valueRange: [0, 100],
dateWindow: [0, 100],
width: 500,
- height: 500
+ height: 500,
+ labels: ['X', 'Y']
}
var graph = document.getElementById("graph");
}
var graph = document.getElementById("graph");
@@
-204,7
+209,8
@@
it('testChartLogarithmic_YAxis', function() {
drawAxis: false,
logscale: true
}
drawAxis: false,
logscale: true
}
- }
+ },
+ labels: ['X', 'Y']
}
var graph = document.getElementById("graph");
}
var graph = document.getElementById("graph");
@@
-242,7
+248,8
@@
it('testChartLogarithmic_XAxis', function() {
drawGrid: false,
drawAxis: false
}
drawGrid: false,
drawAxis: false
}
- }
+ },
+ labels: ['X', 'Y']
}
var graph = document.getElementById("graph");
}
var graph = document.getElementById("graph");