Articles in this section
Category / Section

How to enable zooming and panning for ejChart?

1 min read

Essential Chart supports horizontal and vertical Zooming, Panning, and Mouse wheel zooming actions on the chart. To enable zooming action in the chart area, you need to use Zooming property of the Chart. Zooming is disabled by default. After zooming, you can find the buttons for zooming, panning, and reset at the right corner of the chart area. You can also specify the type of zooming, whether horizontal or vertical, by using Type property in the zooming options. Refer to Zooming and panning for more information on different zooming options and types of zooming available in the Essential Chart. The following code illustrates this.

CSHTML

@(Html.EJ().Chart("container")
   .Zooming(zoom=>zoom.Enable(true).Type("x,y").EnableMouseWheel(true)))

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied