Skip to main content

dataviz for Python

Fast charts for Python, drawn by the dataviz Rust renderer: 5–22× faster than matplotlib for charts saved to PNG, with 120+ chart types — statistics, machine learning, finance, genomics, maps, 3D surfaces and molecules.

pip install dataviz-rs

The package is dataviz-rs on PyPI and is imported as dataviz.

import numpy as np
import dataviz as dv

x = np.linspace(0, 10, 1_000_000)
fig = dv.Figure(900, 500, title="A million points")
ax = fig.axes()
ax.line(x, np.sin(x) + 0.1 * np.random.randn(x.size), label="signal")
ax.set(x_label="t [s]", y_label="value", legend="upper_right")
fig.save("signal.png")     # .png .svg .pdf .jpg .webp, .html (interactive)
fig                        # Jupyter shows it inline

NumPy arrays are read in place; lists, pandas and Polars series work too.

Speed

Same Python process, 800×600 PNG, median of 6 runs on one core (benchmarks/bench_vs_matplotlib.py; Intel Core Ultra 7 255HX):

Chart dataviz matplotlib faster
line, 1 000 points 1.3 ms 28.9 ms 21.7×
line, 100 000 points 2.1 ms 45.5 ms 21.5×
line, 1 000 000 points 18.8 ms 88.2 ms 4.7×
scatter, 10 000 points 1.9 ms 34.3 ms 17.7×
scatter, 1 000 000 points 49.2 ms 539.9 ms 11.0×
histogram, 1 000 000 values 2.4 ms 40.1 ms 16.9×
3D surface, 60 × 60 8.7 ms 60.1 ms 6.9×

Charts

Method Chart
line, scatter, area, fill_between lines, points, bands
bar, barh, hist bars (grouped by calling again), histograms
boxplot, violin, swarm, raincloud, ridgeline, kde distributions of {name: values}
heatmap, pie, candlestick matrices, parts of a whole, prices
surface, scatter3d, line3d, molecule 3D (turn with camera, rotate)
hline, vline, text, set references, labels (TeX math), limits, log axes, legend
chart(type, **fields) any of 40 types: sankey, chord, streamgraph, waffle, bullet, slope, pareto, SPC, ROC, calibration, confusion matrix, UpSet, volcano, phylogenetic tree, choropleth, DNA helix, … (dv.chart_types())
fig = dv.Figure(1200, 450).grid(1, 3)
fig.subplot(0, 0).boxplot({"control": a, "treated": b}).set(title="Response")
fig.subplot(0, 1).chart("roc", labels=y_true, scores=y_score, name="model")
fig.subplot(0, 2).molecule("1ubq.pdb", style="cartoon").rotate("y", 30)
fig.save("report.png")

Interactive in Jupyter

fig.interactive() shows the interactive page in the notebook: hover readouts, zoom (wheel) and pan (drag), turning 3D plots, and linked brushing — rows selected with Shift+drag in one plot are highlighted in all of them. With anywidget installed (pip install "dataviz-rs[widget]") it is a widget whose brushed trait follows the selection, also kept by the figure:

fig = dv.Figure(1100, 420).grid(1, 2).link_brushing()
fig.subplot(0, 0).scatter(df.price, df.volume)
fig.subplot(0, 1).scatter(df.price, df.returns)
w = fig.interactive()
w                                  # select points with Shift+drag
df.iloc[fig.brushed()]             # the selected rows
fig.save("selection.png")          # highlighted in saved images too

Without anywidget the same page is shown, without the link back to Python. fig alone still displays a PNG (light notebooks, nbviewer, GitHub).

A whole figure can also come from a JSON spec (dv.from_spec({...})), the format of the dataviz MCP server for AI assistants.

License

MIT

Metadata

Release files for dataviz-rs 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dataviz-rs 0.1.0
File Size Uploaded Provenance Actions
dataviz_rs-0.1.0.tar.gz 1.7 MB With provenance Details for dataviz_rs-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for dataviz-rs 0.1.0
File Actions
dataviz_rs-0.1.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for dataviz_rs-0.1.0-cp39-abi3-win_amd64.whl
dataviz_rs-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for dataviz_rs-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
dataviz_rs-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for dataviz_rs-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
dataviz_rs-0.1.0-cp39-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64 Details for dataviz_rs-0.1.0-cp39-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Total release size: 28.1 MB

Release files / dataviz_rs-0.1.0.tar.gz

Download URL dataviz_rs-0.1.0.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
cdacbb39a19a0ee6dcef341cb7294ab48b077907a60cf35c6ba51f42cd9620ca
BLAKE2b-256 checksum
How to use checksums
4b35da37b3dbc57e5e388e512c877b3b81477210e61657b69f1e302cdf2de8c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / dataviz_rs-0.1.0-cp39-abi3-win_amd64.whl

Download URL dataviz_rs-0.1.0-cp39-abi3-win_amd64.whl
Size 4.9 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d6bd5f4d3cdfb96aa358da16249eeaa465a9ab0e55ef6f6a0fc0ae008348d849
BLAKE2b-256 checksum
How to use checksums
4c0fc6e47813f79ebc0b7d0004d88da6c1492e60b4d514f65c34f12ffa5204fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / dataviz_rs-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL dataviz_rs-0.1.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 5.6 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
c7ef4485966d16ee8e763d359d52afd9adb19b45a47f9d1b7f62e0e6bff9f25b
BLAKE2b-256 checksum
How to use checksums
db28a720c46e208a01ece40669c1ea2de9d0186aadf78fa1a2d8d13574bd990a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / dataviz_rs-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL dataviz_rs-0.1.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 5.6 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
0ff82cca118d483ec944e4f1eb4f24422912d04be15eaec64e7347b429096eed
BLAKE2b-256 checksum
How to use checksums
5d7db9988f857972752d84f6cdeedc90b2b0a54ca6816045d449e64ab4e1a6fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Release files / dataviz_rs-0.1.0-cp39-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl

Download URL dataviz_rs-0.1.0-cp39-abi3-macosx_10_12_universal2.macosx_10_12_x86_64.macosx_11_0_arm64.whl
Size 10.3 MB
Tags CPython 3.9 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
963c16d96626675bdc1d15714801c81731d88d732cd0be412fb37cdd81e4a197
BLAKE2b-256 checksum
How to use checksums
7e6771716fed5b010964fae3d696f15b1b8ecd3e8aa7d1193d059608bda40a61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

Security for dataviz-rs 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for dataviz_rs-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page