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

Band in in a bar chart

1 Answer 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Francis
Top achievements
Rank 1
Francis asked on 21 Aug 2017, 08:22 PM

Hi,

I have to meet some requirements for a client:

1) Add different color bands in the chart to separate different levels.

2) Add the possibility to have multiline label on the axis. 

See the image in attachement.

 

I would like to know if it is possible to achieve that with telerik reporting graph.

1 Answer, 1 is accepted

Sort by
0
Ivan Hristov
Telerik team
answered on 22 Aug 2017, 08:20 AM
Hi Francis,

Yes, it is possible to create a graph with such a layout, as we demonstrated in the attached sample report. Here are some key guidelines how to do that:

1) The color bands are represented by 4 bar series. Assuming your graph has fixed minimum and maximum of the vertical scale (I guess it'll show values in 0-100 range) , it's easy to set each bar's Y and Y0. In our example they are hard-coded, but if your scenario is different, these values can be calculated with an expression or user function.

2) The axis labels are not word-wrapped by default, but if you set the axis' Size property, the labels will try to fit in the available space, wrapping their contents. Note that the desired size depends on the used font settings and you have to make sure that the font is available on the machine that renders the report.

Please take a look at the attached .trdx that demonstrates how to reproduce the graph on the applied screenshot. We hope you will find it useful.

If you need further assistance, do not hesitate to ask.

Regards,
Ivan Hristov
Progress 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
Tags
General Discussions
Asked by
Francis
Top achievements
Rank 1
Answers by
Ivan Hristov
Telerik team
Share this question
or