BarSpacing
✖
BarSpacing
is an option to BarChart and related functions that controls the spacing between bars and groups of bars.
Details

- The following settings can be given for BarSpacing:
-
Automatic automatically determine spacing None use no spacing between bars Tiny,Small,Medium,Large use preset automatic spacings s use explicit spacing s between bars {sb,sg} use sb between individual bars and sg between groups - In BarChart and BarChart3D the spacing s is in fractions of the width of a bar.
- In RectangleChart and RectangleChart3D the spacing s is in ordinary coordinates.
Examples
Basic Examples (6)Summary of the most common use cases
Use automatically determined spacing between bars:

https://wolfram.com/xid/0bdpz2s2y-gbo7on


https://wolfram.com/xid/0bdpz2s2y-bhqoh0


https://wolfram.com/xid/0bdpz2s2y-cyfias

Use explicit spacing between bars:

https://wolfram.com/xid/0bdpz2s2y-vppz2r

Use explicit spacing between bars and groups of bars:

https://wolfram.com/xid/0bdpz2s2y-99aub

Position bars within a group with the bars separated by a width of 0.5 and no space between groups:

https://wolfram.com/xid/0bdpz2s2y-dor3oe

Wolfram Research (2008), BarSpacing, Wolfram Language function, https://reference.wolfram.com/language/ref/BarSpacing.html.
Text
Wolfram Research (2008), BarSpacing, Wolfram Language function, https://reference.wolfram.com/language/ref/BarSpacing.html.
Wolfram Research (2008), BarSpacing, Wolfram Language function, https://reference.wolfram.com/language/ref/BarSpacing.html.
CMS
Wolfram Language. 2008. "BarSpacing." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BarSpacing.html.
Wolfram Language. 2008. "BarSpacing." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BarSpacing.html.
APA
Wolfram Language. (2008). BarSpacing. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BarSpacing.html
Wolfram Language. (2008). BarSpacing. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BarSpacing.html
BibTeX
@misc{reference.wolfram_2025_barspacing, author="Wolfram Research", title="{BarSpacing}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/BarSpacing.html}", note=[Accessed: 30-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_barspacing, organization={Wolfram Research}, title={BarSpacing}, year={2008}, url={https://reference.wolfram.com/language/ref/BarSpacing.html}, note=[Accessed: 30-May-2025
]}