[WinForm]Dundas Chart控件学习(附源码)

1Dundas公司简介

     加拿大的一家公司,专业做图表展现的,很牛,据说现在被Microsoft收购了。官网地址:http://www.dundas.com/

2Chart基本要素

 

 

3、最简单的柱状图

            //01 创建Chart对象
            Chart chart = new Chart();
            //02 创建ChartArea对象
            ChartArea chartArea = new ChartArea();
            //03 把ChartArea添加到Chart对象中
            chart.ChartAreas.Add(chartArea);
            //04 创建Series对象
            Series series1 = new Series();
            series1.Name = "测试细目";
            //05 创建Point
            Double[] db1 = {22};
            Double[] db2 = {44};
            DataPoint dp1 = new DataPoint();
            dp1.XValue = 1;
            dp1.YValues =db1;
            DataPoint dp2 = new DataPoint();
            dp2.XValue = 2;
            dp2.YValues = db2;
            //06 加入点
            series1.Points.Add(dp1);
            series1.Points.Add(dp2);
            //07 加入series1
            chart.Series.Add(series1);
            //08 定义表头 标题
            Title t = new Title();
            t.Text = "我是标题我怕谁";
            t.Color = Color.Red;
            t.Font = new Font("Times New Roman", 12, FontStyle.Bold);
            t.Alignment = System.Drawing.ContentAlignment.BottomCenter;
            chart.Titles.Add(t);
            //09 定义展现位置坐标
            chart.Location = new System.Drawing.Point(0,0);
            //10 Chart的大小
            chart.Size = new System.Drawing.Size(360,260);
            //11 展现Chart
            this.Controls.AddRange(new System.Windows.Forms.Control[]{chart});

  

随便改个类型:series1.Type = SeriesChartType.Pie;

再改个类型:series1.Type = SeriesChartType.Line;

源码: 动态显示信号_正弦波.zip

转载于:https://www.cnblogs.com/huxiaolin/p/4484955.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Add advanced charting to your ASP.NET applications. Dundas Chart ASP.NET Enterprise Edition is a fully managed, CLR (Common Language Runtime) compliant charting component designed for ASP.NET development. Included is support for all standard and many advanced chart types, drilldown functionality, full Visual Studio Integrated help, a variety of different image formats and intuitive samples and examples to speed up development time. Graphics take full advantage of GDI+ and the use of transparency, anti-aliasing, gradients and more. Dundas Chart for ASP.NET Enterprise Edition includes many advanced features including: formula support, data grouping, data filtering and advanced chart types. Dundas Chart for .NET is the industry leader in .NET Charting Solutions. Providing you with the most comprehensive features, the most complete sample framework, and the best live technical support available. From start to finish, our team is dedicated to providing what you need to make your project successful. Whether you are implementing charting into internal projects, or building applications for clients, Dundas Chart offers advanced, award-winning technology and advanced results to get the most out of data What’s new in Dundas Chart for ASP.NET? Now supports Visual Studio 2010 What’s new in Dundas Chart V7.1? - V7.1 fixes these issues: AlwaysRecreateHotregions="True" in WinForms templates or templates generated by Chart Builder causes the Exception Can't deserialize property. Unknown property name "AlwaysRecreateHotregions" in object Dundas.Charting.WebControl.Chart" when de-serialized in ASP.NET Chart. This property only exists in the WinForms Chart. The ASP.NET Chart ignores this property by default now. Chart .NET: Stacked Column + 3D throws an Index was out of range exception when series have a different number of data points The accumulation distribution formula is incorrect; if open and close are the same it will divide by zero. A friendlier exception message is th
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值