You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
newChart(ctx,{// ... data ...options: {// ... other options ...plugins: {tooltip: {mode: 'interpolate',intersect: false},crosshair: {line: {color: '#F66',// crosshair line colorwidth: 1// crosshair line width},sync: {enabled: true,// enable trace line syncing with other chartsgroup: 1,// chart groupsuppressTooltips: false// suppress tooltips when showing a synced tracer},zoom: {enabled: true,// enable zoomingzoomboxBackgroundColor: 'rgba(66,133,244,0.2)',// background color of zoom box zoomboxBorderColor: '#48F',// border color of zoom boxzoomButtonText: 'Reset Zoom',// reset zoom button textzoomButtonClass: 'reset-zoom',// reset zoom button class},callbacks: {beforeZoom: ()=>function(start,end){// called before zoom, return false to prevent zoomreturntrue;},afterZoom: ()=>function(start,end){// called after zoom}}}}}});
Development
You first need to install node dependencies (requires Node.js):
> npm install
The following commands will then be available from the repository root: