Legend to show values when in ItemLabels display mode

Thread is closed for posting
3 posts, 0 answers
  1. Anders Mad.
    Anders Mad. avatar
    42 posts
    Member since:
    May 2006

    Posted 09 May 2008 Link to this post

    When setting a ChartSeries to Appearance.LegendDisplayMode = Charting.ChartSeriesLegendDisplayMode.ItemLabels, is there a way to display the values in the legend?

    The legend seems to use the item "Name" and not the "Label" as the ChartSeriesLegendDisplayMode.ItemLabels suggests.

    I set the item like this (e.g.):
      item.Name = "My Item";
      item.Label.TextBlock.Text = item.Name + " #%";

    Is it possible here to get the legend to display "My Item 50%" rather than just "My Item" (using c#)?

    Thank you..

  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 10 May 2008 Link to this post

    Hello Anders M.,

    I am afraid this can only be achieved with custom legend items at this moment. You can set LegendDisplayMode to Nothing and manually add legend items.

    I will forward this request to our developers for a consideration. Please, accept our apologies for the inconvenience. Your Telerik points have been updated.

    Best wishes,
    Ves
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Anders Mad.
    Anders Mad. avatar
    42 posts
    Member since:
    May 2006

    Posted 10 May 2008 Link to this post

    Thank you.. I didn’t expect to get a reply on a Saturday :-)
Back to Top