DevExpress Chart 加滚动条

            XYDiagram diagram = (XYDiagram)chartControl1.Diagram;
            // Define the visible range for the axes.
            diagram.AxisY.VisualRange.Auto = false;
            diagram.AxisY.VisualRange.SetMinMaxValues(2, 6);
            diagram.AxisX.VisualRange.Auto = false;
            diagram.AxisX.VisualRange.SetMinMaxValues(0, 8);
            diagram.SecondaryAxesX[0].VisualRange.Auto = false;
            diagram.SecondaryAxesX[0].VisualRange.SetMinMaxValues(2, 4);
            // Specify the axes scrolling at the diagram's level.
            diagram.EnableAxisXScrolling = true;
            diagram.EnableAxisYScrolling = false;
            // Individually specify the axes scrolling for the panes.
            diagram.DefaultPane.EnableAxisXScrolling = DefaultBoolean.Default;
            diagram.Panes[0].EnableAxisXScrolling = DefaultBoolean.False;
            // Adjust how the scrolling can be performed.
            diagram.ScrollingOptions.UseKeyboard = true;
            diagram.ScrollingOptions.UseMouse = true;
            diagram.ScrollingOptions.UseScrollBars = true;

阅读更多
个人分类: DevExpress应用
上一篇C# 使用Get,Post,Soap方式调用WebService
下一篇DevExpress SpreadsheetControl 反射移除事件委托
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭