Increase gap between grouped bars

4 posts, 1 answers
  1. Dinakaran
    Dinakaran avatar
    14 posts
    Member since:
    Aug 2013

    Posted 29 Jun 2017 Link to this post

    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?

  2. Answer
    Stef
    Admin
    Stef avatar
    3610 posts

    Posted 29 Jun 2017 Link to this post

    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
  3. Teddy
    Teddy avatar
    3 posts
    Member since:
    Sep 2011

    Posted 10 Apr 2018 Link to this post

    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

  4. Silviya
    Admin
    Silviya avatar
    414 posts

    Posted 13 Apr 2018 Link to this post

    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
Back to Top