Menu

Barcode Plot

In this tutorial, we’ll demonstrate how to draw a Barcode Plot in Glimpse to visualize the relationship between horsepower and number of cylinders across various cars.

First, add in the data by going Data > Sample Data > cars.json from the top menu.

Then, under Viz > Mark in the Inspector panel, set the Mark type to Tick.

image1


Drag the field Horsepower into the X encoding.

image2


After, drag the field Cylinders into the Y encoding and in the Inspector panel, change the Measure type to Nominal.

image3


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