Search results

Internationalization

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
internationalization.cs
@{
    var majorticks = new
    {
        interval = 10,
        height = 10
    };
    var minorticks = new
    {
        interval = 5,
        height = 5
    };
    var labelstyle = new
    {
        format = "c"
    };
}
@using Syncfusion.EJ2
<ejs-lineargauge id="linear">
    <e-axes>
        <e-axis minimum="0" maximum="120" majorTicks="majorticks" minorTicks="minorticks" labelStyle="labelstyle"></e-axis>
    </e-axes>
</ejs-lineargauge>
<script>
    ej.base.setCulture('de');
    ej.base.setCurrencyCode('EUR');
</script>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using EJ2_Core_Application.Models;
using Newtonsoft.Json;
using Syncfusion.EJ2.Charts;
using Syncfusion.EJ2.LinearGauge;


namespace EJ2_Core_Application.Controllers
{
    public class HomeController : Controller
    {
        public IActionResult Index()
        {

            return View();
        }
    }
}