AE中,用ZedGraph控件画柱状图、饼状图
2012-05-08 21:08
141 查看
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click CreateGraph_GradientByZBars(XXXXXXXX) '折线图 End Sub Private Sub CreateGraph_GradientByZBars(ByVal z1 As ZedGraphControl) Dim myPane As GraphPane = z1.GraphPane myPane.Title.Text = "Demonstration of Multi-Colored Bars with a Single BarItem" myPane.XAxis.Title.Text = "Bar Number" myPane.YAxis.Title.Text = "Value" Dim list As New PointPairList() Dim rand As New Random() Dim i As Integer For i = 0 To 15 Dim x As Double = CDbl(i) + 1 Dim y As Double = rand.NextDouble() * 1000 Dim z As Double = i / 4.0 list.Add(x, y, z) Next i Dim myCurve As BarItem = myPane.AddBar("Multi-Colored Bars", list, Color.Blue) Dim colors As Color() = {Color.Red, Color.Yellow, Color.Green, Color.Blue, Color.Purple} myCurve.Bar.Fill = New Fill(colors) myCurve.Bar.Fill.Type = FillType.GradientByZ myCurve.Bar.Fill.RangeMin = 0 myCurve.Bar.Fill.RangeMax = 4 myPane.Chart.Fill = New Fill(Color.White, Color.FromArgb(220, 220, 255), 45) myPane.Fill = New Fill(Color.White, Color.FromArgb(255, 255, 225), 45) ' Tell ZedGraph to calculate the axis ranges z1.AxisChange() End Sub 'CreateGraph_GradientByZBars
相关文章推荐
- 使用 ZedGraph控件绘制柱状图,饼图
- WinForm"ZedGraph柱状图"控件使用经验分享 之配餐系统的开发
- WinForm"ZedGraph柱状图"控件使用经验分享 之配餐系统的开发
- ZedGraph控件 画饼图 折线图 柱状图 函数
- WPF报表控件(折线图、柱状图、饼状图)
- Wpf/Wp/Silverlight-Chart图表控件:柱状图、饼状图等使用汇总
- .net之生成图表的控件(柱状图,曲线图,饼状图)
- .net之生成图表的控件(柱状图,曲线图,饼状图) [转]
- C# 利用ZedGraph控件画折线图-标注数字
- 在Project中引用zedgraph控件
- PHP jpgraph库的配置及生成统计图表:折线图、柱状图、饼状图等
- 开源图表控件ZedGraph控件的研究(1)
- Asp.net 2.0 自定义控件开发[开发一个图表(WebChart)控件(柱状图示例)](示例代码下载)
- 使用DevExpress的WebChartControl控件绘制图表(柱状图、折线图、饼图)
- Android自定义统计图(柱状图,折线图,饼状图)
- C#的WinForm中制作饼状图和柱状图
- Asp.net 2.0 自定义控件开发[开发一个图表(WebChart)控件(柱状图示例)](示例代码下载)
- c#中连接数据库后绘制柱状图和饼状图
- JFreeChart生成柱状图、饼状图、折线图详解
- 开源图表控件ZedGraph控件的研究