📊 datavizlib
Tools and practical guidance for creating clear, effective data visualizations.
The knowledge explains the reasoning behind visualization design choices; the library makes those choices easier to apply. Explore principles, techniques, checklists, and visualization guidance, then put them into practice with opinionated, Matplotlib-based defaults for layout, typography, and color.
Build line and bar charts with less repetitive formatting code than using Matplotlib directly, while keeping the underlying figure and axes accessible for customization. Use an exploratory look while analyzing data, then switch to a presentation look to communicate your findings.
Installation
Requires Python 3.12 or newer.
Install from PyPI:
pip install datavizlib
Or install locally for development from a cloned repository:
uv sync
uv sync installs the package in editable mode along with the dev tools
(pytest, pre-commit, Jupyter). With pip 25.1 or newer, use
pip install -e . --group dev instead.
Quick Start
Create a horizontal bar chart and highlight the leading region in sales:
import pandas as pd
from datavizlib import BarChart
df_sales = pd.DataFrame({
"region": ["North", "South", "East", "West"],
"actual": [1250, 980, 1420, 1680],
})
chrome = dict(
title="West leads regional sales",
subtitle="Regional sales in USD thousands, 2024",
value_label="Sales (USD thousands)",
footnote="Source: illustrative data.",
)
chart = BarChart(**chrome, orientation="horizontal", look="explain")
(
chart
.add_data(df_sales, category="region", value="actual", color="#D3D3D3")
.highlight(categories=["West"], color="#00005F")
.show()
)
The default look="explain" requires a title, subtitle, and footnote; use
look="explore" when those aren't needed.
For more examples, explore the demo notebooks:
- Bar charts: grouped and stacked bars, orientation, category ordering, and highlighting.
- Line charts: comparisons, end labels, and point markers.
Contributing
Contributions to both the library and visualization guidance are welcome. Have a question, suggestion, or idea for a contribution? Open an issue to get in touch.
License
datavizlib is released under the MIT License. See LICENSE for details.
Metadata
Release files for datavizlib 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| datavizlib-1.0.0.tar.gz | 27.5 kB | Without provenance | Details for datavizlib-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| datavizlib-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for datavizlib-1.0.0-py3-none-any.whl |
Total release size: 48.8 kB
Release files / datavizlib-1.0.0.tar.gz
| Download URL | datavizlib-1.0.0.tar.gz |
|---|---|
| Size | 27.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eda18620bddc7d003ea647a7f92c9a14ff9e57a9c150f7ab19c5cbcbb192819f
|
|
BLAKE2b-256 checksum How to use checksums |
b4815d01c5f55d3cbaaf5ec36f98d0f0319dba9803d0f73230261f39485b3236
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / datavizlib-1.0.0-py3-none-any.whl
| Download URL | datavizlib-1.0.0-py3-none-any.whl |
|---|---|
| Size | 21.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f27645f98ddec6da64a9285dd70c81080f9b70b45953063043bfe679065b690
|
|
BLAKE2b-256 checksum How to use checksums |
2e2d1e612f8c5d83a07a85004bfbdee87f07388c71e47e456e7424754f818554
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for datavizlib 1.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.