This is a migrated thread and some comments may be shown as answers.

Rad Chart: bar layout

1 Answer 67 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jens
Top achievements
Rank 1
Jens asked on 22 Dec 2008, 11:09 AM
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

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 23 Dec 2008, 08:05 AM
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.
Tags
Chart (Obsolete)
Asked by
Jens
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or