In a asp.net mvc application, I need to create a simple line-chart, so I tried Chart helper. The chart is created using two list, the x-axis should display datetimes, and the y-axis should display a value for each time. Now this works fine using the code below. "listOfDateTimes" consists a list of DateTimes.
var chart = new Chart(width: 1000, height: 300, theme: ChartTheme.Green)
.AddSeries(
chartType: "line",
xValue: listOfDateTimes,
yValues: listOfValues )
.GetBytes("png");
The problem is that the datetimes below the x-axis shows up as "MM/dd/yyyy", but I also need to display the hour and minutes. I can't figure out how to solve this using Chart helper.
