Pie Chart - % and Legend

3 posts, 0 answers
  1. Mark
    Mark avatar
    155 posts
    Member since:
    Oct 2010

    Posted 22 May 2011 Link to this post

    I have a RadChart (pie chart type) bound to a business object entity with properties bldQty (decimal) and varietalID (int).
    The bldQty property represents a perctage (based on a maximum 100%).

    The pie chart autoscales as objects are added to the entity set.  What I'm trying to do is have the pie represent a static 100% and as entities are addes to the entityset add the "slice".

    For example if I add an entity with a bldQty = 23, it should have a single slice of 23% and only that slice shown.  Currently a full pie is drawn with the 23 value.  If I add a second entity of say bldQty = 5, I should now have 2 slices, each represented visually their part of 100%.  Currently the pie is drawn as a full circle with the two values split proportionately.

    In addition, I would like to add a lookup in the Legend portion which I believe can be done in ItemDataBound.  Unfortunately what I've been able to find on the threads refers to WPF and are not relevant.

    [The search function of the website / forums hasn't worked for a couple days which makes looking this type of information up difficult at best so I apologize if there are relevant threads]
  2. Yavor
    Yavor avatar
    11 posts

    Posted 25 May 2011 Link to this post

    Hello Mark,

    Presently, the pie series type cannot support such a rendering. The pie is rendered as a complete entity, and cannot allow rendering of individual slices.

    All the best,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Mark
    Mark avatar
    155 posts
    Member since:
    Oct 2010

    Posted 25 May 2011 Link to this post

    Hi Yavor,

    Thanks for the additional information.  If only real pies acted this way ... (laughing).

    This would be an interesting feature tho ... but as always thank you for your effort.

Back to Top