Hi,
how it's possible create a chart with multiple line series?
for example in my db I have:
Datetime Value
06/10/2011 06:00 8
06/10/2011 06:10 12
06/10/2011 06:15 9
06/10/2011 06:18 6
06/10/2011 06:21 9
I want create multiple line series for selected datetime Range where the x-axis is DateTime and the y-axis Value.
I have tried like this but its not plotting its showing only empty series..
series = new ChartSeries();
series.Type = ChartSeriesType.Line;
series.Name = "RTD"; series.Clear();
ChartSeriesItem item = new ChartSeriesItem();
item.YValue = Convert.ToDouble(Sqlds.Tables[0].Rows[i][0]);
series.Items.Add(item);
chart1.PlotArea.XAxis[index].TextBlock.Text = DateTime;
//Axis
chart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "DateTime";
chart1.PlotArea.XAxis.AutoScale = false;
chart1.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.LongDate;
chart1.PlotArea.XAxis.Appearance.CustomFormat = "mm/dd/yyyy hh:mm:ss";
chart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 90;
//Axis Y
chart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "Value";
chart1.Series.Clear();
chart1.Series.Add(series2);
chart1.Series.Add(series1);
chart1.Series.Add(series);
thanks
how it's possible create a chart with multiple line series?
for example in my db I have:
Datetime Value
06/10/2011 06:00 8
06/10/2011 06:10 12
06/10/2011 06:15 9
06/10/2011 06:18 6
06/10/2011 06:21 9
I want create multiple line series for selected datetime Range where the x-axis is DateTime and the y-axis Value.
I have tried like this but its not plotting its showing only empty series..
series = new ChartSeries();
series.Type = ChartSeriesType.Line;
series.Name = "RTD"; series.Clear();
ChartSeriesItem item = new ChartSeriesItem();
item.YValue = Convert.ToDouble(Sqlds.Tables[0].Rows[i][0]);
series.Items.Add(item);
chart1.PlotArea.XAxis[index].TextBlock.Text = DateTime;
//Axis
chart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "DateTime";
chart1.PlotArea.XAxis.AutoScale = false;
chart1.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.LongDate;
chart1.PlotArea.XAxis.Appearance.CustomFormat = "mm/dd/yyyy hh:mm:ss";
chart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 90;
//Axis Y
chart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = "Value";
chart1.Series.Clear();
chart1.Series.Add(series2);
chart1.Series.Add(series1);
chart1.Series.Add(series);
thanks