tiny-vue/examples/sites/demos/pc/app/chart/gauge/demo6.vue

35 lines
573 B
Vue

<template>
<div>
<tiny-gauge :options="options"></tiny-gauge>
</div>
</template>
<script lang="jsx">
import { ChartGauge } from '@opentiny/vue'
export default {
components: {
TinyGauge: ChartGauge
},
data() {
return {
options: {
min: 0,
max: 1000,
splitNumber: 4,
// 阈值线,超出阈值线时,进度条会变红色
markLine: 888,
pointer: true,
data: [
{
value: 900,
name: 'Rgistered Persons'
}
]
}
}
}
}
</script>