WLJS LogoWLJS Notebook

BarChart

BarChart[{y1, y2, ...}] creates a bar chart with bar heights y1, y2, etc.

Examples

Create bar charts:

BarChart[{1, 3, 2, 5, 4}]

(* With labels and colors *)
BarChart[{5, 10, 15, 20},
  ChartLabels -> {"Q1", "Q2", "Q3", "Q4"},
  ChartStyle -> "Pastel"
]

(* Grouped bar chart *)
BarChart[{{1, 2, 3}, {4, 5, 6}}]

Please visit the official Wolfram Language Reference for more details.

On this page