Home Forums StockChart Support re-render, viewport, zooming

re-render, viewport, zooming

Viewing 4 posts - 1 through 4 (of 4 total)
  • #32551

    Hello! I’m using candlestick chart with fetching dataPoints from Binance API and updating last datapoint with WebSocket via render() on every socket message.
    The problem is when i trying to zooming or panning (change viewport), socket re-render chart and setting viewport to default values, which was rendered at first time.
    Is there way not to reset viewport, when the render() method calls
    Or is there way to update chart without render()?

    #32557

    @samarit,

    Can you kindly create JSFiddle and share it with us (or a sample project and share it with us over Google-Drive or OneDrive) along with further briefing about the issue you are facing so that we can look into code / chart-options being used, understand the scenario better and help you out?

    —-
    Manoj Mohan
    Team CanvasJS

    #32560

    I have emulated my problem in this JSFiddle
    There you can try to zoom, but after updating chart (re-render), viewport sets to default

    #32567

    @samarit,

    [UPDATE]

    We have just released StockChart v1.10.7 with this bug fix. Please refer to the release blog for more information. Do download the latest version from download page & let us know your feedback.

    Thanks for reporting the use-case. The issue seems to be happening when navigator is disabled. We will fix this issue in our future versions. However, you can achieve your requirement using Chart instead of StockChart (using canvasjs.stock.min.js, you can create both Chart and StockChart) as shown in this JSFiddle.

    —-
    Manoj Mohan
    Team CanvasJS

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

You must be logged in to reply to this topic.