Home forums Using CanvasJS Creating a chart from data with SQL DB [PHP] Reply To: Creating a chart from data with SQL DB [PHP]

#22606

d3bsky
Member

Can I change the type of time displayed to 24 hour format? Using your advice, I display the hour using: dps.push({"x":new Date(result[i].time), "y":result[i].temp}); on the x-axis I have an hour, however, the date is displayed on the chart next to the value, eg: “02 Sep 18:” Can I change it?

  • This reply was modified 2 months ago by  d3bsky.