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

推荐订阅源

Engineering at Meta
Engineering at Meta
博客园_首页
H
Help Net Security
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
B
Blog
I
InfoQ
SecWiki News
SecWiki News
T
Tailwind CSS Blog
Spread Privacy
Spread Privacy
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Vulnerabilities – Threatpost
N
Netflix TechBlog - Medium
P
Palo Alto Networks Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Vercel News
Vercel News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
K
Kaspersky official blog
M
MIT News - Artificial intelligence
S
Schneier on Security
T
Threat Research - Cisco Blogs
F
Fortinet All Blogs
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The Cloudflare Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
G
GRAHAM CLULEY
IT之家
IT之家
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
腾讯CDC
Google DeepMind News
Google DeepMind News
V
V2EX
S
Securelist
TaoSecurity Blog
TaoSecurity Blog
B
Blog RSS Feed
S
SegmentFault 最新的问题
博客园 - 叶小钗
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Project Zero
Project Zero
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
F
Full Disclosure

博客园 - 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