X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fstacked.js;fp=auto_tests%2Ftests%2Fstacked.js;h=5e4c55c9d1a836574b8a4d299fcee453d0bf38c5;hb=8bd58e55cfd7d903d68ec434be1f17f78dc11de1;hp=d3add124aa393b5d196c00faeffc405af65d2d25;hpb=77a1405a7dea7e9de770583598a50e5907e6b1a1;p=dygraphs.git diff --git a/auto_tests/tests/stacked.js b/auto_tests/tests/stacked.js index d3add12..5e4c55c 100644 --- a/auto_tests/tests/stacked.js +++ b/auto_tests/tests/stacked.js @@ -180,7 +180,8 @@ it('testMissingValueAtZero', function() { it('testInterpolation', function() { var opts = { colors: ['#ff0000', '#00ff00', '#0000ff'], - stackedGraph: true + stackedGraph: true, + labels: ['X', 'Y1', 'Y2', 'Y3', 'Y4'] }; // The last series is all-NaN, it ought to be treated as all zero @@ -236,7 +237,8 @@ it('testInterpolation', function() { it('testInterpolationOptions', function() { var opts = { colors: ['#ff0000', '#00ff00', '#0000ff'], - stackedGraph: true + stackedGraph: true, + labels: ['X', 'Y1', 'Y2', 'Y3'] }; var data = [ @@ -277,19 +279,20 @@ it('testMultiAxisInterpolation', function() { colors: ['#ff0000', '#00ff00', '#0000ff'], stackedGraph: true, series: { - "Y1": { - axis: 'y', - }, - "Y2": { - axis: 'y', - }, - "Y3": { - axis: 'y2', - }, - "Y4": { - axis: 'y2', - } - } + 'Y1': { + axis: 'y', + }, + 'Y2': { + axis: 'y', + }, + 'Y3': { + axis: 'y2', + }, + 'Y4': { + axis: 'y2', + } + }, + labels: ['X', 'Y1', 'Y2', 'Y3', 'Y4'] }; // The last series is all-NaN, it ought to be treated as all zero