tiny-vue_version0/examples/sites/demos/pc/app/chart/gauge/demo2-composition-api.vue

26 lines
421 B
Vue

<template>
<div>
<tiny-chart-gauge :options="options"></tiny-chart-gauge>
</div>
</template>
<script setup lang="jsx">
import { ref } from 'vue'
import { ChartGauge as TinyChartGauge } from '@opentiny/vue'
const options = ref({
// 仪表盘的最小值
min: 0,
// 仪表盘的最大值
max: 1000,
pointer: true,
data: [
{
value: 666,
name: 'Utilization rate'
}
]
})
</script>