chart.js - Chart JS Zoom Pan -


i using chart js zoom/pan plugin (https://github.com/chartjs/chartjs-plugin-zoom) , wondering if there way disable when there no data present. current basic options settings

pan: {
enabled: true,
mode: 'x'
},
zoom: {
enabled: true,
mode: 'x'
}

yes, can change setting "enabled" false and/or use chart.resetzoom() link


Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

ruby - unknown property method: 'wait' on EC2 windows server Instance -