Hi,
I was working with custom ticks in axis and I ended up with the below:
I am wondering if there is a way to apply an offset to the custom label text so it could be displayed just above the line? Or is it possible to redraw the text at a location with offset?
Thanks,
Lokesh
Offset for Axis Label text
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Offset for Axis Label text
Hi Lokesh,
that approach needs using two CustomAxisTicks per tick position. One with text and one without it. Give a slightly higher value for tick with a text. You can utilize yAxis.CoordToValue and ValueToCoord method to convert between screen coordinates and axis values as necessary.
that approach needs using two CustomAxisTicks per tick position. One with text and one without it. Give a slightly higher value for tick with a text. You can utilize yAxis.CoordToValue and ValueToCoord method to convert between screen coordinates and axis values as necessary.
LightningChart Support Team, PT
Re: Offset for Axis Label text
Hi Pasi,
Sorry for the late response.
Thank you for the work around. That was a pretty simple one and I feel bad it didn't cross my mind. Works great.
Thanks again.
Lokesh
Sorry for the late response.
Thank you for the work around. That was a pretty simple one and I feel bad it didn't cross my mind. Works great.
Thanks again.
Lokesh