Dynamic data in comparison micro chart in Generic Tile in XMLViews
Hi,
We have lot of examples in SAPUI5 explored but they talk about static data in generic tile in XML views. I decided to write this blog to provide code snippet for loading dynamic data in comparison micro chart in a generic tile for XML Views.
You can bind the data dynamically by using the data property of the comparison micro chart. The code will look like this
The json model should look like this:
The limitation currently for using generic tile with comparison microchart is that you can only compare 3 values in the chart.Remeber to do aggregation on your query that loads the model else your generic tile will be empty
Very helpful.
Can you elaborate more about :
“The limitation currently for using generic tile with comparison microchart is that you can only compare 3 values in the chart.Remeber to do aggregation on your query that loads the model else your generic tile will be empty”
this statement as i am only using the comaprison microChart with the Block layout . My comparison microchart is empty no data is displaying.
hi Surendra,
if you will not do aggregation then your json model will have more than 3 values and hence the chart will be empty. check your json model.