| Name | Type | Default |
|
animationDuration
# |
Number
|
null
|
Sets ot gets the bulletcharts's animationDuration.
Possible values #
number
'slow'
'fast'
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" :animationDuration="500" />
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
</script>
Get the animationDuration property. let animationDuration = myBulletChart.value.animationDuration;
|
|
barSize
# |
String | Number
|
50%
|
Sets ot gets the bulletcharts's bar size.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" :barSize="'40%'" />
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
</script>
|
|
description
# |
String
|
'Description'
|
Sets ot gets the bulletcharts's description.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" :description="'Description'" />
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
</script>
|
|
disabled
# |
Boolean
|
false
|
Disables the bullet chart.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" :disabled="true" />
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
</script>
|
|
height
# |
Number | String
|
100
|
Sets ot gets the bulletcharts's height.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" />
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
</script>
|
|
labelsFormat
# |
String
|
null
|
Sets ot gets the bulletcharts's labelsFormat.
Possible values: #
"null"
"d" - decimal numbers
"f" - floating-point numbers
"n" - integer numbers
"c" - currency numbers
"p" - percentage numbers
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" :labelsFormat="'c'" />
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
</script>
|
|
labelsFormatFunction
# |
Function
|
null
|
Sets ot gets the bulletcharts's labelsFormatFunction.
<template>
<JqxBulletChart
ref="myBulletChart"
:width="500"
:height="120"
:labelsFormatFunction="labelsFormatFunction"
/>
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
function labelsFormatFunction(value, position) {
return value + 'C';
}
</script>
|
|
orientation
# |
String
|
"horizontal"
|
Sets ot gets the bulletcharts's orientation.
Possible values: #
"horizontal"
"vertical"
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" :orientation="'horizontal'" />
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
</script>
|
|
pointer
# |
Object
|
{ value: 65, label: "Value", size: "25%", color: "" }
|
Sets ot gets the bulletcharts's pointer.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" :pointer="pointer" />
</template>
<script setup>
import { ref } from 'vue';
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
const pointer = ref({ value: 270, label: 'Value', thickness: 8, color: 'White' });
</script>
|
|
rtl
# |
Boolean
|
false
|
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" :rtl="true" />
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
</script>
|
|
ranges
# |
Array
|
[{ startValue: 0, endValue: 50, color: "#000000", opacity: 0.7 }, { startValue: 50, endValue: 80, color: "#000000", opacity: 0.5 }, { startValue: 80, endValue: 100, color: "#000000", opacity: 0.3}]
|
Sets ot gets the bulletcharts's range.
Possible values #
'startValue' - the value from which the range will start
'endValue' - the value where the current range will end
'color' - the colour of the range
'opacity' - the opacity of the range
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" :ranges="ranges" />
</template>
<script setup>
import { ref } from 'vue';
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
const ranges = ref([
{ startValue: 0, endValue: 200, color: 'Blue', opacity: 0.6 },
{ startValue: 200, endValue: 250, color: 'Black', opacity: 0.3 }
]);
</script>
|
|
showTooltip
# |
Boolean
|
true
|
Sets ot gets the bulletcharts's showTooltip.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" :showTooltip="false" />
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
</script>
|
|
target
# |
Object
|
{ value: 85, label: "Target", size: 4, color: "" };
|
Sets ot gets the bulletcharts's target.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" :target="target" />
</template>
<script setup>
import { ref } from 'vue';
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
const target = ref({ value: 270, label: 'Value', thickness: 8, color: 'White' });
</script>
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
<template>
<JqxBulletChart ref="myBulletChart"
:width="500" :height="120" :theme="'material'"
/>
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
</script>
|
|
ticks
# |
Object
|
{ position: "far", interval: 20, size: 10 }
|
Sets ot gets the bulletcharts's ticks.
Possible values for ticks.position #
"near" - positions the ticks at the top of the ranges bar if the orientation is set to "horizontal" and at the left if the orientation is set to "vertical";
"far" - positions the ticks at the bottom of the ranges bar if the orientation is set to "horizontal" and at the right if the orientation is set to "vertical";
"both"
"none"
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" :ticks="ticks" />
</template>
<script setup>
import { ref } from 'vue';
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
const ticks = ref({ position: 'near', interval: 20, size: 10 });
</script>
|
|
title
# |
String
|
'Title'
|
Sets ot gets the bulletcharts's title.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" :title="'Title'" />
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
</script>
|
|
tooltipFormatFunction
# |
Function
|
null
|
Sets ot gets the bulletcharts's tooltipFormatFunction.
<template>
<JqxBulletChart
ref="myBulletChart"
:width="500"
:height="120"
:tooltipFormatFunction="tooltipFormatFunction"
/>
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
function tooltipFormatFunction(pointerValue, targetValue) {
return 'Current: ' + pointerValue + '; Average: ' + targetValue;
}
</script>
|
|
width
# |
Number | String
|
500
|
Sets ot gets the bulletcharts's width.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" />
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
</script>
|
|
|
|
change
# |
Event
|
|
This event is triggered when the value is changed.
Code examples #
Bind to the change event of jqxBulletChart.
<template>
<JqxBulletChart ref="myBulletChart" @change="onChange($event)" :width="500" :height="120" />
</template>
<script setup>
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
function onChange(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
destroy
# |
None
|
None
|
Destroy the jqxBulletChart widget.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
const myBulletChart = ref(null);
onMounted(() => {
myBulletChart.value.destroy();
});
</script>
|
|
render
# |
None
|
None
|
Renders the jqxBulletChart widget.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
const myBulletChart = ref(null);
onMounted(() => {
myBulletChart.value.render();
});
</script>
|
|
refresh
# |
None
|
None
|
Refresh the jqxBulletChart widget.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
const myBulletChart = ref(null);
onMounted(() => {
myBulletChart.value.refresh();
});
</script>
|
|
val
# |
value
|
Number
|
Sets or gets the selected value.
<template>
<JqxBulletChart ref="myBulletChart" :width="500" :height="120" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
const myBulletChart = ref(null);
onMounted(() => {
const value = myBulletChart.value.val(50);
});
</script>
|