Jump to content
Software FX Community

Pie - Legend - Point Value


User (Legacy)
 Share

Recommended Posts

Hi

I am evaluating the ChartFx Client Server control. I am trying to draw a pie

chart . I have a problem with it though, When I set the legend it appears on

the X axis as labels for each tick mark. I want the legend text to appear on

the legend box and not on the Pie chart itself.

say for eg i set the first quad in the pie to be 50 and the legend to be

"Title1" Title1:50 appears on the pie chart, I want just the point value to

appear not the legend.

Here is the code // Is there any way to do what I am looking for.

If you look at the attached bitmap I just want 3.57% to appear and not the

Title1:3.57%

m_chartfx.SetGallery(5); //Pie chart

m_chartfx.OpenDataEx(1,1,7);

m_chartfx.SetValueEx(0,0,10.00);

m_chartfx.SetValueEx(0,1,20.00);

m_chartfx.SetValueEx(0,2,30.00);

m_chartfx.SetValueEx(0,3,40.00);

m_chartfx.SetValueEx(0,4,50.00);

m_chartfx.SetValueEx(0,5,60.00);

m_chartfx.SetValueEx(0,6,70.00);

m_chartfx.CloseData(1);

m_chartfx.SetChart3D(FALSE);

m_chartfx.SetMultipleColors(TRUE);

m_chartfx.SetPointLabels(TRUE);

m_chartfx.SetLegend(0,"Title1");

m_chartfx.SetLegendBox(TRUE);

Thanks

Indhu

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...