Having trouble getting help?
Contact Support
Contact Support
Internationalization in Vue Linear gauge component
11 Jun 20242 minutes to read
Globalization is the process of designing and developing a component that works in different cultures. Internationalization is used to globalize the number content in Linear Gauge component using format
property in Linear Gauge. It has static text on some features such as
- Axis label
- Tooltip
The static text on above features can be changed to any culture such as Arabic, Deutsch and French. To know more about the globalization in Vue components, refer here.
Numeric Format
The text in axis labels and tooltip can be displayed in the numeric format such as currency, percentage and so on. To know more about the numeric formats in axis labels, refer here. In the below example, the axis label is displayed in the currency format.
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :format='format'>
</ejs-lineargauge>
</div>
</div>
</template>
<script setup>
import { LinearGaugeComponent as EjsLineargauge } from "@syncfusion/ej2-vue-lineargauge";
const format = 'c';
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>
<template>
<div class="content-wrapper">
<div align='center'>
<ejs-lineargauge :format='format'>
</ejs-lineargauge>
</div>
</div>
</template>
<script>
import { LinearGaugeComponent } from "@syncfusion/ej2-vue-lineargauge";
export default {
name: "App",
components: {
"ejs-lineargauge":LinearGaugeComponent
},
data: function () {
return {
format: 'c'
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>