I'm using the Chart control from .net 4.0 in my C# WinForms app. I have two series' of data displayed as line graphs.
I'm graphing basically a supply and demand as a function of time. I want the demand to be a solid line of some colour, and the supply to be a dashed line of the same colour.
I can set the colour fine, but I can't find anywhere where I can set the line style to be dashed.
See the DataPointCustomProperties.BorderDashStyle
property. For example...
_chart.Series[1].Color = Color.Blue;
_chart.Series[0].Color = Color.Blue;
_chart.Series[0].BorderWidth = 3;
_chart.Series[0].BorderDashStyle = ChartDashStyle.Dash;
...gives me: