Hi,
I would like to configure my chart so that the user can zoom and pan the x axis with the mouse, but not the y axis. The y axis should always display the range -0.5 to +0.5. How can I accomplish that?
Lock one axis for zoom and pan
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Lock one axis for zoom and pan
Hi,
you can do that by setting
axis.PanningEnabled = False
axis.ZoomingEnabled = False
For all the axes you don't want to respond to zooming and panning gestures. Note these are available not only for Y axes, but X axes as well.
you can do that by setting
axis.PanningEnabled = False
axis.ZoomingEnabled = False
For all the axes you don't want to respond to zooming and panning gestures. Note these are available not only for Y axes, but X axes as well.
LightningChart Support Team, PT
Re: Lock one axis for zoom and pan
Thanks for the quick reply. The two properties are really convenient, maybe you could mention them in the User Manual in chapter 6.21 Zooming and panning
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Lock one axis for zoom and pan
Thanks for suggesting documentation improvements in this regard.
We added new section in the manual:
6.21.17 Excluding specific X or Y axes from zooming and panning operations
• To exclude specific X or Y axes from Zooming operations, set
axis.ZoomingEnabled = False
• To exclude specific X or Y axes from Panning operations, set
axis.PanningEnabled = False
It'll be included in the manual of SDK a little bit later.
We added new section in the manual:
6.21.17 Excluding specific X or Y axes from zooming and panning operations
• To exclude specific X or Y axes from Zooming operations, set
axis.ZoomingEnabled = False
• To exclude specific X or Y axes from Panning operations, set
axis.PanningEnabled = False
It'll be included in the manual of SDK a little bit later.
LightningChart Support Team, PT