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

30 lines
752 B
Vue

<template>
<div>
<tiny-chart-process :options="options"></tiny-chart-process>
</div>
</template>
<script setup lang="jsx">
import { ref } from 'vue'
import { ChartProcess as TinyChartProcess } from '@opentiny/vue'
const options = ref({
// 图表名称
name: 'ProcessBarChart',
// 主题,默认值'light'
theme: 'light',
// Padding控制图表距离容器的上、右、下、左padding值
padding: [32, 32, 0, 32],
// 颜色组,循环使用
color: ['#fa2a2d', '#ff7500', '#ffbf00', '#41ba41', '#00aaee'],
// 数据
data: [
{ name: 'UniEPMgr', value: 80 },
{ name: 'SMLoglic', value: 65 },
{ name: 'SSO', value: 45 },
{ name: 'APIMgr', value: 20 },
{ name: 'Logtransfer', value: 12 }
]
})
</script>