BarCharts`
BarCharts`

BarSpacing

As of Version 7.0, BarSpacing is part of the built-in Wolfram Language kernel.

BarSpacing

is an option for bar charts that determines the fraction of the bar width to space the bars in a group of bars.

Details and Options

  • To use BarSpacing, you first need to load the Bar Charts Package using Needs["BarCharts`"].
  • BarSpacing sets the distance between bars within a group of bars in BarChart.
  • BarSpacing sets the distance between groups of bars in PercentileBarChart and StackedBarChart.
  • In BarChart3D, BarSpacing->{m,n} specifies distances between bars in the x and y directions.

Examples

Basic Examples  (1)

The bars within a group are tightly packed:

The bars within a group are widely spaced:

The columns are widely spaced:

This leaves space in the x direction, but not in the y direction:

Wolfram Research (2008), BarSpacing, Wolfram Language function, https://reference.wolfram.com/language/BarCharts/ref/BarSpacing.html.

Text

Wolfram Research (2008), BarSpacing, Wolfram Language function, https://reference.wolfram.com/language/BarCharts/ref/BarSpacing.html.

CMS

Wolfram Language. 2008. "BarSpacing." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/BarCharts/ref/BarSpacing.html.

APA

Wolfram Language. (2008). BarSpacing. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/BarCharts/ref/BarSpacing.html

BibTeX

@misc{reference.wolfram_2024_barspacing, author="Wolfram Research", title="{BarSpacing}", year="2008", howpublished="\url{https://reference.wolfram.com/language/BarCharts/ref/BarSpacing.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_barspacing, organization={Wolfram Research}, title={BarSpacing}, year={2008}, url={https://reference.wolfram.com/language/BarCharts/ref/BarSpacing.html}, note=[Accessed: 21-November-2024 ]}