How to customize Legend?

2 posts, 0 answers
  1. Madhan
    Madhan avatar
    19 posts
    Member since:
    Aug 2012

    Posted 14 Sep 2012 Link to this post

    Hello Team,

    We are using RadChart control to show Revenue,here we have two series mappings like VTB and YOY.I have placed legend at top position.

    We have arequirement like display Legend Name and Series in One line like:

    Legend VTB YOY

    but currently it is showing as follows

    Legend
    VTB
    YOY

    Can you please help me in this?
  2. Petar Kirov
    Admin
    Petar Kirov avatar
    425 posts

    Posted 19 Sep 2012 Link to this post

    Hi Madhan,

    I believe that you have used different approach in placing the legend on top than the out-of-the-box solution, because when you set this: 

    radChart.DefaultView.ChartLegendPosition = Dock.Top;
    The chart legend automatically arranges its items horizontally. Note that for this to work you have to use the DefaultLayout of , and not a custom one.

    I hope this is the solution you are searching for. You can check this article for more information.

    Greetings,
    Petar Kirov
    the Telerik team

    Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

  3. DevCraft banner
Back to Top