Jump to content
Software FX Community

Removing % from Pie chart


Jubish
 Share

Recommended Posts

Hi,

  I am binding a pie chart with top 5 data out of a resultset, has the corresponding % calculated from backend.  I c that the chart by itself calculates the % from the top 5 data being bound .

 Is there a option by which i can eliminate or override this percentage calculation done by chart and just display the % i have already calculated.

    I am working with VS 2005  chartfx trial version.

 

Thanks in advance for any help

Jubish

 

 

 

 

 

 

Link to comment
Share on other sites

They should be the same, if your data is already adding up to 100, the percentage calculated by Chart FX and the actual value would be the same. You can customize the point label by using:

chart.AllSeries.PointLabels.Format

By doing this you can change the default behavior of displaying the percentage. You can customize it to display only the value as follows:

chart.AllSeries.PointLabels.Format = "%v";

You can customize the tooltip in the same way using:

chart.ToolTipFormat = "%v";

For more information please review the documentation for these two properties.

Link to comment
Share on other sites

  • 3 months later...

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...