Draw.Line(this, "rect", false, -1, Open[0], -1, Close[0], Brushes.Cyan, DashStyleHelper.Solid, (int) ChartControl.BarWidth);
According to the docs ChartControl.BarWidth and the Draw.Line's width parameter both are in pixels. I assumed the drawn line would have similar width to the bars but it doesn't.
I tried converting application pixels to device pixels--
int devicePixelsWidth = ChartingExtensions.ConvertToHorizontalPixels(ChartControl.BarWidth, ChartControl.PresentationSource); Draw.Line(this, "rect", false, -1, Open[0], -1, Close[0], Brushes.Cyan, DashStyleHelper.Solid, devicePixelsWidth);
The result didn't change.
Re-scaling, reloading, whatever the width of the bars, the line is always narrower.

Comment