Combination charts allow multiple layers of a graph to share the same category, but have their own values and series grouped and drawn in different styles.
A combination chart consist of two components:
- sap.makit/CombinationChart control
- sap.makit/Layer element
To create a combination chart, create a CombinationChart control and add multiple Layer elements. TheCombinationChart control serves as a container for the combination chart and multiple charts are added by means of 'layers' aggregation: each chart in the CombinationChart is represented by the Layer object. TheCombinationChart control contains all the properties, aggregations, events, and methods that are shared by all layers.
Steps
- Load sapui5 and add makit library
- Get the Data.I am using custom data.data should be like thisImage may be NSFW.
Clik here to view. - Create CombinationChart control and define categoryRegions
Image may be NSFW.
Clik here to view.
4.Create Layers.
Image may be NSFW.
Clik here to view.
5.Add columns
Image may be NSFW.
Clik here to view.
6.Bind data to layers
Image may be NSFW.
Clik here to view.
7.Add layers to combination chart.
Image may be NSFW.
Clik here to view.
8.Add combination chart to Page and add page to App control.
Image may be NSFW.
Clik here to view.
For more information visit blog SAPUI5 Charts:Combination chart using sap.makit library | sap abap | sapui5 made easy