antvis/G2




The issue has been closed
5.1.15: (Some) options applied through chart.options dont work #6163
sspilleman posted onGitHub
Problem Description: 5.1.15: (Some) options applied through chart.options dont work:
chart.options({
theme: {
type: 'dark',
view: {
viewFill: 'none'
}
},
animate: { enter: { type: undefined, duration: 0 } } <----------------
});
chart
.interval()
.data(data)
.encode('x', 'genre')
.encode('y', 'sold');
The animation is still there
chart.options({
theme: {
type: 'dark',
view: {
viewFill: 'none'
}
},
});
chart
.interval()
.animate({ enter: { type: undefined, duration: 0 } }) <----------------
.data(data)
.encode('x', 'genre')
.encode('y', 'sold');
The animation is gone.....
I believe the animation should be gone in both cases, not making a difference how the config setting is applied