A small SVG chart library

The problem

Write plain-Python functions that turn data into SVG bar, line and scatter charts with nice ticks, axis labels, direct labels and accessible titles.

Requirements

Technologies

Step by step

  1. Write and test the scale and tick functions with small examples.
  2. Build the bar chart, then reuse the scales for the line and scatter charts.
  3. Add axes, labels, gaps for missing values and label collision handling.
  4. Open the SVG output in a browser and check it against hand-drawn sketches.

Expected result

A reusable module that produces clean, honest SVG charts from lists of numbers.

How it is evaluated

Ways to improve it