Jump to content
Software FX Community

Removing % from Pie chart


Jubish

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

Archived

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

×
×
  • Create New...