Home Forums Report Bugs Bugs when use Synchronized Charts

Bugs when use Synchronized Charts

Viewing 3 posts - 1 through 3 (of 3 total)
  • #33423

    Hi there, I found something weird insynchronized charts, I found 2 bugs(?):

    1 – Panning/Zooming + Reset Option shows when try to hide some series.
    Steps to reproduce:
    1 -> Zoom in chart
    2 -> Reset Zoom
    3 -> Hide some series

    2 – Panning/Zooming + Reset Option shows when resize window.
    Steps to reproduce:
    1 -> Zoom in chart
    2 -> Reset Zoom
    3 -> Resize window
    In my case this second bug always happen when resize, but in demo only happen if i do the 3 steps.

    I let you the demo but actually you can see same bugs in your CanvasJS demo

    #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

    #33611

    Thanks! If you progress in this, let me know, in the meantime I will use this solution.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.