sapui5 charts:A simple pie chart using sap.makit library

How to create Pie or Donut chart using sapui5


1.sapui5 framework library loaded.

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.Here I am using custom Data and set it to json Model.jsonmodel is client side model.

4.Bind Data to Chart.Cool Already.Change Chart property "type" and see resulsts by yourself.
You can choose from

sap.makit.ChartType.BarHorizontal table bar chart

See the jsbin in action
If you enjoyed this post, I’d be grateful if you’d help it spread by sharing.Thank you! See you soon


Post a Comment

Powered by Blogger.