valor-software / ng2-charts

Beautiful charts for Angular based on Chart.js
http://valor-software.github.io/ng2-charts/
MIT License
2.34k stars 573 forks source link

ng-charts giving error for 'barPercentage' and 'gridLines' in angular 7??? #1206

Closed mariah123 closed 1 year ago

mariah123 commented 4 years ago

I have used ng-charts in angular 7... It was fine before but now its giving following error :

error TS2322: Type '{ gridLines: { display: false; }; barPercentage: number; barThickness: number; }' is not assignable to type 'ChartXAxe'.
  Object literal may only specify known properties, and 'barPercentage' does not exist in type 'ChartXAxe'.

I am using :

"ng2-charts": "^2.3.0" "chart.js": "^2.9.3", "chartjs-plugin-datalabels": "^0.7.0"

santam85 commented 1 year ago

Please upgrade to a supported version, Angular 7 is not supported anymore by the Angular team.