Home Forums Report Bugs Bugs when use Synchronized Charts Reply To: Bugs when use Synchronized Charts

#33495

@nerviozzo96,

It seems to be happening due to programmatically zooming and resetting the charts. We will look into it further. However, you can hide toolbar on resizing the window or on hiding dataSeries by adding below function toggleToolBarDisplay which displays and hides the toolbar. The function toggleToolBarDisplay hides the toolbar whenever chart is in reset state.

function toggleToolBarDisplay() {
  var toolBar = document.getElementsByClassName("canvasjs-chart-toolbar");
  for(var i=0; i<toolBar.length; i++) {
    toolBar[i].style.display = resetFlag ? "none" : "block";
  }
}

Also, Please take a look at this JSFiddle for complete code.

Syncing Zoom & Pan across Multiple Charts

—-
Manoj Mohan
Team CanvasJS