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
645
Create BoxAnnotation or ChartTextAppearance with Webchart
posted

 

I want to create something like above

The Xaxis is dateTime and the YAxis is numberic.

For the line I am using

LineAppearance line = new LineAppearance();

line.LineStyle.EndStyle = LineCapStyle.NoAnchor;

line.IconAppearance.Icon = SymbolIcon.None;

line.Thickness = 1;

line.LineStyle.DrawStyle = LineDrawStyle.Dash;

LineChartAppearance lineAppearance = new LineChartAppearance();                  

lineAppearance.LineAppearances.Add(line);

NumericTimeSeries serieLocalRxvalues = new NumericTimeSeries();

values.Data.DataSource = dt;

values.Data.LabelColumn = "DateValue";

values.Data.TimeValueColumn = "DateValue";

values.Data.ValueColumn = "YValue";

values.PEs.Add(new PaintElement(System.Drawing.Color.Red));                  this.webchartData.CompositeChart.Series.Add(values);

I am not sure how I create the text next to the line. I did try ChartTextAppearance and BoxAnnotation and Infragistics.UltraChart.Core.Primitives.Text, but none of them are working right.