BarLabels
is an option for BarChart, StackedBarChart, and PercentileBarChart that allows a label to be placed at the tick mark for each bar (or group of bars for multiple datasets). Labels are specified in a list.
BarLabels
BarLabels
is an option for BarChart, StackedBarChart, and PercentileBarChart that allows a label to be placed at the tick mark for each bar (or group of bars for multiple datasets). Labels are specified in a list.
更多信息和选项
- To use BarLabels, you first need to load the Bar Charts Package using Needs["BarCharts`"].
范例
基本范例 (1)
Needs["BarCharts`"]With BarLabels->Automatic, the bars are numbered:
BarChart[{1, 2, 3}, BarLabels -> Automatic]BarLabels->list labels the bars with the items in the list:
BarChart[{1, 2, 3}, BarLabels -> {"a", "b", "c"}]文本
Wolfram Research (2008),BarLabels,Wolfram 语言函数,https://reference.wolfram.com/language/BarCharts/ref/BarLabels.html.
CMS
Wolfram 语言. 2008. "BarLabels." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/BarCharts/ref/BarLabels.html.
APA
Wolfram 语言. (2008). BarLabels. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/BarCharts/ref/BarLabels.html 年
BibTeX
@misc{reference.wolfram_2026_barlabels, author="Wolfram Research", title="{BarLabels}", year="2008", howpublished="\url{https://reference.wolfram.com/language/BarCharts/ref/BarLabels.html}", note=[Accessed: 18-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_barlabels, organization={Wolfram Research}, title={BarLabels}, year={2008}, url={https://reference.wolfram.com/language/BarCharts/ref/BarLabels.html}, note=[Accessed: 18-August-2026]}