Autoresize a graph with lot of data.

4 posts, 0 answers
  1. Shreyas
    Shreyas avatar
    3 posts
    Member since:
    Feb 2016

    Posted 08 Jun Link to this post

    Hi,

     

    I have a horizontal bar graph, with varying amount of data in it. Is there any feature or property I can set, either in code or within the reportviewer directly , so that the graph.container will resize accordingly?

    Thanks in advance!

     

    Regards,

    Shreyas Menon.

  2. Shreyas
    Shreyas avatar
    3 posts
    Member since:
    Feb 2016

    Posted 08 Jun Link to this post

    Hi,

     

    Kindly find Screenshots of the issue.

     

    Regards

  3. DevCraft banner
  4. Shreyas
    Shreyas avatar
    3 posts
    Member since:
    Feb 2016
  5. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 08 Jun Link to this post

    Hello Shreyas,

    The Graph item will not change its size based on the visualized content. Instead the content is recalculated to fit into the available space.
    Having the above into account, you can:
    1. Analize the data in code and set the Graph item's Height based on the number of records. This can be done via binding to the Graph.Height property;
    2. Use the approach from the How to: Add Drilldown action to the Graph item help article to display less data at once in the Graph item.


    Regards,
    Stef
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top