Jump to content
Software FX Community

Re: PIE Chart - Display values or percentage


User (Legacy)

Recommended Posts

--

Kind regards,

Rolf_huijbrechts@yahoo.com

"Rolf" <rolf_huijbrechts@yahoo.com> wrote in message

news:Cr9CQRntBHA.1412@webserver1.softwarefx.com...

> Hi,

>

>

>

> I am doing some more tests with the pie chart. I am having problems to

> display the percentage or value next to the pie. Please explain how to use

> this.

>

>

>

> The comments are in the code:

>

> m_pChartFX->ClearData(CD_ALLDATA);

>

> m_pChartFX->PutTitle(CHART_TOPTIT, L"Group ZOCOR");

> m_pChartFX->PutToolBar(FALSE); m_pChartFX->PutMarkerSize(5);

> m_pChartFX->PutGallery(PIE); m_pChartFX->PutBorder(TRUE);

>

> // if I don't set this property => no percentages

> m_pChartFX->PutPointLabels(TRUE);

>

> // When setting this property => no values are displayed

> m_pChartFX->PutTypeMask(CT_PIEVALUES);

>

> m_pChartFX->OpenDataEx( COD_VALUES, 1, COD_UNKNOWN);

>

> m_pChartFX->PutValueEx(0, 0, 135);

>

> m_pChartFX->PutValueEx(0, 1, 40);

>

> m_pChartFX->PutValueEx(0, 2, 90);

>

> m_pChartFX->PutValueEx(0, 3, 120);

>

>

> m_pChartFX->CloseData(COD_VALUES);

>

>

> --

> Kind regards,

> Rolf_huijbrechts@yahoo.com

>

>

post-2104-13922398158251_thumb.png

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...