Home › forums › Using CanvasJS › Getting DateTime value from mysql db to create a chart › Reply To: Getting DateTime value from mysql db to create a chart
Kindly download the sample PHP project from this link.
The above sample shows how to pass dateTime from a database into Charts in PHP. A ReadMe file has been included for your convenience with all the instructions to set up the project.
Also kindly set the xValueType: "dateTime" as timestamp values are getting assigned to the chart instead of Date objects.