Rad Chart: bar layout

Thread is closed for posting
2 posts, 0 answers
  1. Jens
    Jens avatar
    1 posts
    Member since:
    Dec 2008

    Posted 22 Dec 2008 Link to this post

    Hey

    I want to show a graph in line form but the user has an option to show it as a bar chart. when he clicks the link i get al these bars squeezed together.

    Is my only option to redraw the series with lesser datapoints.

    Greets
    Jens van der Horst
  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 23 Dec 2008 Link to this post

    Hi Jens,

    Indeed, if you have lots of datapoints that define the line, when you switch to bars you will need to draw the same number of bars. The bars usually need more room than the line points, so it is possible that they appear too narrow. Indeed, a possible workaround is to change the chart datasource (or re-create it) so that one bar appears for every 5 (it might be 10 or 20, depending on the overall number) adjacent points from the line. This bar may represent the average value of these points.

    Greetings,
    Ves
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top