Search code examples
reactjstypescriptchartsamchartsamcharts4

AmCharts4 disable radar chart resize/zoom


I have this AmCharts4 radar chart in my react application is there any way to disable the click-drag zooming? Thx.

Image of the chart


Solution

  • Assuming you're referring to the zoom from the chart cursor, you have to set the cursor object's behavior to "none":

    chart.cursor = new am4charts.RadarCursor();
    chart.cursor.behavior = "none";
    

    You can find a list of valid properties in the linked documentation and in this tutorial.