Hi,
When i convert the date to short time, it is not binding to the chart. Please find the code snippet below,
public SampleViewModel GetPrograms()
{
var returnData = new SampleViewModel();
var chartDataList = new List<TitleDetails>();
for (var count = 5; count >=1; count--)
{
var titles = new TitleDetails
{
Title = "Title " + count,
FromValues = new DateTime(2010, 1, 1).AddDays(count).ToShortTimeString(),
ToValues = new DateTime(2010, 1, 30).AddDays(count).AddMonths(-3).ToShortTimeString()
};
chartDataList.Add(titles);
}
returnData.ChartData = chartDataList;
return returnData;
}
Thanks,
Venkatesh