matplotlib / matplotlib/mpl-altair

Add bar charts

Open
#29 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
18
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Bar charts aren't supported yet in mpl-altair.

Implementation Notes

  • Marks should be handled in _marks.py
  • Plotting different data types in a bar plot gives different types of bar charts in Altair (vertical, horizontal, skinny bars, fat bars).
  • Plotting a categorical y against a categorical x gives a heatmap-like chart in Altair.
  • Adding a color encoding does different things depending on the data type. Sometimes the chart gets stacked, sometimes it doesn't.

For more information

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in _marks.py and read Altair's marks user guide linked in the issue. Trace how mark types and encodings are handled, then define support for bar charts across the listed data-type combinations and color-encoding behaviors. Done means mpl-altair can produce the corresponding vertical, horizontal, skinny, fat, stacked, and heatmap-like bar charts.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.