ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Draw a vertical colored line x pixels thick
Posted by Chuck Van Dien on May-08-2025 22:36
Peter,

Can you provide a VB.NET example of drawing a simple vertical colored, x pixel thick line at a specific time (without any x axis tag/label) just the line?

My netchardir assembly is version 6.4 (runtime version v4.0.30319)

Thank you!

  Re: Draw a vertical colored line x pixels thick
Posted by Peter Kwan on May-09-2025 03:13
Hi Chuck Van Dien,

If your chart is an XYChart, you can use mark lines (Axis.addMark). An example is at:

https://www.advsofteng.com/doc/cdnet.htm#markzone2.htm

If you do not want the mark line label on the x-axis, you can set the label to an empty string.

You can use Mark.setLineWidth to set the line width. In the example above, it is set to 2 pixels.

Best Regards
Peter Kwan

  Re: Draw a vertical colored line x pixels thick
Posted by Chuck Van Dien on May-09-2025 03:42
Thank you Peter! Much appreciated!