Somehow there looks to be a change to the onZoomComplete function.
In 1.0.0-beta.1 I have to use this (with curly brackets):
onZoomComplete: function ({ chart }) {
showHideZoomButton(chart);
}
function showHideZoomButton(chart) {
document.querySelector('.resetZoomButton').style.display = (chart.scales.x.options.min != 0 || chart.scales.x.options.max != 0 || chart.scales.y.options.min != 0 || chart.scales.y.options.max != 0) ? 'block' : 'none';
}
In 1.0.0-beta.2 I have to use this (without curly brackets):
onZoomComplete: function (chart) {
showHideZoomButton(chart);
}
Is there any logic to this, or am I doing something wrong?
Originally posted by @KoalaBear84 in #464 (comment)
Somehow there looks to be a change to the onZoomComplete function.
In 1.0.0-beta.1 I have to use this (with curly brackets):
In 1.0.0-beta.2 I have to use this (without curly brackets):
Is there any logic to this, or am I doing something wrong?
Originally posted by @KoalaBear84 in #464 (comment)