Comments (4)
cc @SSunkara
from bqplot.
@albop This looks great!!!
- Moving the nodes will be easy now. We can have drag on the
Scatter
and keep theLines
in sync with it. I can write up a quick example for that. The easiest way to do this would be to have the drag behavior onLines
with markers so that we need not do they sync stuff manually. This is part of the bigger to do, which is to addScatter
events toLines
with markers. Once we have that it should be very straight forward. - Arrows, I am not sure if this will be very quick. We can add another
Scatter
with the Markers as arrows. This angle can be set using theskew
orrotation
attribute of theScatter
. Again, I will come up with a small example for this. - Labeling the nodes will be very easy. You can add
names
attribute to theScatter
.
P.S.: Sorry for the late response. :(
from bqplot.
from bqplot.
Moving the nodes will be easy now. We can have drag on the
Scatter
and keep theLines
in sync with it. I can write up a quick example for that.
The easiest way to do this would be to have the drag behavior onLines
with markers so that we need not do they sync stuff manually. This is part
of the bigger to do, which is to addScatter
events toLines
with markers.
Once we have that it should be very straight forward.
Sorry to come back to this old issue, but you say that allowing to drag nodes would be easy to implement. However, it seems that the bqplot.marks.Graph
does not allow it when nodes are placed using x
and y
attributes. I'm wondering if it can be made in this case.
Arrows, I am not sure if this will be very quick. We can add another
Scatter
with the Markers as arrows. This angle can be set using theskew
orrotation
attribute of theScatter
. Again, I will come up with a small example for this.
On this point also, I'd be interesting to know if something has been done also. I know that directed graphs can have arrows, but they are placed in the middle. I'd be interested in adding arrow at the tips of edges (and varied sorts of arrow if possible). I thinks I could do the maths to compute the arrow tips positions and angles, but I'd do it from Python, perhaps we can let D3 do it instead.
Thanks in advance for your answer!
Franck
from bqplot.
Related Issues (20)
- "Error serializing widget state attribute: interaction" when clicking the reset button HOT 1
- `scatter_plot.enable_move = True` fails HOT 1
- Bqplot formatting saved image (png)
- Issues with updating Axis.tick_labels HOT 5
- 0.12.36: sphinx warnings `reference target not found`
- Chrome DevTools reports an issue
- Pie selection does not work at creation
- Compatibility with pandas v2 HOT 2
- `size` ignored in Scatter? HOT 1
- 0.12.36: pep517 build fails HOT 2
- When I use bqplot to draw the browser memory grow up
- RFE: please provide update for `jupyterlab` 4.x HOT 2
- 0.13.0 Release plan HOT 2
- emptying Lines data breaks figure
- Brush selectors cause VSCode notebooks to hang HOT 1
- initializing Bins with bins=1 breaks figure
- issue running galata ui tests HOT 1
- DeprecationWarning: Sentinel is not a public part of the traitlets API (from traittypes)
- Javascript error when creating histogram
- Considerations on handling Boxplot when computed height is non-positive
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 bqplot.