I am using a pie chart vizFrame and want to make it translateable.
--> i18n texts
In the API Reference for MeasureDefinition and DimensionDefinition is written
name : Name of the measure as displayed in the chart
So name is the property that decides how my Measure and Dimension are named.
If I use a hard string it works.
If I use an i18n text it doesnt.
I think it is because the values Property of the FeedItem seemingly needs to be the same as the name Property Measure and Dimension. But thats only a guess from what I see in Samples of the Demo Kit...
Does anyone know how I can use i18n texts in the VizFrame?
Code:
<viz.data:dimensions>
<viz.data:DimensionDefinition name="{i18n>material}"
value="{odataModel>MaterialText}" />
</viz.data:dimensions>
<viz.data:measures>
<viz.data:MeasureDefinition name="{i18n>sales}"
value="{odataModel>Sales}" />
</viz.data:measures>
Error:
Uncaught (in promise) Error: "sales" is of type string, expected any[] for property "values" of Element sap.viz.ui5.controls.common.feeds.FeedItem#__item4