expect(chart._stacks).toEqual({
'x.y.1': {
- 0: {0: 1, 2: 3, _top: 2, _bottom: null},
- 1: {0: 10, 2: 30, _top: 2, _bottom: null}
+ 0: {0: 1, 2: 3, _top: 2, _bottom: null, _visualValues: {0: 1, 2: 3}},
+ 1: {0: 10, 2: 30, _top: 2, _bottom: null, _visualValues: {0: 10, 2: 30}}
},
'x.y.2': {
- 0: {1: 2, _top: 1, _bottom: null},
- 1: {1: 20, _top: 1, _bottom: null}
+ 0: {1: 2, _top: 1, _bottom: null, _visualValues: {1: 2}},
+ 1: {1: 20, _top: 1, _bottom: null, _visualValues: {1: 20}}
}
});
expect(chart._stacks).toEqual({
'x.y.1': {
- 0: {0: 1, _top: 2, _bottom: null},
- 1: {0: 10, _top: 2, _bottom: null}
+ 0: {0: 1, _top: 2, _bottom: null, _visualValues: {0: 1}},
+ 1: {0: 10, _top: 2, _bottom: null, _visualValues: {0: 10}}
},
'x.y.2': {
- 0: {1: 2, 2: 3, _top: 2, _bottom: null},
- 1: {1: 20, 2: 30, _top: 2, _bottom: null}
+ 0: {1: 2, 2: 3, _top: 2, _bottom: null, _visualValues: {1: 2, 2: 3}},
+ 1: {1: 20, 2: 30, _top: 2, _bottom: null, _visualValues: {1: 20, 2: 30}}
}
});
});
expect(chart._stacks).toEqual({
'x.y.1': {
- 0: {0: 1, 2: 3, _top: 2, _bottom: null},
- 1: {0: 10, 2: 30, _top: 2, _bottom: null}
+ 0: {0: 1, 2: 3, _top: 2, _bottom: null, _visualValues: {0: 1, 2: 3}},
+ 1: {0: 10, 2: 30, _top: 2, _bottom: null, _visualValues: {0: 10, 2: 30}}
},
'x.y.2': {
- 0: {1: 2, _top: 1, _bottom: null},
- 1: {1: 20, _top: 1, _bottom: null}
+ 0: {1: 2, _top: 1, _bottom: null, _visualValues: {1: 2}},
+ 1: {1: 20, _top: 1, _bottom: null, _visualValues: {1: 20}}
}
});
expect(chart._stacks).toEqual({
'x.y.1': {
- 0: {0: 1, 2: 4, _top: 2, _bottom: null},
- 1: {0: 10, _top: 2, _bottom: null}
+ 0: {0: 1, 2: 4, _top: 2, _bottom: null, _visualValues: {0: 1, 2: 4}},
+ 1: {0: 10, _top: 2, _bottom: null, _visualValues: {0: 10}}
},
'x.y.2': {
- 0: {1: 2, _top: 1, _bottom: null},
- 1: {1: 20, _top: 1, _bottom: null}
+ 0: {1: 2, _top: 1, _bottom: null, _visualValues: {1: 2}},
+ 1: {1: 20, _top: 1, _bottom: null, _visualValues: {1: 20}}
}
});
});
});
var meta = chart.getDatasetMeta(0);
- expect(meta._parsed[0]._stacks).toEqual(jasmine.objectContaining({y: {0: 10, 1: 20, _top: 1, _bottom: null}}));
+ expect(meta._parsed[0]._stacks).toEqual(jasmine.objectContaining({y: {0: 10, 1: 20, _top: 1, _bottom: null, _visualValues: {0: 10, 1: 20}}}));
});
describe('resolveDataElementOptions', function() {