Search results

Internationalization in ASP.NET Core Linear Gauge control

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.

tagHelper
@{
    var majorticks = new LinearGaugeTick
    {
        Interval = 10,
        Height = 10
    };
    var minorticks = new LinearGaugeTick
    {
        Interval = 5,
        Height = 5
    };
    var labelstyle = new LinearGaugeLabel
    {
        Format = "c"
    };
}
@using Syncfusion.EJ2
<ejs-lineargauge id="linear">
    <e-lineargauge-axes>
        <e-lineargauge-axis minimum="0" maximum="120" majorTicks="majorticks" minorTicks="minorticks" labelStyle="labelstyle"></e-lineargauge-axis>
    </e-lineargauge-axes>
</ejs-lineargauge>
<script>
    ej.base.setCulture('de');
    ej.base.setCurrencyCode('EUR');
</script>