Search code examples
angulargraphangular2-formsangular4-forms

Charts in Angular 2+


I want to create a graph similar to the picture I have attached or may be a bar graph. I am using Angular 4 and I have no idea about graphs in Angular. Is a reference link or some sample code available?

[![Graph][1]][1]


Solution

  • 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

    Screenshot: Syncfusion ng-charts

    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