Jump to content
StephanWeber

TeeChart with vertical bar?

Recommended Posts

Sorry, I need a vertical line from bottom to top, not a bar.

Using a bar and making it thin is my current workaround, but that makes it difficult to let it reach the top, and it looks a bit ugly.

Edited by StephanWeber

Share this post


Link to post

TeeChart Pro has TColorLineTool exactly for this purpose (in TeeTools.pas). I have no idea whether it is in the bundled Embarcadero edition of TeeChart or not.

Share this post


Link to post

I don't think this is in the bundled edition of TeeChart.

I achieve this by creating an additional line on the chart and then making points on the line of the background colour along the y = bottom axis and then, where the vertical line should be add a point on the bottom axis of the colour you want the line to be and then add the next point on the y = top axis with the same colour (and same x value) and then any subsequent points go back to the background colour.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×