# BarChart 指令

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

##### 指令分类 （所有指令）

BarChart( <List of Data>, <List of Frequencies> )
Creates a bar chart using the list of data with corresponding frequencies.

• `BarChart({10, 11, 12, 13, 14}, {5, 8, 12, 0, 1})`
• `BarChart({5, 6, 7, 8, 9}, {1, 0, 12, 43, 3})`
• `BarChart({0.3, 0.4, 0.5, 0.6}, {12, 33, 13, 4})`
BarChart( <List of Raw Data>, <Width of Bars>, <Vertical Scale Factor (optional)> )
Creates a bar chart using the given raw data; the bars have the given width and the height of the bars depends on the vertical scale factor.

• `BarChart({1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 5, 5, 5, 5}, 1)`
• `BarChart({1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 5, 5, 5, 5}, 1, 2)`
BarChart( <List of Data> , <List of Frequencies>, <Width of Bars> )
Creates a bar chart using the list of data and corresponding frequencies; the bars have width w.

• `BarChart({10, 11, 12, 13, 14}, {5, 8, 12, 0, 1}, 0.5)` leaves gaps between bars.
• `BarChart({10, 11, 12, 13, 14}, {5, 8, 12, 0, 1}, 0)` produces a line graph.
BarChart( <Start Value>, <End Value>, <List of Heights> )
Creates a bar chart over the given interval: the number of bars is determined by the length of the list, whose elements are the heights of the bars.

BarChart( <Start Value>, <End Value> , <Expression>, <Variable>, <From Number>, <To Number> )
Creates a bar chart over the given interval (Start Value, End Value), that calculates the bars’ heights using the expression whose variable k varies from number c to number d.

BarChart( <Start Value>, <End Value>, <Expression>, <Variable>, <From Number>, <To Number>, <Step Width> )
Creates a bar chart over the given interval (Start Value, End Value), the bars’ heights are calculated using the given expression in which the variable k varies from number c to number d using step width s.

• GeoGebra
• Help
• Partners