Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5833379
  • 博文数量: 671
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 7310
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-14 09:56
文章分类

全部博文(671)

文章存档

2011年(1)

2010年(2)

2009年(24)

2008年(271)

2007年(319)

2006年(54)

我的朋友

分类: C/C++

2008-09-14 20:26:07

Sample Image - chartnpie.jpg

Introduction

In my work, I always want to display several data series with hole together. has developed a control to display data with hole, but it is not an easy way to use, especially when the data is very sparse, so I decide to develop my own control based on his work. And at the same time, I also want to show these data series in Pie.

How to use?

  1. Add the files in the source package to your project.
  2. Do initialization, see CChartView::OnInitialUpdate().
  3. Call Add of CDataChart to add datasets to the control.
    void Add( int nDatasetID, int nIndex, double nData );
  4. SetStyle(STYLE_LINE) for line chart.
  5. SetStyle(STYLE_PIE) for pie showing.

and that's all.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found

阅读(1218) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~