You must be logged in to post your query.
Home › Forums › Chart Support › Graph using DataBase in JSP
Dear sir/madam, I am tara ram goyal from jodhpur rajastha india. i have face a one problem in drawing Graph in jsp. i want to Xval is only for time and Yval is double. can you give me solution please. thanks in advance. project link: https://drive.google.com/open?id=1KFSY74gWwWRCUYnY07gHuSKWCXWTmFHL database link: https://drive.google.com/open?id=1JArBW9Gf0LyezP_KlBOsGwLcvn50jfvg
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
You must be logged in to reply to this topic. Login/Register