why sometime dependencies not work

Posted in General by Peter Huang Sat Jan 23 2016 17:50:47 GMT+0000 (Coordinated Universal Time)·2·Viewed 1,422 times

I try implement d3 chart in angularjs but I don't know why sometimes dependencies not work fine. http://plnkr.co/edit/nycsT8NjW0AHRWCthW60?p=preview
Jan 24, 2016

Hello, you just need to make sure that the libs are loaded in order in your case because they depend on each other. For that you need to use the parameter "serie".
Here is a the working directive in your case:

    <div oc-lazy-load="{files: ['d3.min.js', 'nv.d3.min.js', 'angular-nvd3.min.js'], serie: true}">

marked this as solved
Jan 24, 2016

Wow!! thank you.

Markdown is allowed