Internationalization in Vue Linear gauge component
16 Mar 20231 minute 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>
import Vue from 'vue';
import { LinearGaugePlugin } from "@syncfusion/ej2-vue-lineargauge";
Vue.use(LinearGaugePlugin);
export default {
data: function () {
return {
format: 'c'
}
}
};
</script>
<style>
#content-wrapper {
padding: 0px !important;
}
</style>