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

Increase gap between grouped bars

3 Answers 277 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dinakaran
Top achievements
Rank 1
Dinakaran asked on 29 Jun 2017, 08:05 AM

Hello,

       I am using Telerik Reporting R3 2016 and generating some clustered bar chart. I need to increase gap between each item in grouped bars. I have attached screenshot, please refer. Is that possible to increase gap between grouped bars?

3 Answers, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 29 Jun 2017, 09:51 AM
Hello Dinakaran,

Please check How to: Change the Gap Between the Bars.
Note that gaps between bars in the same slot cannot be changed in the same way. You can add series between the other series with 0 value - the series will occupy space, but there will be no visible bar on screen.

Other approach is to use the BarSeries.DataPointStyle.LineWidth set to a value different than 0in. The result will be a line surrounding each bar and separating it from the rest bars.


I hope this helps.

Regards,
Stef
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
0
Teddy
Top achievements
Rank 2
answered on 10 Apr 2018, 12:26 PM

Hi Stef

 

I attempting to use your solution to add spaces between bars in the same slot:

"You can add series between the other series with 0 value - the series will occupy space, but there will be no visible bar on screen."

How exactly do you achieve this?

 

Regards,

Teddy

0
Silviya
Telerik team
answered on 13 Apr 2018, 11:04 AM
Hi Teddy,

I'm attaching sample report definition illustrating this behavior.

In the set of data I added tree types - two visible for the actual data and one between them which value is set to 0. When building the graph data item, this "empty" bar series would divide the other two series of the categories groups. 
Then you can set a conditional formatting rule to hide this type from the legend. This could be achieved as follows:
1. On the design surface select bar series.
2. In the Misc section expand the LegendItem properties and add new Conditional Formatting rule.
3. In conditional formatting dialog -> New Rule -> Edit Filters​ where you can create your logic (for example: = Fields.Amount = 0) -> Style where you have to uncheck the Visible check mark.

Regards,
Silviya
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
Dinakaran
Top achievements
Rank 1
Answers by
Stef
Telerik team
Teddy
Top achievements
Rank 2
Silviya
Telerik team
Share this question
or