Jump to content
Software FX Community

On pie chart, how to set a border on every pie slice (not on the rectangular plot area containing the chart)?


samiam1029
 Share

Recommended Posts

Hi there, can someone help me how to code to show border on each pie slice and on each legend box? Note this is not to be confused with the rectangular borders surrounding the pie chart or the legend box. In other words, ChartFX gives me the FIRST chart below by default. What I want is the SECOND chart below.

 

Thanks.

Sam

post-7137-13922412911489_thumb.png

Link to comment
Share on other sites

There is already a border around the Pie and around the boxes of the legend box, but it is more subtle than that use by Excel.

 If you want to fix the color of the border do:

 chart.AllSeries.Border.Effect = BorderEffect.None;

 chart.AllSeries.Border.Color = Color.Black;

 To get lines delimiting each slice:

chart.AllSeries.Border.BeweenSegments = true;

 

trackTrace.txt

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