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
350
Striplines with line charts?
posted

I have a Line chart and I would like to diplay a vertical stripe every 10 data points which shouls cover the next 10 data points. I tried the following code in the Form_load from the example, but nothing happened. Why?

Infragistics.UltraChart.Resources.Appearance.PaintElement striplinepe = new Infragistics.UltraChart.Resources.Appearance.PaintElement();

striplinepe.ElementType = Infragistics.UltraChart.Shared.Styles.PaintElementType.Hatch;

striplinepe.Fill = Color.Khaki;

striplinepe.FillOpacity = 255;

striplinepe.Hatch = Infragistics.UltraChart.Shared.Styles.FillHatchStyle.DiagonalCross;

mychart.Axis.X.StripLines.PE = striplinepe;

mychart.Axis.X.StripLines.Interval = 20;

mychart.Axis.X.StripLines.Visible = true;