devexpress 之 ChartControl】的更多相关文章

public partial class Form1 : DevExpress.XtraEditors.XtraForm { public Form1() { InitializeComponent(); LoadAll(); } public void LoadAll() { //Series 对象表示数据系列,并且存储在 SeriesCollection 类中. Series s1 = ];//新建一个series类并给控件赋值 s1.DataSource = ServiceData.Get…
一.控制ChartControl的Y轴范围 使用Devexpress中的CharControl控件,需要控制AxisY轴的显示范围,需要使用该控件的BoundDataChanged事件,具体代码如下: 该代码实现的效果如下:   参考文献: [1]AxisY Range Auto https://www.devexpress.com/Support/Center/Question/Details/Q266328   二.设置GridControl表格中的超级链接: 1.首先在表格的设计器中添加一…
using DevExpress.XtraCharts; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1张奎…
using System; using System.Data; using System.Windows.Forms; using DevExpress.XtraCharts; namespace DevExpressChart { public partial class winDateTime : Form { public winDateTime() { InitializeComponent(); } private void winDateTime_Load(object sende…
DevExpress中的ChartControl顾名思义就是数据基于图表展示,其关键在于Series上的处理. using System; using System.Drawing; using DevExpress.XtraCharts; namespace DevExpressUtilHelpV3 { public static class ChartToolV3 { /// <summary> /// 创建Series /// </summary> /// <param…
在界面中拖入一个ChartControl控件,然后添加一个simplebutton控件.在simplebutton控件的click事件中加入如下代码: private void button1_Click(object sender, EventArgs e)        {            //数据源            chartControl1.DataSource = CreateChartData();            //数据成员            chartCo…
我的数据 代码如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 chartControl1.Series.Clear();    // 柱状图里的第一个柱 Series Series1 = new Series("当年数据", ViewType.Bar); Series1.DataSource = data; Series1.ArgumentScaleType = ScaleType.Qualitative;…
private Dictionary<string, double> chartPieDataDic = new Dictionary<string, double>(); private Dictionary<string, double> chartBarDataDic = new Dictionary<string, double>(); private void showPie() { ChartTitle title = new ChartTitl…
\}5#~mV#cr(/k1yIZ7.Lg…
WPF常用的第三方控件集,DevExpress中ChartControl的使用 下面介绍如何生成Chart界面: <dxc:ChartControl AnimationMode="OnDataChanged" Background="Transparent" BorderThickness="0" BorderBrush="Transparent" SelectionMode="Single" Ser…