惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

博客园 - surprise

首次使用Ajax 大家看一下这是.net的漏洞还是程序有问题,我一时也没搞清,只知道这问题挺怪的 - surprise - 博客园 一道Sql语句问题? 运用C#处理lob数据类型 (Oracle) 介绍一种Web上打印技术 Sql Server 中image类型迁移到Oracle 中Blob类型出现图片显示不出来,why????请博客们帮忙 在C#中存储Blob类型的数据, windows 2000下最多可以承受有多大容量外存???? 太爽了博客园有论坛了? 谁能帮我 WebChart组件的使用??? 能不能在博客园内建立一块开源区呀??? 如何在类库项目中添加配置文件?????? 中文版的hibernate pdf教程下载 用Nhibernate怎么实现数据的添加、删除、修改简单程序 介绍Nhibernate网站 俺现在碰到一些问题请大家帮忙??? 俺现在有个程序需要UTC转换为当地时间,哪位大虾会呀??? 我想问一下NHibernate的问题??? 10.1我发现一个非常好的架构NHibernate,我想和大家一起研究
如何使用一个不错的图表组件WebChart(免费)
surprise · 2004-11-17 · via 博客园 - surprise

  在上次灵感之源介绍了一些免费的组件,这次公司正派上用处真的很感谢。说起用WebChart组件真的很简单,并且效果也不错。现在就让我简单介绍怎么使用和一些注意点:
1.首先创建项目MyWebChart

2.添加组件于工具箱

       进入项目后在工具箱中右击鼠标,单击“添加/移除项”,进入“自定义工具箱”,单击“浏览”按钮,找到WebChart.dll文件,在ChartControl组件名称上打钩,单击“确定”。

在工具箱的“Web窗体”中就出现了ChartControl组件

3.使用组件

  ChartControl组件拖入设计窗体

这样一个简单ChartControl组件的框图出现了

4.写代码

       首先在代码的最前面添加 

using WebChart;

接着在private void Page_Load(object sender, System.EventArgs e)添加代码

private void Page_Load(object sender, System.EventArgs e)

         {

              Chart c = new AreaChart();

              c.Data.Add( new ChartPoint("Ene", 123));

              c.Data.Add( new ChartPoint("Ene", 33));

              c.Data.Add( new ChartPoint("Ene", 23));

              c.Line.Color = Color.Blue;

              ChartControl1.Charts.Add( c );

              ChartControl1.RedrawChart();

       }

5.编译与运行

       好了一切准备就绪,开始运行

怎么会出现错误的,这个错误一开始确实让我觉得头疼,我到了一些相关网站特别是官方网站,找了半天没结果,但最后在帮助文件末尾上才知道,在项目中需要建立一个WebCharts的目录,接着我按照帮助文件的要求建立了,再一次编译运行。

    啊怎么又有错了,开始感到郁闷了以为这组件是不能用的呢?

  接着又看起了帮助文件,在帮助文件最后一句写到“IF you find an exception of Generic Error GDI+ .... then it means the folder is there, but the user (ASPNET or whatever user you are using) do not have write permissions on the folder。”这才明白,如果你的系统盘是NTFS格式的需要在WebCharts目录下添加aspnet的用户权限。我照着它的意思做了,哇成功了,太棒了。

效果不错吧,并且用这控件还有好多属性让你使用,使的界面更直观更好看。

下载地址:http://www.carlosag.net/Tools/WebChart/Default.aspx