Highcharts test tool
For some charts (like polar and variwide, but not spline), if a reflow is issued during initial animation, the animation is restarted.
by piet23
HTML
<script src="https://code.highcharts.com/9.0/highcharts.src.js"></script>
<div id="containerSpline" class='my-chart'></div>
JavaScript
const chart1 = Highcharts.chart('containerSpline', {
plotOptions: {
series: {
animation: {
duration: 10000,
},
},
},
series: [{
type: 'spline',
data: [1,2,9],
}, ],
});
let wide = false;
function showExtraContent() {
chart1.setSize(wide ? 600 : 400, 600);
wide = !wide;
}
setInterval(
showExtraContent,
1500
);