Aslo I do:
@ViewChild('graph') element: ElementRef;
then, I can do as:
let svg = d3.select(this.element.nativeElement);
On Wednesday, April 12, 2017 at 8:30:34 AM UTC+10, Robert Werner wrote:
>
> I'm hoping to get an April 2017 update on what might be considered the
> best practices to use Angular 2 with D3.
>
> For simplicity's sake, imagine that you are responsible for building an
> Angular 2 app that has a series of charts in it: bar, line, pie, scatter
> plot, etc. Imagine further that you want these charts to be very dynamic
> with the user interacting with them.
>
> If this were your assignment, how much would you use D3 vs. Angular?
>
> I realize this is a very open-ended question but I'm trying to get some
> insight from those who have already worked with these two technologies.
>
> Thank you,
>
> Robert
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.