Jump to content
Software FX Community

OHLC chart with a Line Width of exactly 1 pixel

User (Legacy)

Recommended Posts

I have code like this, which draws thin OHLC bars in a chart:

Chart1.Series(0).Gallery = SoftwareFX.ChartFX.Gallery.OpenHiLowClose

Chart1.Series(1).Gallery = SoftwareFX.ChartFX.Gallery.OpenHiLowClose

Chart1.Series(2).Gallery = SoftwareFX.ChartFX.Gallery.OpenHiLowClose

Chart1.Series(3).Gallery = SoftwareFX.ChartFX.Gallery.OpenHiLowClose

Chart1.Series(0).LineWidth = 1

Chart1.Series(1).LineWidth = 1

Chart1.Series(2).LineWidth = 1

Chart1.Series(3).LineWidth = 1

This outputs a chart with bars of 2 pixels width. Is there a way that I can

draw these bars with 1 pixel width?

Kind regards,


Link to comment
Share on other sites

The LineWidth property refers to the with of the border, not the bar itself,

the width of the bar is determined by the available space and the value of

the Volume property.

To obtain Minimum width, set the Volume to zero (0) and Border to false.

Also, notice that the anti-aliasing feature in GDI-plus may cause these

lines to appear thicker. You can turn anti-aliasing off by using the

SmoothFlags property.



Software FX, Inc.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...