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.

更多信息和选项

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

范例

基本范例  (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 语言函数,https://reference.wolfram.com/language/BarCharts/ref/BarStyle.html.

文本

Wolfram Research (2008),BarStyle,Wolfram 语言函数,https://reference.wolfram.com/language/BarCharts/ref/BarStyle.html.

CMS

Wolfram 语言. 2008. "BarStyle." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/BarCharts/ref/BarStyle.html.

APA

Wolfram 语言. (2008). BarStyle. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/BarCharts/ref/BarStyle.html 年

BibTeX

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

BibLaTeX

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