A Streamlit component for Nivo Sankey diagrams.
Project description
# streamlit-nivo-sankey
[](https://github.com/Navxihziq/streamlit-nivo-sankey/actions/workflows/python-publish.yml)
This is a Streamlit component that lets you create Nivo Sankey diagrams. Please check out Nivo's amazing page on [Sankey](https://nivo.rocks/sankey/) for more information.
This project is still in early development. More granular control, testing, and documentation, and development guide will come soon. Stay tuned!
## Installation instructions
```sh
pip install streamlit-nivo-sankey
```
## Basic Usage Example
```python
import streamlit as st
from streamlit_nivo_sankey import st_nivo_sankey
data = {
"nodes": [
{"id": "a", "nodeColor": "hsl(160, 70%, 50%)"},
{"id": "b", "nodeColor": "hsl(160, 70%, 50%)"},
{"id": "c", "nodeColor": "hsl(160, 70%, 50%)"},
],
"links": [
{"source": "a", "target": "b", "value": 1},
{"source": "a", "target": "c", "value": 5},
]
}
value = st_nivo_sankey(data) # returns clicked node/link and value
```

Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
streamlit_nivo_sankey-1.0.0.tar.gz
(708.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_nivo_sankey-1.0.0.tar.gz.
File metadata
- Download URL: streamlit_nivo_sankey-1.0.0.tar.gz
- Upload date:
- Size: 708.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba2bb81e641241c0b5e3a28809ba28370022a0ecf0f907dc1ae082b1a5d58c7c
|
|
| MD5 |
4e91e3720b684086ac90b405f98160c8
|
|
| BLAKE2b-256 |
a1d185246d10a57f0d5b155bbf1e92e033d80d938310f5acd94ede3631448d48
|
File details
Details for the file streamlit_nivo_sankey-1.0.0-py3-none-any.whl.
File metadata
- Download URL: streamlit_nivo_sankey-1.0.0-py3-none-any.whl
- Upload date:
- Size: 714.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b31813b7c561336c9f1e8685fb8ba85129ec69de0240f0d14d1e80393631fccd
|
|
| MD5 |
fded3e8c51703f83ce2a2f90231368c6
|
|
| BLAKE2b-256 |
2f4528ed3f43142b3b19628c99d3fb24a0a0cdb52ffcecae8cb3a5c8b05cfa09
|