I just want the same functionality as the reset button does but I can’t find it so ill just have to click it… solved it.. document.getElementsByClassName('canvasjs-chart-toolbar')[0].children[1].click()
document.getElementsByClassName('canvasjs-chart-toolbar')[0].children[1].click()
I already have the function that notices the change. I just need to reset the zoom and want to know how to do so without changing things.
lets turn the question instead, I want to do the same thing as the reset button does if the data is changed in a specific way. Is there a way to access that function from the api? Can’t share my code sorry.
Perfect you solved my problem :)
const referenceZscaling = {x:xMin , y: yMin, z: zdiff, name: "referenceZ", color: "transparent", toolTipContent: null} const data = [{ type: "bubble", showInLegend: true, legendText:legendText, legendMarkerType: "circle", legendColor:"gray", toolTipContent: toolTip, dataPoints: [referenceZscaling,...dataPoints] }]