New to ember.
How do i select the svg element which my component renders. the variable svg is actually selecting the div that the component is returned in.
export default Ember.Component.extend({
didRender() {
let svg = d3.select('#'+this.get('elementId'));
console.log("chart init", d3.selectAll('.chart-d3'), svg)
}
});
Also any tips on ember component lifecycle and d3 would be useful!
Aucun commentaire:
Enregistrer un commentaire