Bar Charts

Bar charts can be used to visualize tables containing categorical data by using rectangular bars with a width and a height. A bar chart compares the sizes of the different categories in the table, where the size is any measured quantity. The example below shows a table giving the number of students according to the faculty. The faculty is the category, and the number of students is the measured size of this category.

Faculty
Number of Students
PhilFak
9278
WISO
9697
MedFak
4477
NatFak
5943
TechFak
10262

In the example below we implement a bar chart offering some some interaction, that can visualize different data sets.



The JavaScript Code