I'm creating a graph using d3 in Edge Animate. I can't seem to access the classes I apply to my svg elements.
I have a symbol on my Stage called graph, with the class d3graph
In my d3 code, I create a svg that I put in my graph symbol and add text to it:
var svg = d3.select(".d3graph").append("svg").attr('width':100).attr('height':100);
but that doesn't work. When inspecting the webpage in my browser, I can see that the names of the classes I've applied to my Edge symbols changes, but not the names of the svg element classes:
the class applied to text remains mytext
while the class applied to graph is now Stage_graph_id d3graph
How can I access elements with the class mytext in Edge?
Try referring to your custom classes with a # in front of it.
There's a section that says "work with elements directly."
Hope that helps,