30
Views
4
Comments
Donut Chart refresh
Question

Hi,

   in ODC we are using a DonutChart_v1 and we added the translation system for the labels from static entities as described here

https://success.outsystems.com/documentation/11/building_apps/user_interface/multilingual_reactive_web_and_mobile_apps/translate_your_app/#working-with-static-entities

It works great but obviously on translation change, the chart data remains unchanged, so the translations appear only on page refresh.


   There is a way to force the refresh of the DonutChart?

   Thank you

2022-05-02 13-30-24
Brendan G

I have had issues with reactive in the past not updating on the screen.
A quick solution was to hide the container by setting it behind an if that looks at a local variable.
When you change the data, set the bool to false and then back to true after getting the data

UserImage.jpg
Giuseppe Ribezzo

Hi Brendan,

   on data change the DonutChart updates automatically; the problem is because we change the locale but the data remains the same.

2025-11-25 13-20-12
Tamirys Silva Barina

@Giuseppe Ribezzo 

Are you refreshing the data after changing the language?

UserImage.jpg
Giuseppe Ribezzo

Hi Tami,

   no, we don't refresh the data, just change the locale.
   If we refresh data (or reload page) the chart updates also the translations.

Thank you

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.