This is a migrated thread and some comments may be shown as answers.

Border issue with small pie slices

2 Answers 67 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Matthew Erwin
Top achievements
Rank 1
Matthew Erwin asked on 22 Feb 2008, 08:24 AM
When using Prometheus Pie Chart with borders on with the ChartSeriesItem object the chart renders with a 1px line drawn out past the center of the pie chart on the smallest slices.

To reproduce just create a pie chart with the following values:

3991
1187
886
506
51
42

You will see that the border drawn around the slices will extend pass the center of the pie chart for the two smallest slices. I can provide code to duplicate if needed or a screenshot to illustrate.

2 Answers, 1 is accepted

Sort by
0
Matthew Erwin
Top achievements
Rank 1
answered on 22 Feb 2008, 08:28 AM
Problem solved by changing the Cap properties of the class:

item.Appearance.Border.Cap = System.Drawing.Drawing2D.LineCap.Flat;

item.Appearance.Border.EndCap = System.Drawing.Drawing2D.LineCap.Flat;

item.Appearance.Border.StartCap = System.Drawing.Drawing2D.LineCap.Flat;



Hope this helps someone else.

0
Sebastian
Telerik team
answered on 22 Feb 2008, 10:03 AM
Hi Matthew,

Thank you for sharing your solution in our public forums. Thus you can help other people which search similar solution. I have updated your Telerik points for the involvement.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (Obsolete)
Asked by
Matthew Erwin
Top achievements
Rank 1
Answers by
Matthew Erwin
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or