ChartDirector问题

无所不能的名侦探 2005-11-23 11:51:00
有熟悉ChartDirector的人吗?
<%@ Page Language="C#" Debug="true" %>
<%@ Import Namespace="ChartDirector" %>
<%@ Register TagPrefix="chart" Namespace="ChartDirector" Assembly="netchartdir" %>
<%
//The data for the pie chart
double[] data = {25, 18, 15, 12, 8, 30, 35};

//The labels for the pie chart
string[] labels = {"Labor", "Licenses", "Taxes", "Legal", "Insurance",
"Facilities", "Production"};

//Create a PieChart object of size 360 x 300 pixels
PieChart c = new PieChart(360, 300);

//Set the center of the pie at (180, 140) and the radius to 100 pixels
c.setPieSize(180, 140, 100);

//Set the pie data and the pie labels
c.setData(data, labels);

//output the chart
WebChartViewer1.Image = c.makeWebImage(Chart.PNG);

//include tool tip for the chart
WebChartViewer1.ImageMap = c.getHTMLImageMap("", "",
"title='{label}: US${value}K ({percent}%)'");
%>
<html>
<body>
<chart:WebChartViewer id="WebChartViewer1" runat="server" />
</body>
</html>
在vs2003 的 View in Browse 可以看到效果,但是运行在ie中看不到图形,怎么解决?
...全文
245 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
jpg,bmp...都 不行
yj0867 2005-11-23
  • 打赏
  • 举报
回复
你的IE是不是禁止显示图片了?
要不换个图片格式试试(如GIF、JPG)

4,819

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 图表区
社区管理员
  • 图表区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧