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
it('testInterpolationOptions', function() {
var opts = {
colors: ['#ff0000', '#00ff00', '#0000ff'],
- stackedGraph: true
+ stackedGraph: true,
+ labels: ['X', 'Y1', 'Y2', 'Y3']
};
var data = [
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