require(['d3', 'c3'], function(_d3, c3) {
...
});
To use C3.js plugin, you need to include the next scripts:
<script src="path/to/js/libs/d3.js"></script>
<script src="path/to/js/libs/c3.js"></script>
<script src="path/to/js/libs/c3-angular.js"></script>
Then inject the plugin into your angular application:
angular.module('yourApp', ['gridshore.c3js.chart']);
Alternatively, you can include C3.js plugin using ocLazyLoad plugin:
$ocLazyLoad.load([
{
serie: true,
name: 'gridshore.c3js.chart',
files: [
'path/to/js/libs/d3.js',
'path/to/js/libs/c3.js',
'path/to/js/libs/c3-angular.js',
],
},
]);