[vaadin-charts] [drill up button] [I18N]

Hi,
I am trying to change the text of the drill up button using something like this:

Lang lang = new Lang();
lang.setDrillUpText("< " + getMessage(drillUpButtonLabel));
ChartOptions.get().setLang(lang);

And while indeed the text is changed now I loosed the previous series name that were added automatically after ‘Back to’ when drilled down.

Any idea how can I keep that as well?

Thanks,
Claudiu

Hi Claudiu,

As mentioned in setDrillUpText javadoc the default value is “Back to {series.name}”, and “{series.name}” will be evaluated as the the parent series’ name.


http://demo.vaadin.com/javadoc/com.vaadin.addon/vaadin-charts/3.1.0-rc1/com/vaadin/addon/charts/model/Lang.html#setDrillUpText-java.lang.String-

Hope this helps,

Guille

Super…I missed that.
It’s working nicely

Thanks,
Claudiu

Great to hear it’s working!