I would like to modify the segment line between two points of an Active Reports NET7 version Line graph made with this object:
GrapeCity.ActiveReports.SectionReportModel.ChartControl
I have been checking the properties of the chart control, and I was able to manipulate a single point of a serie as follows:
Me.ChartControl1.Series("MySerie1").Points.Item(1).IsEmpty = True
Setting IsEmpty to True makes the graph jump that x-axis value so it makes something like this (in the example it is jumping x=H24/9):
But I would like also to be able to modify the segment between the previous and next points to the one I made empty, making it a dash or a dot line like this:
I thought that something like the following code would do the trick:
Me.ChartControl1.Series("MySerie1").Points.Item(1).Line.Style=Chart.Graphics.LineStyle.Dash
But it does not work.
I would like to ask the following questions:
Is it possible to modify a single segment?
Is there another way to do the same? (maybe two series instead of one, but I can not see right now an easy way to do that) Thank you!
Dim aline As New GrapeCity.ActiveReports.Chart.Annotations.AnnotationLine
aline.Line.Color = Color.White
aline.Line.Style = Chart.Graphics.LineStyle.Dash
aline.StartPoint.X = 0.5
aline.StartPoint.Y = Me.ChartControl1.Series(0).Points.Item(0).YValues(0)
aline.EndPoint.X = 2.5
aline.EndPoint.Y = Me.ChartControl1.Series(0).Points.Item(2).YValues(0)
Me.ChartControl1.Series(0).Annotations.Add(aline)