Comments (6)
Did you figure this out? I believe this is implemented, but I cannot readily find an example online.
from d34raphael.
I think I misinterpreted the doc. I assumed that after doing an append, the selection would become the udpate selection. It doesn't appear to do this if you chain the calls, but it does do it if you dont. e.g.
circle.enter().append("circle")
circle
.attr("cy", 90)
.attr("cx", String)
.attr("r", Math.sqrt);
from d34raphael.
Yeah, in that case, after calling data() you get an update selection.
Elements added on enter are available in the update selection (if you have a previous reference to it). You can alternatively call update on the enter selection to get back:
circle
.enter()
.append("circle")
.update()
.attr(...);
from d34raphael.
Hmm.. that doesn't seem to work.
from d34raphael.
I knew if I replied off the cuff, I was going to get proven wrong. :) I cannot test from this computer, but the area of the code: https://github.com/webmonarch/d3/blob/raphael-compat/src/raphael/selection.js#L112
from d34raphael.
haha, sorry. I didn't use that example.. but tried that in my existing code. It's not a huge deal for now. I'll investigate later and reopen the issue with a working example from D3 and a broken one from d34raphael if I can indeed find one.
from d34raphael.
Related Issues (20)
- Document d34raphael APIs HOT 1
- Reuse jQuery Sizzle if Present HOT 2
- Add support group element. HOT 3
- mouse-events possible? HOT 3
- Raphael.js as an overlay on d3.js HOT 1
- IE 8 in Wine HOT 2
- Add support for tickFormat to D3RaphaelAxis HOT 1
- Support for .on("mouseover", function() { d3.select(this).attr("stroke", "#fff");})
- how to use selectAll(".year_button") .data([minYearFilter, maxYearFilter+1]) using r3d3
- Unable to give Id to an element. i am creating a x axis and appending a rectangle on it but it's not giving id to it. i also need to append button to create slider but without id its not possible. HOT 1
- Add class support to d34r `selection.(select|selectAll)` HOT 13
- Perfomance Issue using selectAll in ie8 and ie9
- d34raphael needs a new caretaker HOT 1
- Complete `d3.raphael.axis` Implementation HOT 1
- Package d34r as a JS library for use WITH d3.v2.js HOT 1
- Style JSDoc pages
- Add d3 <-> raphael Event Support HOT 2
- Add d3 <-> raphael Transition Support HOT 2
- Create as Standalone Plugin HOT 1
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 d34raphael.