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