|
@@ -7,7 +7,7 @@ define([
|
|
|
var points, series;
|
|
var points, series;
|
|
|
var yAxisFormats = ['short', 'ms'];
|
|
var yAxisFormats = ['short', 'ms'];
|
|
|
var testData = {
|
|
var testData = {
|
|
|
- info: { alias: 'test' },
|
|
|
|
|
|
|
+ alias: 'test',
|
|
|
datapoints: [
|
|
datapoints: [
|
|
|
[1,2],[null,3],[10,4],[8,5]
|
|
[1,2],[null,3],[10,4],[8,5]
|
|
|
]
|
|
]
|
|
@@ -36,7 +36,7 @@ define([
|
|
|
|
|
|
|
|
describe('fill & points', function() {
|
|
describe('fill & points', function() {
|
|
|
beforeEach(function() {
|
|
beforeEach(function() {
|
|
|
- series.info.alias = 'test';
|
|
|
|
|
|
|
+ series.alias = 'test';
|
|
|
series.applySeriesOverrides([{ alias: 'test', fill: 0, points: true }]);
|
|
series.applySeriesOverrides([{ alias: 'test', fill: 0, points: true }]);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -48,7 +48,7 @@ define([
|
|
|
|
|
|
|
|
describe('series option overrides, bars, true & lines false', function() {
|
|
describe('series option overrides, bars, true & lines false', function() {
|
|
|
beforeEach(function() {
|
|
beforeEach(function() {
|
|
|
- series.info.alias = 'test';
|
|
|
|
|
|
|
+ series.alias = 'test';
|
|
|
series.applySeriesOverrides([{ alias: 'test', bars: true, lines: false }]);
|
|
series.applySeriesOverrides([{ alias: 'test', bars: true, lines: false }]);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -60,7 +60,7 @@ define([
|
|
|
|
|
|
|
|
describe('series option overrides, linewidth, stack', function() {
|
|
describe('series option overrides, linewidth, stack', function() {
|
|
|
beforeEach(function() {
|
|
beforeEach(function() {
|
|
|
- series.info.alias = 'test';
|
|
|
|
|
|
|
+ series.alias = 'test';
|
|
|
series.applySeriesOverrides([{ alias: 'test', linewidth: 5, stack: false }]);
|
|
series.applySeriesOverrides([{ alias: 'test', linewidth: 5, stack: false }]);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -72,7 +72,7 @@ define([
|
|
|
|
|
|
|
|
describe('series option overrides, fill below to', function() {
|
|
describe('series option overrides, fill below to', function() {
|
|
|
beforeEach(function() {
|
|
beforeEach(function() {
|
|
|
- series.info.alias = 'test';
|
|
|
|
|
|
|
+ series.alias = 'test';
|
|
|
series.applySeriesOverrides([{ alias: 'test', fillBelowTo: 'min' }]);
|
|
series.applySeriesOverrides([{ alias: 'test', fillBelowTo: 'min' }]);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -83,7 +83,7 @@ define([
|
|
|
|
|
|
|
|
describe('series option overrides, pointradius, steppedLine', function() {
|
|
describe('series option overrides, pointradius, steppedLine', function() {
|
|
|
beforeEach(function() {
|
|
beforeEach(function() {
|
|
|
- series.info.alias = 'test';
|
|
|
|
|
|
|
+ series.alias = 'test';
|
|
|
series.applySeriesOverrides([{ alias: 'test', pointradius: 5, steppedLine: true }]);
|
|
series.applySeriesOverrides([{ alias: 'test', pointradius: 5, steppedLine: true }]);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -95,7 +95,7 @@ define([
|
|
|
|
|
|
|
|
describe('override match on regex', function() {
|
|
describe('override match on regex', function() {
|
|
|
beforeEach(function() {
|
|
beforeEach(function() {
|
|
|
- series.info.alias = 'test_01';
|
|
|
|
|
|
|
+ series.alias = 'test_01';
|
|
|
series.applySeriesOverrides([{ alias: '/.*01/', lines: false }]);
|
|
series.applySeriesOverrides([{ alias: '/.*01/', lines: false }]);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -106,12 +106,12 @@ define([
|
|
|
|
|
|
|
|
describe('override series y-axis, and z-index', function() {
|
|
describe('override series y-axis, and z-index', function() {
|
|
|
beforeEach(function() {
|
|
beforeEach(function() {
|
|
|
- series.info.alias = 'test';
|
|
|
|
|
|
|
+ series.alias = 'test';
|
|
|
series.applySeriesOverrides([{ alias: 'test', yaxis: 2, zindex: 2 }]);
|
|
series.applySeriesOverrides([{ alias: 'test', yaxis: 2, zindex: 2 }]);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
it('should set yaxis', function() {
|
|
it('should set yaxis', function() {
|
|
|
- expect(series.info.yaxis).to.be(2);
|
|
|
|
|
|
|
+ expect(series.yaxis).to.be(2);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
it('should set zindex', function() {
|
|
it('should set zindex', function() {
|