| |
 |
How to: Individually Adjust Axes Zooming (Runtime Sample)
This example demonstrates how you can individually adjust zooming for different panes along the required axes. A chart with two panes is used to demonstrate this feature.
C# |
using System.Windows.Forms;
using DevExpress.Utils;
using DevExpress.XtraCharts;
private void Form1_Load(object sender, EventArgs e) {
XYDiagram diagram = (XYDiagram)chartControl1.Diagram;
diagram.EnableAxisXZooming = true;
diagram.DefaultPane.EnableAxisXZooming = DefaultBoolean.True;
diagram.Panes[0].EnableAxisXZooming = DefaultBoolean.False;
diagram.ZoomingOptions.UseKeyboard = false;
diagram.ZoomingOptions.UseKeyboardWithMouse = true;
diagram.ZoomingOptions.UseMouseWheel = true;
}
|
VB |
Imports System.Windows.Forms
Imports DevExpress.Utils
Imports DevExpress.XtraCharts
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As EventArgs) Handles MyBase.Load
Dim diagram As XYDiagram = CType(chartControl1.Diagram, XYDiagram)
diagram.EnableAxisXZooming = True
diagram.DefaultPane.EnableAxisXZooming = DefaultBoolean.True
diagram.Panes(0).EnableAxisXZooming = DefaultBoolean.False
diagram.ZoomingOptions.UseKeyboard = False
diagram.ZoomingOptions.UseKeyboardWithMouse = True
diagram.ZoomingOptions.UseMouseWheel = True
End Sub
|

See Also
Is this topic helpful?
Additional Feedback
Close
|