User (Legacy) Posted August 12, 2003 Report Share Posted August 12, 2003 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, Tim Link to comment Share on other sites More sharing options...
Software FX Posted August 13, 2003 Report Share Posted August 13, 2003 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. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.