In this tutorial, we’ll demonstrate how to draw a Line Graph in Glimpse to visualize the stock prices of five tech companies over time.
First, add in the data by going Data > Sample Data > stocks.csv from the top menu.
Then, under Viz > Mark in the Inspector panel, set the Mark type to Line.
Drag the date field into the X encoding and in the Inspector panel, set the Measure to Temporal. This will set the timescale X-axis.
After, drag the field price into the Y encoding to set the value scale Y-axis.
Then with the last field symbol, drag it into the Color encoding to configure the individual lines for each tech company. The completed visualization should look like the one below:
Point markers can be added to a Line Graph by activating Point Overlay located under Viz > Mark in the Inspector panel. The shape, size, color, and position of point markers can be customized under the Point Overlay options.
This concludes this tutorial on drawing a Line Graph. If you want to further customize your chart, please read the documentation.