All Projects → andfanilo → streamlit-d3-demo

andfanilo / streamlit-d3-demo

Licence: MIT license
D3 in React in Streamlit tech demo

Programming Languages

typescript
32286 projects
python
139335 projects - #7 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to streamlit-d3-demo

p101s2.github.io
Interactive Ranking Chart for Mnet's Produce 101 Season 2
Stars: ✭ 23 (-54%)
Mutual labels:  d3
renewcast
Renewcast: Forecasting Renewable Electricity Generation in EU Countries.
Stars: ✭ 28 (-44%)
Mutual labels:  streamlit
Vuesalize
Component library dedicated to simplifying interactive visualization building in Vue.js.
Stars: ✭ 24 (-52%)
Mutual labels:  d3
dashblocks-template
Dashblocks Vue Material Admin Template
Stars: ✭ 143 (+186%)
Mutual labels:  d3
data-storyteller
Automated tool for data story telling
Stars: ✭ 85 (+70%)
Mutual labels:  streamlit
course-18-19
🎓 tech track · 2018-2019 · curriculum and syllabus 📊
Stars: ✭ 23 (-54%)
Mutual labels:  d3
qvisualisation
Visualisation toolbox based on Qt WebEngine and D3.js
Stars: ✭ 25 (-50%)
Mutual labels:  d3
datalith
Simple, batteries included, components to build beautiful data visualizations
Stars: ✭ 29 (-42%)
Mutual labels:  d3
d3-metro
d3 based metro engine
Stars: ✭ 16 (-68%)
Mutual labels:  d3
d3-in-angular
How to build reactive charts in Angular 8 using D3
Stars: ✭ 47 (-6%)
Mutual labels:  d3
d3-geomap
A library for creating geographical maps based on D3.js
Stars: ✭ 124 (+148%)
Mutual labels:  d3
multi-chart
lit-element building blocks for charts and visualization (based on d3.js v5)
Stars: ✭ 24 (-52%)
Mutual labels:  d3
gateCracker
No description or website provided.
Stars: ✭ 20 (-60%)
Mutual labels:  streamlit
d3-stencil
Charts built with D3 and Stencil. Framework-agnostic, simple.
Stars: ✭ 65 (+30%)
Mutual labels:  d3
d3-graph-controller
A TypeScript library for visualizing and simulating directed, interactive graphs.
Stars: ✭ 106 (+112%)
Mutual labels:  d3
R-and-D3
Code examples referenced on CodeMine Blog
Stars: ✭ 16 (-68%)
Mutual labels:  d3
datart
Datart is a next generation Data Visualization Open Platform
Stars: ✭ 1,042 (+1984%)
Mutual labels:  d3
D3Fire
Power your D3 visualizations with data from Firebase
Stars: ✭ 31 (-38%)
Mutual labels:  d3
ci-ifd-lead
Code Institute | Interactive Frontend Development | 6-week _lead project
Stars: ✭ 16 (-68%)
Mutual labels:  d3
hydralit
A library to create multi-page Streamlit applications with ease.
Stars: ✭ 93 (+86%)
Mutual labels:  streamlit

D3 Demo in Streamlit

An example project for a custom D3 chart with React hooks into Streamlit.

  • Dynamic line chart
  • Overlapping scatter plot, with customizable size/color
  • Interactive tooltip
  • TODO : Select a circle and return it's value
  • TODO : Zoom/Pan ?

Feel free to fork this project as a starter for your own D3 components.

Install

pip install streamlit-d3-demo

Example Usage

import random
from streamlit_d3_demo import d3_line

def generate_random_data(x_r, y_r):
    return list(zip(range(x_r), [random.randint(0, y_r) for _ in range(x_r)]))

d3_line(generate_random_data(20, 500), circle_radius=15, circle_color="#6495ed")

Development

Install

  • JS side
cd frontend
npm install
  • Python side
conda create -n streamlit-d3 python=3.7
conda activate streamlit-d3
pip install -e .

Run

Both JS and Python should run at the same time.

  • JS side
cd frontend
npm run start
  • Python side
streamlit run app.py

References

D3 :

React :

D3 + React hooks :

D3 + React class component :

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].