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