Home Forums StockChart Support Zoom need

Zoom need

Viewing 6 posts - 1 through 6 (of 6 total)
  • #41817

    How do I zoom RSI indicator? I did zoomEnabled:true but it is not zooming indicator. Please check the url https://stockprophet.com/chart/?name=Google&symbol=GOOGL

    #41827

    @stockprophet1,

    You can enable zooming in chart by setting zoomEnabled property to true. Please take a look at ‘Behavior of Zoom / Pan’ section in this documentation page for more information along with example.


    Vishwas R
    Team CanvasJS

    #41831

    I have already mention that it is already ZoomEnable true. It is zooming chart but not indicator. I want to zoom indicator (RSI, MACD) also.

    #41838

    @stockprophet1,

    Based on the link that you have shared, zoomEnabled property is set at stockchart level instead of chart level. Setting it at chart level (in RSI chart) should work fine in your case. Please find the code-snippet below.

    var rsiDPS = calculateRSI(data);
    stockChart.addTo("charts", {height: 100, zoomEnabled: true, axisY: [{minimum: 0, maximum: 100, stripLines:[{value:30}, {value: 70}]}],data: [{type: "line", name: "Relative Strength Index (RSI)", showInLegend: true, yValueFormatString: "00", dataPoints: rsiDPS}], legend: {horizontalAlign: "left"}});


    Vishwas R
    Team CanvasJS

    #41871

    We have added zoomEnabled: true. But it is zooming horizontally. We want vertical Zoom. Please check.

    #41872

    @stockprophet1,

    You can zoom either horizontally, vertically or both by setting zoomType property. You can try setting zoomType: "y" to zoom vertically. Please refer to our documentation for more customization options available.


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.