hedron-charts
Visualization adapters and chart components for Hedron.
Beginner LineChart / BarChart / AreaChart / ScatterChart, Matplotlib static
SVG/PNG, Plotly interactive JSON, and Altair/Vega-Lite specifications.
Package maturity: Beta · 0.28-compatible release: 0.1.9
Interactive Plotly/Vega full browser runtimes remain experimental: Hedron
ships host shims that fail closed when window.Plotly / window.vegaEmbed are
missing. Applications may supply pinned local runtimes; first-party offline
runtime pins exist for Experimental interactive hosts and are not Supported
production Auto defaults.
Install
pip install "hedron[charts]>=0.28.1,<0.29"
# Add a backend when needed:
pip install "hedron-charts[matplotlib]>=0.1.9,<0.2"
Versions through 0.1.6 may target older Hedron cores; keep the >=0.1.9 floor for
the living 0.28 train. See
Compatibility.
Optional backends
| Extra | Backend |
|---|---|
matplotlib |
Matplotlib static SVG/PNG |
plotly |
Plotly figure JSON |
altair |
Altair / Vega-Lite (+ vl-convert) |
pydeck / folium |
Map layers |
graphviz / networkx |
Graph layouts |
bokeh / holoviews / pygal / datashader / great_tables |
Additional adapters |
all |
Union of the above |
Backend extras are optional and should be installed only for the adapter in use.
Quick start
from hedron_charts import LineChart
chart = LineChart(
[{"month": "Jan", "revenue": 10}, {"month": "Feb", "revenue": 14}],
x="month",
y="revenue",
title="Monthly revenue",
description="Revenue increased during the period.",
)
LineChart falls back to SVG without Matplotlib. For an explicit Matplotlib figure:
import matplotlib.pyplot as plt
from hedron_charts import MatplotlibChart
fig, ax = plt.subplots()
ax.plot([1, 2, 3], [1, 4, 9])
chart = MatplotlibChart(fig, alt="y = x squared", description="Quadratic growth")
Links
License
MIT. See the repository license.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hedron_charts-0.1.9.tar.gz.
File metadata
- Download URL: hedron_charts-0.1.9.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eff58cba0228bab3d6d42f9f9207d82b40a7f695b76b88326bde918235dc131d
|
|
| MD5 |
3c092b74970fb46a6ee9151a0334cd88
|
|
| BLAKE2b-256 |
66c70ae5484def3c158ac78966f781d4063761d978811baeeac79955a7a87934
|
File details
Details for the file hedron_charts-0.1.9-py3-none-any.whl.
File metadata
- Download URL: hedron_charts-0.1.9-py3-none-any.whl
- Upload date:
- Size: 2.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0446ae7afd53014ba30659d532672ccf2038bda80f913cc8670c4daa3304dc85
|
|
| MD5 |
223da6fde7d2139976c29640124b46e1
|
|
| BLAKE2b-256 |
6b7b34b7463f21bf90e2ddf156979e8c6ae0158001bfebe4c847e85641dec411
|