Chart and Pie for data with hole






4.25/5 (5 votes)
May 4, 2002

85010

3268
Chart and Pie for data with hole.
Introduction
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?
- Add the files in the source package to your project.
- Do initialization, see
CChartView::OnInitialUpdate()
. - Call
Add
ofCDataChart
to add datasets to the control.void Add( int nDatasetID, int nIndex, double nData );
SetStyle(STYLE_LINE)
for line chart.SetStyle(STYLE_PIE)
for pie showing.
and that's all.