Search results

Linear Gauge Dimensions

Size for Linear Gauge

You can also set size for linear gauge directly through width and height properties.

In Pixel

You can set the size of lineargauge in pixel as demonstrated below.

Source
Preview
app.vue
<template>
    <div>
    <div class="content-wrapper">
    <div align='center'>
    <ejs-lineargauge  width= '650px' height= '350px'></ejs-lineargauge>
  </div>
  </div>
  </div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from '@syncfusion/ej2-vue-lineargauge';

Vue.use(LinearGaugePlugin);
export default { }
</script>
<style>
@import "../../node_modules/@syncfusion/ej2-vue-lineargauge/styles/material.css";
#content-wrapper {
    padding: 0px !important;
}
</style>

In Percentage

By setting value in percentage, linear gauge gets its dimension with respect to its container. For example, when the height is ‘50%’, linear gauge renders to half of the container height.

Source
Preview
app.vue
<template>
    <div>
    <div class="content-wrapper">
    <div align='center'>
    <ejs-lineargauge  width= '100%' height= '50%'></ejs-lineargauge>
  </div>
  </div>
  </div>
</template>
<script>
import Vue from 'vue';
import { LinearGaugePlugin } from '@syncfusion/ej2-vue-lineargauge';

Vue.use(LinearGaugePlugin);
export default { }
</script>
<style>
@import "../../node_modules/@syncfusion/ej2-vue-lineargauge/styles/material.css";
#content-wrapper {
    padding: 0px !important;
}
</style>