Charts in Angular 2+
My Suggestions would be:
We can achieve your requirement by using Syncfusion angular-charts. For more details about Syncfusion angular-charts please find attached demo and FT links.
Sample: https://stackblitz.com/edit/angular-zo5arc?file=src/app/app.module.ts
FT: https://www.syncfusion.com/angular-ui-components/angular-charts
Demo link: https://ej2.syncfusion.com/angular/demos/#/material/chart/spline
UG: https://ej2.syncfusion.com/angular/documentation/chart/getting-started