Menu

Bar Chart

In this tutorial, we’ll demonstrate how to draw a simple Bar Chart in Glimpse.

First, enter in the data: open up the Data Grid, which can be accessed by pressing the image1 button on the bottom to open up the section:

image2


Double-click on the row along from 1 to create a new data field (or alternatively, going Data > Add Data Field… from the top menu).

image3


Type in “Category” as this will be the first column where the category labels will be contained and after press Create.

image4


To create a second field column, double-click on the highlighted row anywhere to right of the Category column (or go Data > Add Data Field… on the top menu). Type in “Values” and press Create.

image4


To enter in the data into the cells, simply double-click on a cell that’s below a field and start typing. For the Category column write “A” and for the Values column write “28”.

image5


Now to create a new row, go Data > Add Data Row on the top menu, or an even quicker way is to have a row selected and press + C (to copy) and + V (to paste). Nine rows in total are needed.

image6


Edit the table in the Data Grid to include this dataset:

Category Values
A 28
B 55
C 43
D 91
E 81
F 53
G 19
H 87
I 52


The Data Grid can be closed by pressing the image8 button on the top-left. Two field tokens will now appear under Fields:

image9


Both field tokens need to have a Measure type assigned to them. To do this, first press the field token and then in the Inspector panel (under Data > Field) select an option from the Measure dropdown menu:

image10


For the field Category, set the Measure to Nominal, and for the field Values, set the Measure to Quantitative.

image11


Drag the field Category into the X encoding and the field Values into the Y encoding.

image12


Through the Inspector panel under Viz > Mark with the dropdown menu at the top, select the Bar option to convert the visualization into a Bar Chart:

image13


The finished visualization should look like the below:

image14


This concludes this tutorial on drawing a Bar Chart. If you want to further customize your chart, please read the documentation.