You must be logged in to post your query.
Home › Forums › Report Bugs › Bugs when use Synchronized Charts
Tagged: panning, Synchronized, zooming
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
@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.
toggleToolBarDisplay
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.
—- Manoj Mohan Team CanvasJS
Thanks! If you progress in this, let me know, in the meantime I will use this solution.
You must be logged in to reply to this topic. Login/Register