We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Possibility to scroll y-axis without zooming

Hello,


is it possible to scroll y-axis on chart component without zooming?


Regards


1 Reply

NP Nishanthi Panner Selvam Syncfusion Team May 1, 2023 09:15 AM UTC

Hi Eugen,


Greetings from Syncfusion.


To scroll along the Y-axis without zooming, we suggest using the zoomfactor in primaryYaxis, setting isZoomed values to true in the load event, and enabling the scrollbar as true in zoomsettings. This will allow you to scroll the Y-axis without zooming the chart.


Please find the screenshot, code-snippet and sample for your reference.


public load(args: ILoadedEventArgs): void {

        args.chart.zoomModule.isZoomed = true;

    };




Sample : https://stackblitz.com/edit/angular-cqipa6?file=src%2Fapp.component.ts,src%2Fapp.component.html


Please let us know if the above sample meets your requirement. If not, let us know your exact requirement. It will be helpful for us to analyze further and assist you better.


Regards,

Nishanthi


Loader.
Live Chat Icon For mobile
Up arrow icon