Reputation: 1
I can't find any example about binding a JSON model to the control sap.suite.ui.microchart.InteractiveBarChart
in an XML view.
My view is the following:
<mc:InteractiveBarChart xmlns:mc="sap.suite.ui.microchart"
labelWidth="25%"
bindBars="{/}"
>
<mc:bars>
<mc:InteractiveBarChartBar label="{key}" value="{value}" />
</mc:bars>
</mc:InteractiveBarChart>
I've to bind the InteractiveBarChart
to my model. An array is set in the controller. By API reference, I've to use bindBars
method, but I can't make it work.
Upvotes: -1
Views: 607
Reputation: 1450
Any control in UI5 has the same concepts of data binding: property and aggregation bindings.
If control is aimed to show multiple things (i.e. table or list), it will have the so called aggregation.
In InteractiveBarChart control there is an aggregation "bars".
Any control can be bound against model via the unified binding syntax.
Upvotes: 1