# Line Charts: Change Over Time

A line chart shows how a value changed over time, so dates go along the x-axis, a marker shows each measurement, fig.autofmt_xdate() keeps the dates readable, and two lines on one Axes, each with a label= and ax.legend(), compare two groups over the same months.

![Cheat sheet: Line Charts: Change Over Time](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/580b93dabbdf4c35824b466d54656722.webp)

- Category: Data Analysis
- Level: Apprentice
- Tags: &lt;legend>, Axes, Line Chart, python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/data-line-charts-cheat-sheet
