Notus Angular Chartjs
The Chart.js charts refer to a graphical representation of data. Keep reading these simple yet flexible Javascript charting for designers & developers.
Usage
In order to use this charts, you will need to add inside your angular.json
file the following:
So, inside your angular.json
file, inside the build options
, you will need to add this line "allowedCommonJsDependencies": [ "chart.js" ],
.
After that, where you are going to use the charts, you will need to import them like so:
Also, do not forget to install it:
After that, simply copy one of the code examples demonstrated below and include it in your page.
Examples
Line Chart Example
Overview
Sales value
This component is already defined inside src/app/components/cards/card-line-chart
. Check it out.
Bar Chart Example
Performance
Total orders
This component is already defined inside src/app/components/cards/card-bar-chart
. Check it out.
Props
If you want to see more examples and properties please check the official ChartJS Documentation.
You can also check the Official ChartJS Github Repository.