Add Chart.js to your angular applications
tc-angular-chartjs provides you with directives for all chartjs chart types.
- Line Charts
- Bar Charts
- Radar Charts
- Polar Area Charts
- Pie Charts
- Doughnut Charts
You can see all the Chart.js Documentation on their website.
Grab the latest version of
tc-angular-chartjs as you would with normal scripts.
tc.chartjs in your application modules where you require
There are 6 different directives.
Just place one of these directives on a
canvas element to create a Chart.js chart.
You will also want to give the chart some
options. These can be provided
by assigning $scope variables to
chart-data attributes on the same canvas element.
When using the
tc-chartjs directive you will need to add an additional attribute to
say which type of chart should be created.
Just attach a
chart-type="" attribute to the canvas element.
Passing another value to chart-type than the above will try to create a chart of that type, which is useful if you have extended Chart.js with custom chart types, e.g. through plugins.
- Open a Pull Request (PR)
- Make sure your PR is on a new branch you created from the latest version of master branch
- Please do not open a PR from your master branch
- Open a PR even if your code is incomplete to start a discussion and to collect feedback
- Please make sure all unit tests pass, and add new tests for any added features.
tc-angular-chartjs is dual licensed with the Apache-2.0 or MIT license.
See LICENSE-APACHE-2.0 and LICENSE-MIT for more details.