Home forums Using CanvasJS Wrong graph is getting plot for data with label Reply To: Wrong graph is getting plot for data with label

#26044

Tejal,

When just labels are passed without x-values, x-values are automatically added in successive order as 0,1,2,3,4… You can overcome it by passing the values to the x property instead of label.

Considering this thread as a duplicate of Canvas Data, hence closing the same.

—-
Manoj Mohan
Team CanvasJS