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

22 lines
514 B
Vue

<template>
<div>
<tiny-chart-funnel :data="chartData" :settings="chartSettings"></tiny-chart-funnel>
</div>
</template>
<script setup lang="jsx">
import { ref } from 'vue'
import { ChartFunnel as TinyChartFunnel } from '@opentiny/vue'
const chartData = ref({
columns: ['状态', '数值'],
rows: [
{ 状态: '展示', 数值: 900 },
{ 状态: '访问', 数值: 600 },
{ 状态: '点击', 数值: 300 },
{ 状态: '订单', 数值: 100 }
]
})
const chartSettings = ref({})
</script>