24 May 20191 minute to read

Localization in PivotGauge Control

We can localize the PivotGauge control texts with a collection of localized strings using “ej.PivotGauge.Locale” for different cultures.


By default, the PivotGauge control is localized in “en-US”.

Following code example illustrates on how to localize PivotGauge based on “French” culture.

  • <script>
            ej.PivotGauge.Locale["fr-FR"] = {
                RevenueGoal: "Objectif de chiffre d'affaires",
                RevenueValue: "Valeur du chiffre d'affaires"

    Following table localizes the in-built keywords to “French” culture for PivotGauge.

    Keywords Values
    RevenueGoal "Objectif de chiffre d'affaires"
    RevenueValue "Valeur du chiffre d'affaires "

    Localization and Globalization of Cube Info

    Content displayed within the PivotGauge control are obtained from the OLAP Cube. So following are the steps that needs to be done to get the localized and globalized Cube content.

    To get the localized string based on different cultures, from OLAP Cube, we need to set “Locale Identifier” in the connection string to a specific culture. The attribute is set for PivotGauge in Client Mode as shown below

  • @Html.EJ().Pivot().PivotGauge("PivotGauge1").Locale("fr-FR").DataSource(dataSource => dataSource.Data("http://bi.syncfusion.com/olap/msmdpump.dll;Locale Identifier=1036;"))

    For Server Mode, we need to set “Culture” and “OverrideDefaultFormatStrings” properties in “OlapDataManager” class to a specific culture along with setting “Locale Identifier” in connection string.

  • C#
  • //1036 refers to “fr-FR” culture.
        string connectionString = "Data Source=localhost; Initial Catalog=Adventure Works DW; Locale Identifier=1036;";
        DataManager = new OlapDataManager(connectionString);
        DataManager.Culture = new System.Globalization.CultureInfo(1036);
        DataManager.OverrideDefaultFormatStrings = true;

    Localization in ASP NET MVC pivot gauge control