I am trying to change the bar chart of the chartJs library (version 2.8.0) in angular 7. I have seen other answers about overriding the rectangular element's draw method. However, using such an approach presents the following error:
Property 'elements' does not exist on type 'typeof Chart'
I am importing as follows:
import {Chart, ChartType, ChartOptions, ChartDataSets} from 'chart.js';
I am trying to use the solution presented in the following topic: How to create rounded bars for Bar Chart.js v2?
Print of the code: Error code