I populate a Dataset whith multiple data tables of results, and then I loop through each of the tables to reveal my results.
However only the first datatable is used the others are ignored.
I have made sure that the lineseries name is the same as the datatable ?
Any ideas please ??
foreach (DataTable table in myRunData.Tables)
{
LineSeries currentLine = new LineSeries();
lineSeries1.Name = table.TableName;
lineSeries1.LabelsAppearance.Visible = true;
lineSeries1.LabelsAppearance.DataFormatString = "y";
lineSeries1.TooltipsAppearance.Color = System.Drawing.Color.Blue;
lineSeries1.TooltipsAppearance.DataFormatString = "{0}";
lineSeries1.DataFieldY = "TimeInSeconds";
lineSeries1.TooltipsAppearance.ClientTemplate = " #= kendo.parseInt(value/60) #:#= (value%60) # minutes";
lineSeries1.LabelsAppearance.ClientTemplate = " #= kendo.parseInt(value/60) #:#= (value%60) # minutes";
lineSeries1.TooltipsAppearance.DataFormatString = "{0:hh:MM:ss}";
RadHtmlChart1.PlotArea.Series.Add(lineSeries1);
}
RadHtmlChart1.DataSource = parkRunData;
RadHtmlChart1.DataBind();
if (!RadHtmlChart1.Visible)
{
RadHtmlChart1.Visible = true;
}