I have now called the render function at the end of the link function in a plunker at http://plnkr.co/edit/xgeWZrSrSIgNJ0eRjjOH?p=preview
What is happening here is that width and data change are calling the render function's again so chart is redrawn. So how can I limit this. On Tuesday, September 8, 2015 at 2:17:24 PM UTC+5:30, Rohit Nandan wrote: > > I have a very simple example of d3js and angularjs which is calling its > render function twice while I want it to call it only once and I don't > understand why its been executed twice. > > Here goes the plunker http://plnkr.co/edit/YoWsbJeWJgONb8rcMdpA?p=preview > -- You received this message because you are subscribed to the Google Groups "AngularJS" 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 http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
