Add a horizontal line (X Axis) to existing chart. (Target line)

Fedaykin

Active member
Joined
Mar 20, 2013
Messages
30
Programming Experience
Beginner
Can anyone show me how to add a horizontal (X Axis) line to an existing chart? This will be the target line for my data. I have bar graph for RMA's per month, I want to set a goal line of 3 per month and make it a red line.
 
For anyone interested I was able to find it: The Position is the Y interval where you want to display your line:

VB.NET:
        Chart1.ChartAreas(0).CursorY.Position = 3
        Chart1.ChartAreas(0).CursorY.LineWidth = 3
        Chart1.ChartAreas(0).CursorY.LineColor = Color.Orange
 
Last edited:
Back
Top