Skip to main content

Python Pypi Docs LOC Downloads Downloads License Forks Open Issues Project Status Medium GitHub Repo stars GitHub repo size Colab Donate

D3Blocks is a Python package that builds on the graphics of d3 javascript (d3js). It allows you to create the most visually attractive and useful charts with only a few lines of Python code! The documentation pages contain detailed information about the working of the blocks with many examples. ⭐️ Star it if you like it ⭐️



Blogs


Available charts

nr Block Function More Information
1 D3graph d3.d3graph() D3graph
2 Radialgraph d3.radialgraph() Radialgraph
3 Elasticgraph d3.elasticgraph() D3Blocks
4 Sankey d3.sankey() D3Blocks
5 Movingbubbles d3.movingbubbles() D3Blocks
6 Scatter d3.scatter() D3Blocks
7 Heatmap d3.heatmap() D3Blocks
8 Chord diagram d3.chord() D3Blocks
9 Timeseries d3.timeseries() D3Blocks
10 Image slider d3.imageslider() D3Blocks
11 Violin plot d3.violin() D3Blocks
12 Particles d3.particles() D3Blocks
13 Treemap d3.treemap() D3Blocks
14 Tree d3.tree() D3Blocks
15 Maps d3.maps() D3Blocks
16 Circlepacking d3.circlepacking() D3Blocks
17 Flowgraph d3.flowgraph() Dagre

Installation (Pypi)

pip install d3blocks     # Normal installation
pip install -U d3blocks  # Force update

Installation (clone)

git clone https://github.com/d3blocks/d3blocks.git
cd d3blocks
pip install -U .

Import d3blocks package

from d3blocks import D3Blocks
# Initialize
d3 = D3Blocks()

D3Blocks💙Streamlit

Every chart from D3Block can easily be incorporated into a Streamlit Dashboard. Because every D3Blocks chart is just HTML and JavaScript, you can generate the HTML in memory and embed it A few practical rules of thumb: prefer st.iframe over the older components.html for full interactive charts, always pass an explicit pixel height, and set show_side_panel=False when Streamlit already owns the controls so the UI doesn't duplicate. color_background='streamlit' picks backgrounds that match a typical Streamlit light or dark page.


Ethical Ads

When HTMLs are generated, it automatically includes ethical ads as a small way to support development. I maintain this entire project thoughtfully and in my free time. Ads can be disabled via an input parameter, and you can also support the project with a coffee donation instead.

Star history

Star History Chart

References

Contributors

Maintainer

  • Erdogan Taskesen, github: erdogant
  • Contributions are welcome.
  • Yes! This library is entirely free but it runs on coffee! :) Feel free to support with a Coffee.

Buy me a coffee

Metadata

Release files for d3blocks 2.2.1

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

Source distribution (sdist)

Source distribution for d3blocks 2.2.1
File Size Uploaded Provenance
d3blocks-2.2.1.tar.gz 12.8 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for d3blocks 2.2.1
File Interpreter ABI Platform
d3blocks-2.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.6 MB

Release files / d3blocks-2.2.1.tar.gz

Download URL d3blocks-2.2.1.tar.gz
Size 12.8 MB
Tags Source
SHA-256 checksum
How to use checksums
82845e1a9c9622ebd20d5eda395fadf437613c25a89beda7235fb26cb412ee68
BLAKE2b-256 checksum
How to use checksums
aacb0aef7b8d7edbcbeb9047ee5f2e42a397584c90f774965eb805a67f972540
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / d3blocks-2.2.1-py3-none-any.whl

Download URL d3blocks-2.2.1-py3-none-any.whl
Size 12.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
09043e04305c6ee5c82ebec93dc877bdde2e84bd26c07b2f135a77089a62050f
BLAKE2b-256 checksum
How to use checksums
214c5f6b275656779ecc638568d46aa766ca270564637e43cd1ce1520122b6d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Security for d3blocks 2.2.1

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.

Release history Release notifications | RSS feed

This release

2.2.1 This release

2 release files No provenance

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