我想在我的asp.net应用程序中绘制饼图和条形图,以详细显示年度报告。有免费的工具吗?
我见过森林主题的白色标签主题图,但这些都是付费版本。


发布于 2013-10-26 05:08:35
饼图示例:
<%@ Page language="c#" debug="true" %>
<%@ import Namespace = "csASPNetGraph" %>
<%
Response.Buffer = true;
Response.Expires = 0;
Response.Clear();
GraphClass Graph = new GraphClass();
Graph.Title = "Pie Chart Example";
Graph.AddData("Item 1", 17, "ff0000");
Graph.AddData("Item 2", 28, "00ff00");
Graph.AddData("Item 3", 5, "0000ff");
Graph.GraphType = 0;
Graph.GraphToBrowser(1);
%>条形图示例:
<%@ Page language="c#" debug="true" %>
<%@ import Namespace = "csASPNetGraph" %>
<%
Response.Buffer = true;
Response.Expires = 0;
Response.Clear();
GraphClass Graph = new GraphClass();
Graph.Title = "Bar Chart Example";
Graph.TitleX = 120;
Graph.ShowBarTotal = true;
Graph.AddData("Item 1", 17, "ff0000");
Graph.AddData("Item 2", 28, "00ff00");
Graph.AddData("Item 3", 5, "0000ff");
Graph.GraphType = 1;
Graph.GraphToBrowser(1);
%>请参阅以下链接:
http://www.chestysoft.com/aspnetgraph/manual.htm
发布于 2013-10-26 02:31:12
在ASP.NET 4.0及更高版本中,有一个内置图表控件,可在ASP.NET 3.5 SP1中单独下载。
可以将图表(<asp:Chart>)控件从工具箱的Data部分直接拖到.aspx页面上。
https://stackoverflow.com/questions/19602155
复制相似问题