How to change the dashboards' date and currency format in embedding?
When using BoldBI dashboards in embedded mode, you may encounter issues with date formats. This is because the default culture setting is set to “en-US” (United States). However, Bold BI provides the option to change the date and currency formats using the API localeSettings.culture
.
Steps to Change the Culture Value
- In the embedded application, navigate to the BoldBI.create() method and add the culture API in the localeSettings API member. Here is a code sample:
var dashboard = BoldBI.create({
localeSettings:{
culture: "de-DE",
}
});
dashboard.loadDashboard();
In the above code example, “de-DE” indicates the culture of Germany. By default, the culture value is set as “en-US” which indicates United States culture.
-
The following images depict a demonstration. The first image displays the default culture value of “en-US”, while the second image displays the culture value set to “de-DE”.
-
Similarly, different cultures can be applied to change the date and currency formats as per your requirements.
Additional References
For more information on how to change the culture value in BoldBI, you can refer to the following link: BoldBI API Reference