@reena,
CanvasJS Chart just renders the data that’s being passed to chart-options. It seems like you are passing x-value(date) as label because of which there could be the mismatch of values. Passing date-time values as x-value, that’s read from the database, should work fine in this case.
—
Vishwas R
Team CanvasJS