Click here to Skip to main content
13,260,086 members (48,335 online)
Click here to Skip to main content
Add your own
alternative version


42 bookmarked
Posted 3 May 2002

Chart and Pie for data with hole

, 3 May 2002
Rate this:
Please Sign up or sign in to vote.
Chart and Pie for data with hole.

Sample Image - chartnpie.jpg


In my work, I always want to display several data series with hole together. Massimo Colurcio 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.


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 here


About the Author

Tingshao Zhu
United States United States
No Biography provided

You may also be interested in...


Comments and Discussions

QuestionBug: GetClientRect In CalcData On WINCE Pin
JiaTang4-Sep-12 15:30
memberJiaTang4-Sep-12 15:30 
QuestionMemory Leak!?!? Pin
wumme21-Nov-05 5:39
memberwumme21-Nov-05 5:39 
GeneralBug in calculating Max values Pin
Nicolas Stuardo2-Jul-05 20:21
memberNicolas Stuardo2-Jul-05 20:21 
QuestionHow can I change the label of the X axis Pin
nikisoft27-Oct-04 2:16
membernikisoft27-Oct-04 2:16 
GeneralGood job! Pin
guya2-Sep-04 21:59
memberguya2-Sep-04 21:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171114.1 | Last Updated 4 May 2002
Article Copyright 2002 by Tingshao Zhu
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid