Pre-requisites
1.sapui5 framework
2.sap.makit library loaded.
Steps
1.First step is to include sap.makit library in index.html file
2.Create sap.makit.Chart control and give properties.
3.Get Data for the Chart.You can Get Data from Odata Service
4.Bind Data to Chart.All set..Try it
For details and sample visit below blog
sapui5 charts:A simple chart using sap.makit library | sap abap | sapui5 made easy
If you need pie or donut chart just change sap.makit.Chart property "type"
refer
sapui5 charts:A simple pie chart using sap.makit library | sap abap | sapui5 made easy