WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center
BarStyle

BarStyle

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

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
See Also
Cite this Page
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 and Options

  • 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)

Wolfram Language code: Needs["BarCharts`"]

Use a custom color for the chart:

Wolfram Language code: BarChart[{1, 1, 2, 3, 5, 8}, BarStyle -> Yellow]

For a single set of data, the styles cycle:

Wolfram Language code: BarChart[{1, 1, 2, 3, 5, 8}, BarStyle -> {Yellow, Green}]

Use Directive to combine styles:

Wolfram Language code: BarChart[{1, 1, 2, 3, 5, 8}, BarStyle -> Directive[Yellow, Opacity[0.5]]]

For multiple datasets, each set gets its own style:

Wolfram Language code: BarChart[RandomReal[{0.25, 1}, {3, 5}], BarStyle -> {Red, Green, Blue}]
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_2026_barstyle, author="Wolfram Research", title="{BarStyle}", year="2008", howpublished="\url{https://reference.wolfram.com/language/BarCharts/ref/BarStyle.html}", note=[Accessed: 16-August-2026]}

BibLaTeX

@online{reference.wolfram_2026_barstyle, organization={Wolfram Research}, title={BarStyle}, year={2008}, url={https://reference.wolfram.com/language/BarCharts/ref/BarStyle.html}, note=[Accessed: 16-August-2026]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /