博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Devexpress ChartControl 柱状图简单例子
阅读量:6151 次
发布时间:2019-06-21

本文共 1744 字,大约阅读时间需要 5 分钟。

  

//using DevExpress.XtraEditors;
//using DevExpress.XtraCharts;
// Create an empty chart.            ChartControl sideBySideBarChart = new ChartControl();            // Create the first side-by-side bar series and add points to it.            Series series1 = new Series("Side-by-Side Bar Series 1", ViewType.Bar);            series1.Points.Add(new SeriesPoint("A", 10));            series1.Points.Add(new SeriesPoint("B", 12));            series1.Points.Add(new SeriesPoint("C", 14));            series1.Points.Add(new SeriesPoint("D", 17));            // Create the second side-by-side bar series and add points to it.            Series series2 = new Series("Side-by-Side Bar Series 2", ViewType.Bar);            series2.Points.Add(new SeriesPoint("A", 15));            series2.Points.Add(new SeriesPoint("B", 18));            series2.Points.Add(new SeriesPoint("C", 25));            series2.Points.Add(new SeriesPoint("D", 33));            // Add the series to the chart.            sideBySideBarChart.Series.Add(series1);            sideBySideBarChart.Series.Add(series2);            // Hide the legend (if necessary).            sideBySideBarChart.Legend.Visibility = DevExpress.Utils.DefaultBoolean.False;            // Rotate the diagram (if necessary).            //((XYDiagram)sideBySideBarChart.Diagram).Rotated = true;            // Add a title to the chart (if necessary).            ChartTitle chartTitle1 = new ChartTitle();            chartTitle1.Text = "Side-by-Side Bar Chart";            sideBySideBarChart.Titles.Add(chartTitle1);            // Add the chart to the form.            sideBySideBarChart.Dock = DockStyle.Fill;            this.Controls.Add(sideBySideBarChart);

转载于:https://www.cnblogs.com/habin/p/6580888.html

你可能感兴趣的文章
7.对象创建型模式-总结
查看>>
1、块:ion-item
查看>>
【论文阅读】Classification of breast cancer histology images using transfer learning
查看>>
移动端处理图片懒加载
查看>>
jQuery.on() 函数详解
查看>>
谈缓存和Redis
查看>>
【转】百度地图api,根据多点注标坐标范围计算地图缩放级别zoom自适应地图
查看>>
用户调研(补)
查看>>
ExtJS之开篇:我来了
查看>>
☆1018
查看>>
oracle 去掉空格
查看>>
6.13心得
查看>>
Runtime类
查看>>
eclipse decompiler
查看>>
记一个搜索网盘资源的网站
查看>>
jdk1.7和jdk1.8的String的getByte方法的差异
查看>>
java父子进程通信
查看>>
Android ADB server didn't ACK * failed to start daemon * 简单有效的解决方案
查看>>
Olap学习笔记
查看>>
Codeforces Round #431 (Div. 1)
查看>>