zedGraph画饼图
来源:互联网 发布:凹凸视频大软件 编辑:程序博客网 时间:2024/04/30 04:08
public void CreateChart(ZedGraphControl zgc) { GraphPane myPane = zgc.GraphPane; // 设置图表的标题和标题的样式 myPane.Title.Text = "2004 ZedGraph Sales by Region\n($M)"; myPane.Title.FontSpec.IsItalic = true; myPane.Title.FontSpec.Size = 24f; myPane.Title.FontSpec.Family = "Times New Roman"; // 设置背景色 myPane.Fill = new Fill(Color.White, Color.Goldenrod, 45.0f); // 设置图表的颜色填充,如果设置为FillType.None,则填充色和背景色相同 myPane.Chart.Fill.Type = FillType.None; // 设置图例的大小和位置 myPane.Legend.Position = LegendPos.Float; myPane.Legend.Location = new Location(0.95f, 0.15f, CoordType.PaneFraction, AlignH.Right, AlignV.Top); myPane.Legend.FontSpec.Size = 10f; myPane.Legend.IsHStack = false; /* * 设置饼图的各个部分 * AddPieSlice方法的参数是 value值, 颜色,渐变色,渐变大小,离开中心点的距离,名称 */ PieItem segment1 = myPane.AddPieSlice(20, Color.Navy, Color.White, 45f, 0, "North"); PieItem segment3 = myPane.AddPieSlice(30, Color.Purple, Color.White, 45f, 0, "East"); PieItem segment4 = myPane.AddPieSlice(10.21, Color.LimeGreen, Color.White, 45f, 0, "West"); PieItem segment2 = myPane.AddPieSlice(40, Color.SandyBrown, Color.White, 45f, 0.2, "South"); PieItem segment6 = myPane.AddPieSlice(250, Color.Red, Color.White, 45f, 0, "Europe"); PieItem segment7 = myPane.AddPieSlice(50, Color.Blue, Color.White, 45f, 0.2, "Pac Rim"); PieItem segment8 = myPane.AddPieSlice(400, Color.Green, Color.White, 45f, 0, "South America"); PieItem segment9 = myPane.AddPieSlice(50, Color.Yellow, Color.White, 45f, 0.2, "Africa"); zgc.AxisChange(); }
0 0
- zedGraph画饼图
- Asp.net 用Zedgraph 画饼形图
- ZedGraph控件 画饼图 折线图 柱状图 函数
- 画饼图
- 画饼图
- 画饼图
- 画饼图
- ZedGraph类库之基本教程---PieSampleDemo.cs(画饼)
- asp.net画饼图
- Pie画饼图
- Flot画饼图
- asp.net画饼图
- 利用JqPlot画饼图
- 使用QPainter 画饼图
- 利用applet画饼图
- iOS之画饼图
- Quartz2D - 画饼图
- MFC画饼状图
- 自我介绍
- POJ 1054 The Troublesome Frog
- uva 10395 LCM转化为LIS
- Python的urllib2
- 分页sql
- zedGraph画饼图
- 刘鸿锐
- linux 的rpm命令
- C语言 - 结构体(struct)的位字段(:) 详解
- 使用CSS3 MEDIA QUERIES实现网页自适应
- Introduction to Bode Plot 波特图入门
- Map遍历的四种方法
- 湘大OJ1179Bird's Breakfast(dp)
- 无法打开文件"LIBC.lib"问题解决