Skip to Content

View -> VizFrame -> vizProperties -> i18n ?

Sep 13, 2017 at 06:03 AM


avatar image

Hey there,

I'm currently struggling with VizFrame ...

The situation:

I have defined the whole VizFrame in my view like this:

	xmlns="sap.viz" id="chart_5" width="100%" vizType="stacked_column" uiConfig="{applicationSet:'fiori'}"
	vizProperties="{ valueAxis: { title: { visible: true, text: 'foo Items (pcs)' } },title: { visible: false }, plotArea: { colorPalette: ['#00b482', '#6e6e6e', '#711e82', '#40c7a1', '#969696'] } }">
				< name="{i18n>year}" value="{YEAR}" identity="idYear"/>
				< name="{i18n>month}" value="{MONTH}" identity="idMonth"/>
				< name="{i18n>no}" value="{S_NO}" identity="idNo"/>
				< name="{i18n>refurbished}" value="{S_SURFACE_REFURBISHED}" identity="idSurfaceRefurbished"/>
				< name="{i18n>corrosion}" value="{S_CORROSION}" identity="idCorrosion"/>
		<viz.feeds:FeedItem uid="valueAxis" type="Measure" values="idNo,idSurfaceRefurbished,idCorrosion"/>
		<viz.feeds:FeedItem uid="categoryAxis" type="Dimension" values="idMonth,idYear"/>

Works like a charm, except for the y-axis title... Normally I would get a axis title having all my three measures. But I want a different one, "Items (pcs.)". So I declared the valuue axis title in vizProperties. Works as well.

The problem is: I'm not able to apply an i18n'ed value in vizProperties.

I tried different things, like:

izProperties="{ valueAxis: { title: { visible: true, text: '{i18n>pieces}' } },title: { visible: false }, plotArea: { colorPalette: ['#00b482', '#6e6e6e', '#711e82', '#40c7a1', '#969696'] } }"
But the title I get is: "{i18n>pieces}", instead of the i18n'ed text.


Is this actually possible to have i18n in vizProperties, diretly in view?

If yes: How?

best regards,


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Vedaradhya Agrahar Oct 11, 2017 at 05:46 AM

Hi Alex,

It is possible to have i18n in vizProperties using Expression binding

Simple Example Here:

vizProperties="{= {valueAxis: { title: { visible: true, text: ${i18n>pieces} } } } }"



Show 1 Share
10 |10000 characters needed characters left characters exceeded

Sorry, tried this at first. Did not work at all. The expression "${i18n>pieces}" is not getting evaluated at all. It works everything else but vizProperties attribute...


Ah, I just saw that your string looks different:

yours: {= {valueAxis: { title: { visible: true, text: ${i18n>pieces} } } } }

mine: { valueAxis: { title: { visible: true, text: '{i18n>pieces}' } } }

there's an additional "=" ...

I will test it...