Home Forums StockChart Support candlestick with minutes,day and month and zoom

candlestick with minutes,day and month and zoom

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

    How can we create a stockchart with range values of 1min, 1day,1month,2 months? My stockchart candlestick doesnt show dynamic hrs minutes/date on x axis. and Y axis data doesnt add up on zoom out

    #34470
    #34480

    @sheetalkweb,

    Y-Values in candlestick chart is an array of 4 values, but in your code you seem to be passing just one y-value, providing an array of 4 values will work in your case.

    Also, the x-axis label format seems to be working fine. The label format is updating to minute, day, month based on the range of the zoomed region. Please take a look at this updated JSFiddle.

    If you are still facing the issue, kindly create JSFiddle reproducing the issue you are facing and share it with us along with sample data so that we can look into the code, understand the scenario better and help you out.

    StockChart axis label format on zooming

    ___________
    Indranil Deo
    Team CanvasJS

    #34485

    on date of 5th feb. there r 3 records. If i filter by month it doesnt sum/average data of 5th feb and show on Y axis. It still show it as different candles

    { x: new Date(2018, 01, 5,12,30,2), y: [5198, 5629, 5159, 5385] },
    { x: new Date(2018, 01, 5,15,30,15), y: [5296, 5378, 5154, 5248] },
    { x: new Date(2018, 01, 5,22,30,15), y: [5254, 5279, 4788, 4924] },

    check fiddle: https://jsfiddle.net/crk4uem8/

    #34486

    I get this error: Failed to execute ‘drawImage’ on ‘CanvasRenderingContext2D’: The image argument is a canvas element with a width or height of 0.
    I am using canvasjs stockchart and donut chart on same page but different DIV IDs.

    #34500

    @sheetalkweb,

    on date of 5th feb. there r 3 records. If i filter by month it doesnt sum/average data of 5th feb and show on Y axis. It still show it as different candles

    { x: new Date(2018, 01, 5,12,30,2), y: [5198, 5629, 5159, 5385] },
    { x: new Date(2018, 01, 5,15,30,15), y: [5296, 5378, 5154, 5248] },
    { x: new Date(2018, 01, 5,22,30,15), y: [5254, 5279, 4788, 4924] },

    The Range Buttons are designed to zoom into a specific range of data and not for sum/average the data. Please check this documentation page for more information.

    I get this error: Failed to execute ‘drawImage’ on ‘CanvasRenderingContext2D’: The image argument is a canvas element with a width or height of 0.
    I am using canvasjs stockchart and donut chart on same page but different DIV IDs.

    Can you please create a JSFiddle reproducing the issue you’re facing so that we can look into the code, understand it better and help you out?

    ___________
    Indranil Deo
    Team CanvasJS

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

You must be logged in to reply to this topic.