Vue UI Components Documentation
The Vue BulletChart features two measures - a primary one (the pointer) and a comparative one (the target) and displays them in the context of a number of differently styled qualitative ranges. This guide adds the Vue BulletChart (jqxBulletChart) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css';
With <script setup>, an imported component is ready to use in the template. jqx.base.css is required; the second file is a theme, selected with the theme attribute.
The Default Functionality demo as a Single-File Component:
<template>
<JqxBulletChart
:width="width"
:height="80"
:barSize="'40%'"
:labelsFormat="'c'"
:showToolTip="true"
:title="title"
:description="description"
:ranges="ranges"
:pointer="pointer"
:target="target"
:ticks="ticks"
>
</JqxBulletChart>
</template>
<script setup>
import { ref } from 'vue';
import JqxBulletChart from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbulletchart.vue';
const width = ref('90%');
const title = ref('Revenue 2026 YTD');
const description = ref('(U.S. $ in thousands)');
const ranges = ref([
{ startValue: 0, endValue: 200, color: '#000000', opacity: 0.5 },
{ startValue: 200, endValue: 250, color: '#000000', opacity: 0.3 },
{ startValue: 250, endValue: 300, color: '#000000', opacity: 0.1 }
]);
const pointer = ref({ value: 270, label: 'Revenue 2026 YTD', size: '25%', color: 'Black' });
const target = ref({ value: 260, label: 'Revenue 2025 YTD', size: 4, color: 'Black' });
const ticks = ref({ position: 'both', interval: 50, size: 10 });
</script>
<style></style>
Options are attributes. Bind values from the script with :, for example :width="850".
Listen to an event with @ and its name. For example, change: This event is triggered when the value is changed.
<script setup>
function onChange(event) {
console.log(event.args);
}
</script>
<template>
<JqxBulletChart @change="onChange" />
</template>
Call methods through a template ref. For example, val: Sets or gets the selected value.
<script setup>
import { ref, onMounted } from 'vue';
const myBulletChart = ref(null);
onMounted(() => {
const value = myBulletChart.value.val(50);
console.log(value);
});
</script>
<template>
<JqxBulletChart ref="myBulletChart" />
</template>
Every component also has setOptions({ … }) and getOptions('name').