Search results

Internationalization in ASP.NET MVC Linear Gauge control

14 Apr 2021 / 1 minute to read

Linear gauge provide supports for internationalization for below gauge elements.

  • Axis label.
  • Tooltip

For more information about number and date formatter you can refer internationalization.

Globalization

Globalization is the process of designing and developing an component that works in different cultures/locales. Internationalization library is used to globalize number in LinearGauge component using format property in labelStyle.

Numeric Format

In the below example axis labels are globalized to EUR.

razor
Copied to clipboard
@using Syncfusion.EJ2;
@Html.EJS().LinearGauge("linear").Axes(axis=>axis.Minimum(0).Maximum(120).MajorTicks(new
{
    interval = 10,
    height = 10
}).MinorTicks(new
{
    interval = 5,
    height = 5
}).LabelStyle(new
{
    format = "c"
})).Render()
<script>
    ej.base.setCulture('de');
    ej.base.setCurrencyCode('EUR');
</script>