| Name | Type | Default |
|
animationDuration
# |
Number
|
1000
|
Determines the animation in milliseconds. To disable this property - set it to 0 (zero).
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:animationDuration="500"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the animationDuration property. let animationDuration = myBarGauge.value.animationDuration;
|
|
backgroundColor
# |
String
|
#e0e0e0
|
Sets or gets the jqxBarGauge background color.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:backgroundColor="'red'"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the backgroundColor property. let backgroundColor = myBarGauge.value.backgroundColor;
|
|
barSpacing
# |
Number
|
4
|
Sets or gets the space between the segments of the jqxBarGauge.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:barSpacing="12"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the barSpacing property. let barSpacing = myBarGauge.value.barSpacing;
|
|
baseValue
# |
Number
|
null
|
Sets the base value of jqxBarGauge.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:baseValue="30"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the baseValue property. let baseValue = myBarGauge.value.baseValue;
|
|
colorScheme
# |
String
|
scheme01
|
Sets the jqxBarGauge's color palette. jqxBarGauge supports 27 color schemes from 'scheme01' to 'scheme27'. I's possible to set custom scheme in combination with "customColorScheme" property.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:colorScheme="'scheme02'"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the colorScheme property. let colorScheme = myBarGauge.value.colorScheme;
|
|
customColorScheme
# |
String | Object
|
scheme01
|
Sets custom color palette in the BarGauge. This is used in combination with "colorScheme" property.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:colorScheme="'scheme'"
:customColorScheme="{
name: 'scheme',
colors: ['#FFCF5E', '#E83C64', '#FF60B9', '#52BDE8']
}"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the customColorScheme property. let customColorScheme = myBarGauge.value.customColorScheme;
|
|
disabled
# |
Boolean
|
false
|
Sets or gets the values of the disabled property of jqxBarGauge. By default is false.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:disabled="true"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the disabled property. let disabled = myBarGauge.value.disabled;
|
|
endAngle
# |
Number
|
0
|
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:endAngle="180"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the endAngle property. let endAngle = myBarGauge.value.endAngle;
|
|
formatFunction
# |
Object | Function
|
null
|
Sets or gets the formatFunction of the BarGauge. Used to make changes on the particular segment.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:formatFunction="formatFunction"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
function formatFunction(value, index, color) {
return 'red';
}
</script>
|
|
height
# |
Number | String
|
400
|
Sets or gets the BarGauge's height.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the height property. let height = myBarGauge.value.height;
|
|
labels
# |
Object
|
null
|
This property is used to make fine settings on BarGauge labels at each segment.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:labels="labels"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
const labels = ref({
connectorColor: 'red',
connectorWidth: 1,
font: { color: 'darkseagreen', size: 12 },
formatFunction: function (value, index) {
return value + ' USD';
},
indent: 15,
precision: 1,
visible: true
});
</script>
Get the labels property. let labels = myBarGauge.value.labels;
|
|
max
# |
Number
|
100
|
Sets or gets the end value of BarGauge.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="60"
:values="[102, 115, 130, 137]"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the max property. let max = myBarGauge.value.max;
|
|
min
# |
Number
|
0
|
Sets or gets BarGauge's min. This property specifies the beginning of the BarGauge's scale.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:min="-25"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the min property. let min = myBarGauge.value.min;
|
|
relativeInnerRadius
# |
Number
|
0.3
|
Sets or gets the relativeInnerRadius of jqxBarGauge. It's value represents the proportion between inner and outer radius.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:relativeInnerRadius="0"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the relativeInnerRadius property. let relativeInnerRadius = myBarGauge.value.relativeInnerRadius;
|
|
rendered
# |
Function
|
null
|
This function is called when the BarGauge is initialized and the binding is complete.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:rendered="rendered"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
function rendered() {
alert('rendered!');
}
</script>
|
|
startAngle
# |
Number
|
225
|
Sets or gets the startAngle of the BarGauge. Used to create geometry of the arc in the space.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:startAngle="200"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the startAngle property. let startAngle = myBarGauge.value.startAngle;
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
<template>
<JqxBarGauge ref="myBarGauge"
:width="600" :height="600" :max="150" :values=" [102, 115, 130, 137] "
:theme="'material'"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
|
|
title
# |
Object | String
|
null
|
Sets or gets the BarGauge's title. This property can be string or object with custom title settings.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:title="title"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
const title = ref({ text: 'Ranking', font: { color: 'rosybrown', size: 25 } });
</script>
Get the title property. let title = myBarGauge.value.title;
|
|
tooltip
# |
Object
|
null
|
Sets or gets the BarGauge's tooltip.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:tooltip="tooltip"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
const tooltip = ref({
classname: 'myTooltip',
visible: true,
precision: 0,
formatFunction: function (value, index) {
return value + ' USD';
}
});
</script>
Get the tooltip property. let tooltip = myBarGauge.value.tooltip;
|
|
useGradient
# |
Boolean
|
true
|
Sets or gets useGradient of the BarGauge. Change visualization of the segments between flat color or with gradient.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
:useGradient="false"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the useGradient property. let useGradient = myBarGauge.value.useGradient;
|
|
values
# |
Array
|
[]
|
Sets or gets array of values for the BarGauge.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the values property. let values = myBarGauge.value.values;
|
|
width
# |
Number | String
|
400
|
Sets or gets the BarGauge's width.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
</script>
Get the width property. let width = myBarGauge.value.width;
|
|
|
|
drawEnd
# |
Event
|
|
The event is raised when the BarGauge finish rendering. Commonly used in combination with drawStart event.
Code examples #
Bind to the drawEnd event of jqxBarGauge.
<template>
<JqxBarGauge
ref="myBarGauge"
@drawEnd="onDrawEnd($event)"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
function onDrawEnd(event) {
alert('do something...');
}
</script>
|
|
drawStart
# |
Event
|
|
The event is raised when the BarGauge starts rendering again. Commonly used in combination with drawEnd event.
Code examples #
Bind to the drawStart event of jqxBarGauge.
<template>
<JqxBarGauge
ref="myBarGauge"
@drawStart="onDrawStart($event)"
:width="600"
:height="600"
:max="150"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
const myBarGauge = ref(null);
function onDrawStart(event) {
alert('do something...');
}
onMounted(() => {
myBarGauge.value.values = [102, 115, 130, 137];
});
</script>
|
|
initialized
# |
Event
|
|
Fires when the jqxBarGauge is rendered for the first time. The BarGauge is initialized.
Code examples #
Bind to the initialized event of jqxBarGauge.
<template>
<JqxBarGauge
ref="myBarGauge"
@initialized="onInitialized($event)"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
function onInitialized(event) {
alert('do something...');
}
</script>
|
|
tooltipClose
# |
Event
|
|
Fires when a BarGauge's tooltip is closed.
Code examples #
Bind to the tooltipClose event of jqxBarGauge.
<template>
<JqxBarGauge
ref="myBarGauge"
@tooltipClose="onTooltipClose($event)"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
const myBarGauge = ref(null);
function onTooltipClose(event) {
alert('do something...');
}
onMounted(() => {
myBarGauge.value.tooltip = { visible: true };
});
</script>
|
|
tooltipOpen
# |
Event
|
|
Fires when a BarGauge's tooltip is open.
Code examples #
Bind to the tooltipOpen event of jqxBarGauge.
<template>
<JqxBarGauge
ref="myBarGauge"
@tooltipOpen="onTooltipOpen($event)"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
const myBarGauge = ref(null);
function onTooltipOpen(event) {
alert('do something...');
}
onMounted(() => {
myBarGauge.value.tooltip = { visible: true };
});
</script>
|
|
valueChanged
# |
Event
|
|
Fires after the values are changed.
Code examples #
Bind to the valueChanged event of jqxBarGauge.
<template>
<JqxBarGauge
ref="myBarGauge"
@valueChanged="onValueChanged($event)"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
/>
</template>
<script setup>
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
function onValueChanged(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
refresh
# |
None
|
None
|
Refreshes the BarGauge.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
const myBarGauge = ref(null);
onMounted(() => {
myBarGauge.value.refresh();
});
</script>
|
|
render
# |
None
|
None
|
Renders the BarGauge contents. This method completely refreshes the BarGauge.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
const myBarGauge = ref(null);
onMounted(() => {
myBarGauge.value.render();
});
</script>
|
|
val
# |
value
|
Array
|
Returns an array of the BarGauge values.
<template>
<JqxBarGauge
ref="myBarGauge"
:width="600"
:height="600"
:max="150"
:values="[102, 115, 130, 137]"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxBarGauge from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbargauge.vue';
const myBarGauge = ref(null);
onMounted(() => {
const value = myBarGauge.value.val([112, 125, 150, 137]);
});
</script>
|