WeCodeAcademy

Practice: Telling a Story with a Chart

Pull the course together. Given a month of shop data, produce one clear chart with a finding in the title, labelled axes, a reference line, and a legend, then check its parts.

Work in this order, as a professional would: decide the question, choose the chart, draw it, label it, then add the one annotation that guides the reader.

Examplepython
Open in editor »
Quick check

Which of these makes the best chart title?

Your turn: write the code

Draw both series with labels 'Online' and 'Walk-in', add a legend, set the title to 'Orders per day', then print the title and the legend texts on one line separated by ' | ' (build it with ax.get_title() + ' | ' + ', '.join(t.get_text() for t in ax.get_legend().get_texts())).

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.