Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
410
Add legend items for NumericTimeSeries in LineChart
posted

I have an UltraChart of type LineChart.  I create a number of NumericTime series and add them to the chart without problemm, but I can't seem to add legend items.  Is this because I'm putting NumericTimeSeries in a LineChart?

 

Infragistics.UltraChart.Resources.Appearance.NumericTimeSeries gwElevSeries = new Infragistics.UltraChart.Resources.Appearance.NumericTimeSeries();

foreach (DataRow gwElevDr in qrySelectGwMonRecords)

{

gwElevSeries.Points.Add(new Infragistics.UltraChart.Resources.Appearance.NumericTimeDataPoint(System.DateTime.Parse(gwElevDr.ItemArray[2].ToString()), System.Double.Parse(gwElevDr.ItemArray[8].ToString()), String.Format("{0:M/d/yyyy}", gwElevDr.ItemArray[2]), false));

}

chartGwData.ChartType = Infragistics.UltraChart.Shared.Styles.ChartType.LineChart;

chartGwData.Series.Add(gwElevSeries);

chartGwData.Visible = true;

 

If anyone can help me place the NumericTimeSeries legend item into the LineChart legend it would be much appreciated. Thanks in advance. Ruben