What is a barchart?

Barcharts are very flexible visualisations that allow viewers to quickly compare the relative magnitude/ranking of multiple categories of data. By using grouped or stacked barcharts it is also possible to compare subcategories within each category.

Required Data:

  • Categories: For instance, class of animal e.g. mammal or reptile
  • Values: For instance, number of animals of each class

Additional Data/Options:

  • Subcategories: For instance, species of animal within a class e.g. snake and iguana
  • Group/Stacking Type: Should sub-categories be grouped together or stacked?

Minimal examples using R and the highcharter library: