Skip to main content

A Streamlit component for Nivo Sankey diagrams.

Project description

# streamlit-nivo-sankey
[![Build and Publish](https://github.com/Navxihziq/streamlit-nivo-sankey/actions/workflows/python-publish.yml/badge.svg)](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
```

![image](./assets/demo-1.png)

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_nivo_sankey-1.0.0-py3-none-any.whl (714.6 kB view details)

Uploaded Python 3

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

Hashes for streamlit_nivo_sankey-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ba2bb81e641241c0b5e3a28809ba28370022a0ecf0f907dc1ae082b1a5d58c7c
MD5 4e91e3720b684086ac90b405f98160c8
BLAKE2b-256 a1d185246d10a57f0d5b155bbf1e92e033d80d938310f5acd94ede3631448d48

See more details on using hashes here.

File details

Details for the file streamlit_nivo_sankey-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_nivo_sankey-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b31813b7c561336c9f1e8685fb8ba85129ec69de0240f0d14d1e80393631fccd
MD5 fded3e8c51703f83ce2a2f90231368c6
BLAKE2b-256 2f4528ed3f43142b3b19628c99d3fb24a0a0cdb52ffcecae8cb3a5c8b05cfa09

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page