tiny-vue_version0/examples/sites/demos/pc/app/chart/ring/base-composition-api.vue

21 lines
405 B
Vue

<template>
<div>
<tiny-chart-ring :options="options"></tiny-chart-ring>
</div>
</template>
<script setup lang="jsx">
import { ref } from 'vue'
import { ChartRing as TinyChartRing } from '@opentiny/vue'
const options = ref({
type: 'circle',
data: [
{ value: 100, name: 'VPC' },
{ value: 98, name: 'IM' },
{ value: 49, name: 'EIP' },
{ value: 14, name: 'SG' }
]
})
</script>