Metadata-Version: 2.4
Name: hedron-charts
Version: 0.1.6
Summary: Visualization adapters and chart components for Hedron
Project-URL: Homepage, https://github.com/eddiethedean/hedron
Project-URL: Repository, https://github.com/eddiethedean/hedron
Project-URL: Issues, https://github.com/eddiethedean/hedron/issues
Project-URL: Changelog, https://github.com/eddiethedean/hedron/blob/main/packages/hedron-charts/CHANGELOG.md
Project-URL: Documentation, https://hedron.readthedocs.io/en/latest/
Author-email: Odos Matthews <odosmatthews@gmail.com>
Maintainer-email: Odos Matthews <odosmatthews@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: altair,charts,hedron,matplotlib,plotly,visualization
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: <3.15,>=3.11
Requires-Dist: hedron-core<0.26,>=0.25.0
Provides-Extra: all
Requires-Dist: altair<7,>=6.0; extra == 'all'
Requires-Dist: bokeh>=3.0; extra == 'all'
Requires-Dist: datashader>=0.16; extra == 'all'
Requires-Dist: folium>=0.15; extra == 'all'
Requires-Dist: graphviz>=0.20; extra == 'all'
Requires-Dist: great-tables>=0.10; extra == 'all'
Requires-Dist: holoviews>=1.18; extra == 'all'
Requires-Dist: matplotlib<4,>=3.8; extra == 'all'
Requires-Dist: networkx>=3.0; extra == 'all'
Requires-Dist: plotly<7,>=5.18; extra == 'all'
Requires-Dist: pydeck>=0.8; extra == 'all'
Requires-Dist: pygal>=3.0; extra == 'all'
Requires-Dist: vl-convert-python>=1.0; extra == 'all'
Provides-Extra: altair
Requires-Dist: altair<7,>=6.0; extra == 'altair'
Requires-Dist: vl-convert-python>=1.0; extra == 'altair'
Provides-Extra: bokeh
Requires-Dist: bokeh>=3.0; extra == 'bokeh'
Provides-Extra: datashader
Requires-Dist: datashader>=0.16; extra == 'datashader'
Provides-Extra: folium
Requires-Dist: folium>=0.15; extra == 'folium'
Provides-Extra: graphviz
Requires-Dist: graphviz>=0.20; extra == 'graphviz'
Provides-Extra: great-tables
Requires-Dist: great-tables>=0.10; extra == 'great-tables'
Provides-Extra: holoviews
Requires-Dist: holoviews>=1.18; extra == 'holoviews'
Provides-Extra: matplotlib
Requires-Dist: matplotlib<4,>=3.8; extra == 'matplotlib'
Provides-Extra: networkx
Requires-Dist: networkx>=3.0; extra == 'networkx'
Provides-Extra: plotly
Requires-Dist: plotly<7,>=5.18; extra == 'plotly'
Provides-Extra: pydeck
Requires-Dist: pydeck>=0.8; extra == 'pydeck'
Provides-Extra: pygal
Requires-Dist: pygal>=3.0; extra == 'pygal'
Description-Content-Type: text/markdown

# hedron-charts

[![PyPI](https://img.shields.io/pypi/v/hedron-charts.svg)](https://pypi.org/project/hedron-charts/)
[![Python](https://img.shields.io/pypi/pyversions/hedron-charts.svg)](https://pypi.org/project/hedron-charts/)
[![CI](https://img.shields.io/github/actions/workflow/status/eddiethedean/hedron/ci.yml?branch=main&label=CI)](https://github.com/eddiethedean/hedron/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/eddiethedean/hedron/blob/main/LICENSE)

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:** Alpha · **0.25-compatible release:** `0.1.6`

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 fingerprinting is not Supported yet.

## Install

```bash
pip install "hedron[charts]>=0.25.1,<0.26"
# Add a backend when needed:
pip install "hedron-charts[matplotlib]>=0.1.6,<0.2"
```

Versions through `0.1.5` target older Hedron cores; keep the `>=0.1.6` floor. See
[Compatibility](https://hedron.readthedocs.io/en/latest/COMPATIBILITY/#charts-and-sample-kit-compatibility-floor).

### 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

```python
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:

```python
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

- [Package docs](https://hedron.readthedocs.io/en/latest/packages/hedron-charts/)
- [Charts and HTMX](https://hedron.readthedocs.io/en/latest/guides/charts-and-htmx/)
- [What’s ready](https://hedron.readthedocs.io/en/latest/guides/whats-ready/)
- [Changelog](https://github.com/eddiethedean/hedron/blob/main/packages/hedron-charts/CHANGELOG.md)
- [Source](https://github.com/eddiethedean/hedron/tree/main/packages/hedron-charts)
- [Issues](https://github.com/eddiethedean/hedron/issues)
- [`hedron-core`](https://pypi.org/project/hedron-core/) ·
  [`hedron`](https://pypi.org/project/hedron/)

## License

MIT. See [LICENSE](LICENSE).
