| Name | Type | Default |
|---|---|---|
| animationDuration | Number | 400 |
|
Sets or gets jqxGauge's animation duration [ms]. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let animationDuration = this.$refs.myGauge.animationDuration; |
||
| border | Object | { size: '10%', style: { stroke: '#cccccc'}, visible: true, showGradient: true } |
|
Sets or gets the gauge's properties for it's border. Possible Values:
<template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:border="border"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
border: { size: '11%', style: { stroke: '#898989'}, visible: true },
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let border = this.$refs.myGauge.border; |
||
| caption | Object | { value: '', position: 'bottom', offset: [0, 0], visible: true } |
|
Sets or gets the gauge's properties for it's caption. Possible Values:
<template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:caption="caption"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
caption: { value: 'jQWidgets', position: 'bottom', offset: [0, 10], visible: true },
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let caption = this.$refs.myGauge.caption; |
||
| cap | String | Object | { size: '4%', style: { fill: 'theme-specific-color', stroke: 'theme-specific-color' } , visible: true } |
|
Sets or gets the gauge's properties for it's cap. Possible Values:
<template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:cap="cap"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
cap: { size: '5%', style: { fill: '#ff0000', stroke: '#00ff00' } , visible: true },
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let cap = this.$refs.myGauge.cap; |
||
| colorScheme | String | 'scheme01' |
|
Sets the gauge's color pallete. jqxGauge suppports 11 color schemes from 'scheme01' to 'scheme11'. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:colorScheme="'scheme01'"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let colorScheme = this.$refs.myGauge.colorScheme; |
||
| disabled | Boolean | false |
|
Sets or gets whether the jqxGauge is disabled. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:disabled="true"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let disabled = this.$refs.myGauge.disabled; |
||
| easing | String | linear |
|
Sets or gets jqxGauge's animation easing. Possible Values:
<template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:easing="'linear'"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let easing = this.$refs.myGauge.easing; |
||
| endAngle | Number | 270 |
|
Sets or gets gauge's endAngle. This property specifies the end of the gauge's scale and is measured in degrees. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:endAngle="250"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let endAngle = this.$refs.myGauge.endAngle; |
||
| height | Number | String | 350 |
|
Sets or gets the gauge's height. This property accepts size in pixels and percentage. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:height="400"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let height = this.$refs.myGauge.height; |
||
| int64 | Boolean | false |
|
Enables the jqxGauge 64-bit number support. Note: If this property is set to true, the properties value, min, max, ranges.startValue, ranges.endValue, ticksMinor.interval, ticksMajor.interval and labels.interval should be set to string values. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:int64="true"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let int64 = this.$refs.myGauge.int64; |
||
| labels | Object | { distance: '38%', position: 'none', interval: 20, offset: [0, -10], visible: true, formatValue: function (value) { return value; }} |
|
Sets or gets the gauge's properties for it's labels. Possible Values:
<template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:labels="labels"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
labels: { distance: '50px', position: 'inside', interval: 20, offset: [0, -10], visible: true, formatValue: function (value) {return value; } },
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let labels = this.$refs.myGauge.labels; |
||
| min | Number | 0 |
|
Sets or gets gauge's minimum value. <template>
<JqxGauge ref="myGauge"
:min="10"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let min = this.$refs.myGauge.min; |
||
| max | Number | 220 |
|
Sets or gets jqxGauge's max value. <template>
<JqxGauge ref="myGauge"
:max="140"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let max = this.$refs.myGauge.max; |
||
| pointer | Object | { pointerType: 'default', style: { fill: 'theme-specific-color', stroke: 'theme-specific-color' }, length: '70%', width: '2%', visible: true } |
|
Sets or gets the gauge's properties for it's pointer. Possible Values:
<template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:pointer="pointer"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
pointer: { pointerType: 'rectangle', style: { fill: '#ff0000', stroke: '#ff0000' }, length: '80%', width: '3%', visible: true },
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let pointer = this.$refs.myGauge.pointer; |
||
| radius | Number | '50%' |
|
Sets or gets gauge's radius. This property accepts size in pixels and percentage. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:radius="150"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let radius = this.$refs.myGauge.radius; |
||
| ranges | Array | [] |
|
This property is array of objects. Each object is different range. The range is colored area with specified size. Possible Values:
<template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ranges: undefined,
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let ranges = this.$refs.myGauge.ranges; |
||
| startAngle | Number | 30 |
|
Sets or gets gauge's startAngle. This property specifies the beggining of the gauge's scale and is measured in degrees. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:startAngle="40" :endAngle="200"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let startAngle = this.$refs.myGauge.startAngle; |
||
| showRanges | Boolean | true |
|
This property indicates whether the gauge's ranges will be visible. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:showRanges="true"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let showRanges = this.$refs.myGauge.showRanges; |
||
| styles | Object | { fill: '#ffffff', stroke: '#ffffff' } |
|
Sets or gets the gauge's style. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:styles="styles"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
styles: { fill: '#cccccc', stroke: '#cccccc' },
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let styles = this.$refs.myGauge.styles; |
||
| ticksMajor | Object | { size: '10%', interval: 5, style: { stroke: '#898989'}, visible: true } |
|
Sets or gets the gauge's properties for it's major ticks. Possible Values:
<template>
<JqxGauge ref="myGauge"
:ticksMajor="ticksMajor" :value="100"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMajor: { interval: 60, size: '15%' }
}
}
}
</script>
Get the let ticksMajor = this.$refs.myGauge.ticksMajor; |
||
| ticksMinor | Object | { size: '10%', interval: 5, style: { stroke: '#898989'}, visible: true } |
|
Sets or gets the gauge's properties for it's minor ticks. Possible Values:
<template>
<JqxGauge ref="myGauge"
:ticksMinor="ticksMinor" :value="100"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 1, size: '5%' }
}
}
}
</script>
Get the let ticksMinor = this.$refs.myGauge.ticksMinor; |
||
| ticksDistance | String | '20%" |
|
Sets and gets the ticks position. This property can be specified using percents (between '0%' and '100%') or using pixels. If the ticksRadius is '0%' this will position the ticks in the outer border of the gauge and if it's '100%' ticks will be positioned near the center. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:ticksDistance="'50%'"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let ticksDistance = this.$refs.myGauge.ticksDistance; |
||
| value | Number | 0 |
|
Sets or gets gauge's value. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:value="100"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let value = this.$refs.myGauge.value; |
||
| width | Number | String | 350 |
|
Sets or gets the gauge's width. This property accepts size in pixels and percentage. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
:width="300"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
}
}
</script>
Get the let width = this.$refs.myGauge.width; |
||
Events |
||
| valueChanging | Event | |
|
The event is is triggered when the gauge's value is changing. Code examples
Bind to the
<template>
<JqxGauge ref="myGauge" @valueChanging="onValueChanging($event)"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
},
methods: {
onValueChanging: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| valueChanged | Event | |
|
The event is is triggered when the gauge's value is changed. Code examples
Bind to the
<template>
<JqxGauge ref="myGauge" @valueChanged="onValueChanged($event)"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
},
methods: {
onValueChanged: function (event) {
alert('do something...');
}
}
}
</script>
|
||
Methods |
||
| Name | Arguments | Return Type |
| disable | None | None |
|
This method disables the gauge. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200"
/>
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.value = 140;
this.$refs.myGauge.disable();
}
}
</script>
|
||
| enable | None | None |
|
This method enables the gauge. <template>
<JqxGauge ref="myGauge"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200" />
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
this.$refs.myGauge.disable();
setTimeout(_ => {
this.$refs.myGauge.enable();
this.$refs.myGauge.value = 140;
}, 1000);
}
}
</script>
|
||
| val | value | Number |
|
Sets or gets the value. <template>
<JqxGauge ref="myGauge" :value="140"
:ranges="ranges" :ticksMinor="ticksMinor" :ticksMajor="ticksMajor" :animationDuration="1200" />
</template>
<script>
import JqxGauge from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxgauge.vue';
export default {
components: {
JqxGauge
},
data: function () {
return {
ticksMinor: { interval: 5, size: '5%' },
ticksMajor: { interval: 10, size: '9%' },
ranges: [
{ startValue: 0, endValue: 55, style: { fill: '#4bb648', stroke: '#4bb648' }, endWidth: 5, startWidth: 1 },
{ startValue: 55, endValue: 110, style: { fill: '#fbd109', stroke: '#fbd109' }, endWidth: 10, startWidth: 5 },
{ startValue: 110, endValue: 165, style: { fill: '#ff8000', stroke: '#ff8000' }, endWidth: 13, startWidth: 10 },
{ startValue: 165, endValue: 220, style: { fill: '#e02629', stroke: '#e02629' }, endWidth: 16, startWidth: 13 }
]
}
},
mounted: function () {
const value = this.$refs.myGauge.val();
}
}
</script>
|
||