Hi guys, Does anyone know if it is possible to rem...
# gooddata-platform
Hi guys, Does anyone know if it is possible to remove the decimal number in this case? I see in the documentation that it is possible to change only in "," and "." documentation: https://sdk.gooddata.com/gooddata-ui/docs/chart_config.html#change-a-separator-in-the-number-format
Hello @Gabriel Santos! Please try applying formatting to your metric; you can do this directly to the metric definition, or ad-hoc in the Analyze config.
Where is this chart coming from? Has it been built in the Analyze tab, or has it been built in the JavaScript using GoodData.UI SDK?
Screen Shot 2022-09-12 at 11.30.53.png
This chart was created using the GoodData.UI SDK
I see. In that case you will want to use the
helper from the
It could look something like this:
const NrRestaurants = modifyMeasure(Md.NrRestaurants, (m) => m.format("#,##0"));
Or a bit more advanced like this:
Copy code
const TotalSales = modifyMeasure(Md.$TotalSales, (m) =>
    m.format("#,##0").alias("$ Total Sales").title("Total Sales"),
I'd recommend just browsing through https://gdui-examples.herokuapp.com/ as there are many examples on different topics 😉 Let me know if it helps!
Ok, thanks