Remove padding between series groups in stacked bar chart

1 Answer 316 Views
Graph
Tommy
Top achievements
Rank 1
Iron
Iron
Iron
Tommy asked on 26 Aug 2021, 01:34 AM

I have a stacked bar chart in a cell in my table and I'm trying to rip as much out and make it as compact as possible... I have set the PlotAreaStyle background colour to be yellow in my screenshot below... How can I completely remove this space and make my chart more compact in the cell?

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 30 Aug 2021, 10:39 AM

Hi Tommy,

From the provided screenshot, I infer that you have already hidden the legends, titles, labels, and axes and have removed all the padding in the Graph. It seems that the Scale > Minimum/Maximum of the X-axis is also set so that the bar to occupy the entire axis length.

You may also set the YAxis > Scale > SpacingSlotCount to 0 (zero). The default is 1 (one). This setting will force the barSeries to occupy the entire category slot and minimize the empty space below/above the bars. When I tested locally, this indeed reduced greatly the empty space around the Graph but left a tiny strip with its background color on the top and on the right - see the linked screenshot for reference.

I hope this will work for you.

Regards,
Todor
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
Graph
Asked by
Tommy
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Todor
Telerik team
Share this question
or