Home › forums › Using CanvasJS › Don’t see any data on graphic (MVC) › Reply To: Don’t see any data on graphic (MVC)
In the code snippet shared above, you are using the label to pass date and time values as string. Instead, you can pass the timestamp of the given date to the x-value. To customize the format of the date and time values on the axis you can use valueFormatString as per your requirement. Please take a look at this gallery example for creating a chart with date and time values in ASP.NET MVC.