文件名称:web页上绘制饼图曲线图等组件(c#)
文件大小:136KB
文件格式:RAR
更新时间:2012-05-13 08:29:28
饼图曲线图
web页上绘制饼图曲线图等组件(c#)
例子: 生成饼图表********************************************
private void InitializeComponent()
{
this.myBarGraph.RenderGraph += new ZedGraph.Web.ZedGraphWebControlEventHandler(this.OnRenderGraphBar);
this.myLineGraph.RenderGraph += new ZedGraph.Web.ZedGraphWebControlEventHandler(this.OnRenderGraphLine);
}
private void OnRenderGraphBar(ZedGraphWeb zgw, System.Drawing.Graphics g, ZedGraph.MasterPane masterPane)
{
myBarMethod(zgw, g, masterPane, strYear, strMonth, compareType);
}
private void OnRenderGraphLine(ZedGraphWeb zgw, System.Drawing.Graphics g, ZedGraph.MasterPane masterPane)
{
myLineMethod(zgw, g, masterPane, douYear, douMonth);
}
private void myBarMethod(ZedGraphWeb zgw, System.Drawing.Graphics g, ZedGraph.MasterPane masterPane, string[] strYear, string[] strMonth, string compareType)
{
GraphPane myPane = masterPane[0];
myPane.Title.Text = title + "柱状图分析";
myPane.XAxis.Title.Text = "时间(月/年)";
if (compareType == "AddValue")
{
myPane.YAxis.Title.Text = "增加值";
}
else
{
myPane.YAxis.Title.Text = "增加比例(%)";
}
List
【文件预览】:
ZedGraph.Web.dll
ZedGraph.dll