基本信息
源码名称:chart 柱状图,饼状图,折线图
源码大小:0.06M
文件格式:.rar
开发语言:C#
更新时间:2020-08-05
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559

本次赞助数额为: 2 元 
   源码介绍
chart 柱状图,饼状图,折线图示例

private void Form1_Load(object sender, EventArgs e)
        {
            Random random = new Random();

            this.chart1.Series[0].Name = "教师";
            this.chart1.Series[1].Name = "学生";
            for (int i = 1; i < 12; i )
            {
                this.chart1.Series[0].Points.AddXY(i, random.Next(100));
                this.chart1.Series[1].Points.AddXY(i, random.Next(100));
                this.chart2.Series[0].Points.AddXY(i, random.Next(100));
            }
            double[] yValues = { 65.62, 75.54, 60.45, 55.73, 70.42 };
            string[] xValues = { "France", "Canada", "UK", "USA", "Italy" };            
            this.chart3.Series[0].CustomProperties = "DoughnutRadius=60, PieLabelStyle=Disabled, PieDrawingStyle=SoftEdge";
            this.chart3.Series[0].Label = "#PERCENT";
            this.chart3.Series[0]["PieLabelStyle"] = "Inside";
            this.chart3.Series[0].Points.DataBindXY(xValues, yValues);
        }