BarCharts`
BarCharts`
BarChart
As of Version 7.0, BarChart is part of the built-in Wolfram Language kernel.
BarChart[{y1,y2,…}]
generates a bar chart of the values y1,y2,….
BarChart[{list1,list2,…}]
generates a bar chart of the data in the lists.
更多信息和选项
- To use BarChart, you first need to load the Bar Charts Package using Needs["BarCharts`"].
- BarChart has the same options as Graphics with the following additions:
-
BarStyle Automatic style for the bars BarSpacing Automatic ratio of bar width to space bars in a group BarGroupSpacing Automatic spacing between groups of bars BarLabels Automatic labels at tick marks for each bar (or group) BarValues False whether to show the length of each bar BarEdges True whether edges are drawn around each bar BarEdgeStyle Opacity[0.5] style for the bar edges BarOrientation Vertical determines horizontal or vertical orientation - Each listi is a list of numbers or numeric values. For example: {1,7,-4,2,3}.
- The listi need not have the same length.
范例
Wolfram Research (2008),BarChart,Wolfram 语言函数,https://reference.wolfram.com/language/BarCharts/ref/BarChart.html.
文本
Wolfram Research (2008),BarChart,Wolfram 语言函数,https://reference.wolfram.com/language/BarCharts/ref/BarChart.html.
CMS
Wolfram 语言. 2008. "BarChart." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/BarCharts/ref/BarChart.html.
APA
Wolfram 语言. (2008). BarChart. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/BarCharts/ref/BarChart.html 年