# Altair

11 Hacker News commenters recommended Altair and 0 criticized it, November 2025 to November 2026. It was recommended in 6 of 13 months. It meets the Hacker Approved badge rule.

**Verdict:** A Python library for building charts from the grammar of graphics, valued for composing charts and interactive graphs. One critic finds it restrictive for some use cases.

## Why people recommend it

- Grammar of graphics approach (3 comments): "Seaborn, altair, plotnine all take ggplot's GoG and bring it to Python and I'm really grateful for that." ([source](https://news.ycombinator.com/item?id=46067873)) "get familiar with grammar of graphics libraries like Vega-Lite, Observable Plot, ggplot2, Altair" ([source](https://news.ycombinator.com/item?id=48837000)) "the grammar-of-graphics libraries — Altair, plotnine — may be the better tool for many people" ([source](https://news.ycombinator.com/item?id=48645925))
- Plugs into Polars and tables (2 comments): "Being able to plug directly into Altair charts and tables was a huge boon." ([source](https://news.ycombinator.com/item?id=47720700)) "Altair and Positron should be just as good for your Polars @ Python needs" ([source](https://news.ycombinator.com/item?id=49548358))
- Simple, composable chart building (2 comments): "flexibly compose charts rather than simply pick a template" ([source](https://news.ycombinator.com/item?id=48642039)) "really admire the simplicity" ([source](https://news.ycombinator.com/item?id=46124108))

## What people warn about

- Restrictive for some use cases (1 comments): "is rather restrictive for some of my use cases" ([source](https://news.ycombinator.com/item?id=49614807))

## Alternatives hackers recommend

- [ChartGPU](https://hackerapproved.com/p/chartgpu.md): 35 recommend
- [ggplot2](https://hackerapproved.com/p/ggplot2.md): 29 recommend
- [plotnine](https://hackerapproved.com/p/plotnine.md): 22 recommend
- [ggsql](https://hackerapproved.com/p/ggsql.md): 19 recommend
- [Matplotlib](https://hackerapproved.com/p/matplotlib.md): 17 recommend

## Cite as

Hacker Approved, "Altair", https://hackerapproved.com/p/altair/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
