Home forums Using CanvasJS Graph using DataBase in JSP Reply To: Graph using DataBase in JSP

#22932

Vishwas R
Keymaster

Tara Ram Goyal,

The value that you are getting using getDate is not valid JavaScript date-time object because of which chart is not getting rendered properly. In this scenario, you can fix it by getting the date from database and change it to timestamp before passing it to chart and by setting xValueType to ‘dateTime’. Please download updated code here.


Vishwas R
Team CanvasJS