Donut Chart

Fiori Overview Page (OVP) Application - Creating Analytical Card(Donut Chart)!

                   In previous posts we  created our first SAP Fiori Overview Page Application using northwind OData service and added a List card and Stack card to our application.
                   In this post we will see how to add an analytical card to our application.The analytical chart card types used in Fiori overview page application are Line,Bubble,Donut,Column,Stacked Column,Vertical Bullet,Combination or Scatter.
We will be adding Donut chart card in our application.
                   A donut chart displays data as different colored sections of a donut.The size of each section varies according to the measure values.By seeing a donut chart a viewer can quickly determinte the key area which needs immediate attention.Donut chart require exactly one measure.We can provide more than one dimension to donut chart.We will be providing one dimension and measure for keeping this tutorial as simple as possible.

  1. Fiori Overview Application created already.I will be using the application created in 'How to Create your first SAP Fiori Overview Page Application ? - Example using List Card' for this tutorial.
  1. First step is adding a analytic card to the fiori overview application.For this Right click on application->new->Card.
  2. Select a card.Choose Analytic card  and press next button.
  3. In Card customisation section select the entityset we are going to use.I chose Category_Sales_for_1997.Give a title.title is mandatory this will be shown in the card.In the annotation section just give Chart Annotation path as all other paths blank.We will keep this tutorial simple.That is why we are keeping all other paths blank.Press next and press finish.Now a new component will be added to our application.
  4. Open manifest.json and edit the code inside cards section like below.

  5. Open our localAnnotations_1.xml file and paste below code inside Schema section.So far we have used Employees entityset for our previous tutorials.Now we are using Category_Sales_for_1997.So we have to create another annotations section targeting our new entityset inside Schema.We can add as many annotations section inside the schema.Paste below code just above our Northwind.Employees annotation section.

  6. Now our Fiori Overview Application have a chart section.Run the application and feel the beauty of our application.See my application screenshot.
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.