我想在我的网页上创建动态图表。我使用的是stringbuilder,但我无法在页面上看到图表。你能帮忙怎么做?
StringBuilder builderchart = new StringBuilder();
builderchart.Append("<table>");
builderchart.Append("<tr>");
builderchart.Append("<td width=412 class=tdchart>");
builderchart.Append("<p>");
builderchart.Append("<asp:Chart ID=Chart1 runat=server><Series><asp:Series Name=Series1></asp:Series></Series><ChartAreas><asp:ChartArea Name=ChartArea1></asp:ChartArea></ChartAreas></asp:Chart>");
builder.Append("</p>");
builderchart.Append("</table>");
Literal2.Text = builderchart.ToString();
答案 0 :(得分:0)
您不能使用StringBuilder
来实例化控件。
您可以从以下链接下载一些图表控件示例:http://archive.msdn.microsoft.com/mschart