Pillow-based charting.
Required: pillow, toolz, pillar, utils.
Optional: pandas (for dataframe-based charts), dates (for flexible time charts).
Three chart types are currently supported: bar charts, time charts and grid charts. For usage information, see the docstrings and sample scripts.
bar_chart: generate a bar chart; supports grouped, stacked and percentage stacked charts. Sample script: ukelections.py.
time_chart: generate a time chart; supports numeric and date timelines. Sample script: g7.py.
grid_chart: generate an image grid chart; essentially a convenient wrapper for Image.from_array
. Sample scripts: periodic.py and 40under40.py.
map_chart: generate a map chart; essentially a convenient wrapper for Image.replace_color/select_color. Input is a map template with each region having a unique color. Regions can be named (see generate_name_csv) and label bounding boxes can be defined (see generate_labelbox_csv).