BarCharts`
BarCharts`

BarStyle

As of Version 7.0, BarStyle has been superseded by ChartStyle.

BarStyle

is an option for bar charts that determines the default style for the bars.

Details

  • To use BarStyle, you first need to load the Bar Charts Package using Needs["BarCharts`"].
  • If there is only one dataset, the styles are cycled among the bars. If there are multiple datasets, the styles are cycled among the sets.
  • If the value is a function, the function is applied to the height of each bar.

Examples

Basic Examples  (1)

Use a custom color for the chart:

For a single set of data, the styles cycle:

Use Directive to combine styles:

For multiple datasets, each set gets its own style:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2022_barstyle, author="Wolfram Research", title="{BarStyle}", year="2008", howpublished="\url{https://reference.wolfram.com/language/BarCharts/ref/BarStyle.html}", note=[Accessed: 01-December-2022 ]}

BibLaTeX

@online{reference.wolfram_2022_barstyle, organization={Wolfram Research}, title={BarStyle}, year={2008}, url={https://reference.wolfram.com/language/BarCharts/ref/BarStyle.html}, note=[Accessed: 01-December-2022 ]}