RadHtmlChart how to keep series area fixed size

4 posts, 0 answers
  1. Doug
    Doug avatar
    69 posts
    Member since:
    Aug 2014

    Posted 06 Feb 2015 Link to this post

    my legend if it grows then pushes the chart line area smaller.
    is there a way to fix the plot area? and perhaps just have the legend grow to the right or wrap?
  2. Doug
    Doug avatar
    69 posts
    Member since:
    Aug 2014

    Posted 06 Feb 2015 in reply to Doug Link to this post

    the issue I have is we have the legend on right side and perhaps a long title and perhaps many series.
    so the legend moves the chart plot area to the left and will also move up the right side and appear behind the title.

    I need a way to control the area of the legend.
    I have already written a function to insert breaklines into my title to make it wrap, so I center my title and wrap it every xx words.
    I can probably do the same with legend series names. but would like a way to control this in a better fixed way then a willie nillie guesswork of hopefullies my legends don't get too big
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Doug
    Doug avatar
    69 posts
    Member since:
    Aug 2014

    Posted 06 Feb 2015 in reply to Doug Link to this post

    screenshot
  5. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1494 posts

    Posted 11 Feb 2015 Link to this post

    Hi Doug,

    The dimensions of the chart's plot area are automatically calculated based on the chart's dimensions as well as other elements including the legend. Therefore I am sorry to say that the desired functionality is not achievable with the current implementation of the control.

    What I can suggest is that you create a custom legend, which will not affect the plot area. See such an example is illusrated in the HtmlChart - Conditional Item Colorization online demo.

    Regards,
    Danail Vasilev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top