I am changing the chart series programmatically and the data type is not numeric it is a datetime field. How do I change this value type? here is my code so far:
(it's a switch statement)
(it's a switch statement)
case
"HOURS"
:
sdsProjectVideos.SelectCommand =
"asGetVideosByProjectIDSortHours"
;
RadChart1.ChartTitle.TextBlock.Text =
"HOURS WATCHED"
;
sdsProjectChart.SelectCommand =
"asGetVideosByProjectIDSortHoursChart"
;
RadChart1.Series.Clear();
ChartSeries chartSeries =
new
ChartSeries();
chartSeries.Name =
"Hours Watched"
;
chartSeries.DataYColumn =
"HoursWatched"
;
RadChart1.Series.Add(chartSeries);
lblHours.Font.Underline =
true
;
break
;