Jump to content
Software FX Community

Pie Chart Point Labels


mattfinn

Recommended Posts

Is there a way to have the point labels on a Pie Chart show up as the actual value of that point instead of the % of the pie chart?

 I'm also have a problem with my Labels in the Legend Box getting cut off because they are too long (i.e "Contamination").  Is there a way to fix that so the whole word can be viewed?

Link to comment
Share on other sites

Hi,

Chart FX for .NET includes a property called "PointLabelMask" which allows to customize the way PointLabels are displayed. Please take a look at the variables below. Variables can be accessed using the % following the variable you want to include:

l Shows X-Axis Legend. k Shows X-Axis Key Legend. s Shows Series Legend.x Shows XValues (XY Plots).i Shows IniValues (Gantt).v Shows Data Value.n <n> For types that require more than one series, these are replaced by the value of each one. (n represents an index).t Series Total (Sum of all points in this series).p Percentage of total this point represents (Pie).T Point Total (Sum of all series for this point). P Percentage of total this series represents (Used in stacked charts). X displays the marker X value for any chart type including those that do not support X values such as bar.L Shows the Tag string of the Point object.N Shows the index for the point.S Shows the index for the series.Since you want to display the actual value, you just need to use the "v" variable:Chart.PointLabelMask = "Value %v"

Regards,

RandyJ

Link to comment
Share on other sites

  • 3 weeks 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.

×
×
  • Create New...