A simple way to add custom C3 charts to your angular apps. Charts based off C3.
Dependencies
Angular.js (1.2+)
C3js
D3js
Downloading
The best way to install angular-c3 is to use bower
bower install angular-c3 --save
Or, from this repo
you'll need the main files in dist/
Using
angular-c3 comes pre-packaged with c3 and d3. No need to download those libraries.
Adding a C3 chart is as simple as adding the c3-chart directive to your HTML. Add an id to tell the chart which element to bindto. Also add the config attribute to point to the data inside your controller.
To gain access to the chart object inject the c3Factory into the service you need it. Use the .get method to select which chart to select or use the .getAll method to gain access to all c3-charts.
The Tidelift Subscription provides access to a continuously curated stream of human-researched and maintainer-verified data on open source packages and their licenses, releases, vulnerabilities, and development practices.