How to hide the axis scale nibs

Need help in implementing some specific function to your LightningChart Ultimate powered application? Post a question and get code snippets from other LightningChart Ultimate community members.

Moderator: Queue Moderators

Post Reply
Micha_el
Posts: 7
Joined: Wed Nov 15, 2023 12:25 pm

How to hide the axis scale nibs

Post by Micha_el » Mon Mar 18, 2024 5:23 pm

Hi,

I'm trying to hide the scale nibs on both sides of an axis. It seems there is no Visible property which can be set to true/false. Instead I tried with:

Code: Select all

axisY.ScaleNibs.Color = Colors.Transparent;
axisY.ScaleNibs.Size = new SizeDoubleXY(0, 0);
But this does not hide the nibs. I can still see them and can still grab them with the mouse:
ScaleNib.png
ScaleNib.png (2.24 KiB) Viewed 574 times
How can I completely hide them and turn their functionality off?

ArctionKestutis
Posts: 555
Joined: Mon Mar 14, 2016 9:22 am

Re: How to hide the axis scale nibs

Post by ArctionKestutis » Tue Mar 19, 2024 10:27 am

To disable zooming with axis ScaleNibs you should just disable Axis.AllowScaling property.

Post Reply