Comments (2)
I added the possibility to specify colors and sizes per node!
I also added a selectionbox in the HTML to directly change between the state-colors and node-colors.
You can do this now by creating a dictionary where you need to specify the size and color for the sample_id.
See example:
# Load d3blocks
from d3blocks import D3Blocks
#
# Initialize
d3 = D3Blocks(chart='movingbubbles')
#
# Import example
df = d3.import_example('random_time', n=1000, c=100, date_start="1-1-2000 00:10:05", date_stop="1-1-2000 23:59:59")
#
# Specify the colors and node sizes for the specific sample_id
size = {1: 20, 3: 40}
color = {1: '#FF0000', 3: '#000FFF'}
#
# Show
d3.movingbubbles(df, color=color, size=size)
from d3blocks.
Closing this one
from d3blocks.
Related Issues (20)
- The blogs/tutorials are behind a paywall HOT 3
- treemap example fails on d3.show() HOT 6
- Tidy tree feature HOT 3
- Issue importing, minmax_distance: list[float] = [50, 100] in d3graph.py, line 879 HOT 4
- Working with very large graphs (d3graph) HOT 2
- error to import d3blocks in jupyter notebook HOT 6
- How to change node colors in sankey plots? HOT 5
- Sunburst HOT 1
- RecursionError: maximum recursion depth exceeded while calling a Python object HOT 4
- Sorting issue on Chord diagrams HOT 2
- Change node shape and node label position in D3graph ? HOT 2
- Saving graphics as high resolution image HOT 3
- How do I break a text label into multiple rows? HOT 1
- Inclusion of "ethical ads" HOT 3
- Sankey font size HOT 4
- Sankey: order of entries
- Tooltip in treemap HOT 2
- Tree Diagram 1-to-many visualization HOT 1
- "color for link " is not aviliable in chord. HOT 1
- I cannot import d3blocks HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from d3blocks.