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
close icon

Zoom in for the whole control?

Does the ChartWebControl support zoom in or out for the whole control?

And in the help file I see such a snippet and does these work for ChartWebControl?
How if it could?
Thanks!












3 Replies

RS Rajarajeswari S Syncfusion Team November 29, 2007 11:15 AM UTC


Hi Liang,

The Essential chart supports zooming feature in the ChartWebControl. To enable zooming along
X axis, use the EnableXZooming property and to enable zooming along the Y axis, use
EnableYZooming property.

To display the chart points,

* Essential chart includes both Zoom in and Zoom out functionalities.

* Zooming is supported on both X and Y axes.

* It is also possible to zoom on Multiple Y axes.

Please refer the sample browser sample from the below link which illustrates the above:

C:\Documents and Settings\User Name\My
Documents\Syncfusion\EssentialStudio\5.2.0.25\Web\chart.web\Samples\2.0\UserInteraction\Zoom
ingAndScrolling\CS

The above sample demonstrates customizing zooming factors for both X and Y axis at run time using the below code:

// Customizing X axis Zoom Factor

protected void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (CheckBox1.Checked)
{
this.ChartWebControl1.PrimaryXAxis.ZoomFactor = Convert.ToDouble(this.ListBox1.SelectedValue);
this.ChartWebControl1.Redraw(true);
}
}

// Customizing Y Axis Zoom Factor

protected void ListBox2_SelectedIndexChanged(object sender, EventArgs e)
{
if (CheckBox2.Checked)
{
this.ChartWebControl1.PrimaryYAxis.ZoomFactor = Convert.ToDouble(this.ListBox1.SelectedValue);
this.ChartWebControl1.Redraw(true);
}

}

Please let me know if this helps you out.

Regards,
Raji




LI Liang November 29, 2007 01:20 PM UTC

Thanks for the quick reply.
I will try it ASAP.
I will tell you next day.



LI Liang November 30, 2007 12:47 AM UTC

I think the feature you told me is zooming on the x and y axis.

What I need is: like in IE, when we click "CTRL +" the whole page is zooming in. And I want the whole chartwebcontrol zooming in.

:)

Thanks


Loader.
Live Chat Icon For mobile
Up arrow icon