Home Forums Chart Support Last 24 hours on X axis from mysql

Last 24 hours on X axis from mysql

Viewing 5 posts - 1 through 5 (of 5 total)
  • #45830

    Hello,

    I want to generate a chart from mysql results with this table :

    https://i.imgur.com/5e9pCkN.png

    I need to have last 24 hours on X axis, Y axis got the number of reports (Its ok)

    here is code :

    https://jsfiddle.net/g3L8f4hm/

    Than you a lot for your help,

    #45832

    I can’t edit my message, but i want this result : https://i.imgur.com/l6aqsId.png

    #45838

    @amon75,

    Please take a look at this gallery page for an example on rendering chart with data fetched from MySQL database. you can also refer to this page for an article about the same.


    Ananya Deka
    Team CanvasJS

    #45841

    Yes i know how to populate results in the graph from mysql, i need the correct sql syxtax for this final result : https://i.imgur.com/xrI9R5m.png

    #45867

    @amon75,

    Please refer to this Stack Overflow thread for more information on fetching last 24 hours’ data from database. You can pass the fetched data to the chart and render it.


    Ananya Deka
    Team CanvasJS

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

You must be logged in to reply to this topic.