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 contains detailed information about the working of the blocks with many examples. ⭐️ Star it if you like it ⭐️
D3Graph Network Example
Resources and Links
- Example Notebooks: Examples
- Medium Blogs Medium
- Gumroad Blogs with podcast: GumRoad)
- Documentation: Website
- Bug Reports and Feature Requests: GitHub Issues
Key Pipelines
| Feature | Description |
|---|---|
| Interactive Network Visualization | Create interactive network graphs with D3graph and Elasticgraph for relationship analysis. |
| Data Flow Visualization | Visualize data flows and relationships using Sankey diagrams and Chord diagrams. |
| Temporal Data Analysis | Analyze time-series data with interactive charts and moving bubbles for dynamic visualization. |
| Statistical Visualization | Create statistical plots including scatter plots, violin plots, and heatmaps. |
| Hierarchical Data Visualization | Visualize hierarchical structures with tree diagrams, treemaps, and circle packing. |
Supported charts
| nr | Block | Function | Blog |
|---|---|---|---|
| 1 | D3graph | d3.d3graph() |
D3graph |
| 2 | Radialgraph | d3.radialgraph() |
Radialgraph |
| 3 | Elasticgraph | d3.elasticgraph() |
Elasticgraph |
| 4 | Sankey | d3.sankey() |
Sankey |
| 5 | Movingbubbles | d3.movingbubbles() |
Movingbubbles |
| 6 | Scatter | d3.scatter() |
Scatter |
| 7 | Heatmap | d3.heatmap() |
Heatmap |
| 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 |
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()
Ethical Ads
When HTMLs are generated, it automatically include ethical ads as a small way to support development. This entire project with maintenance is done thoughtfully and only in my free time. Ads can be disabled via an input parameter, and you can also support the project with a coffee donation instead.
References
Contributors
Setting up and maintaining D3blocks has been possible thanks to users and contributors. Thanks to:
Maintainer
Release files for d3blocks 2.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 | |
|---|---|---|---|
| d3blocks-2.0.0.tar.gz | 12.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| d3blocks-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:24.3 MB
Release files / d3blocks-2.0.0.tar.gz
| Download URL | d3blocks-2.0.0.tar.gz |
|---|---|
| Size | 12.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7cd01ae4ac5314c694fd1808cc152300fe83bfe10f73b0e9b9a17b37b21e9a5
|
|
BLAKE2b-256 checksum How to use checksums |
e091ef14e5c38d5af3ead8353c236f77aad76ad6fc3b5e0ca22e198d4a69853d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / d3blocks-2.0.0-py3-none-any.whl
| Download URL | d3blocks-2.0.0-py3-none-any.whl |
|---|---|
| Size | 12.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63161d74ff062140cd7a40d7fff5c76cc17fa9d7422dc72cbee7f6784b20f6a9
|
|
BLAKE2b-256 checksum How to use checksums |
0674245e61ced94b85d5a81303c607654136882d79dba76329c3d98a881de92a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|