Border issue with small pie slices

Thread is closed for posting
3 posts, 0 answers
  1. Matthew Erwin
    Matthew Erwin avatar
    24 posts
    Member since:
    Jan 2008

    Posted 22 Feb 2008 Link to this post

    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. Matthew Erwin
    Matthew Erwin avatar
    24 posts
    Member since:
    Jan 2008

    Posted 22 Feb 2008 Link to this post

    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.

  3. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 22 Feb 2008 Link to this post

    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
Back to Top