tiny-vue_version0/examples/sites/demos/pc/app/chart/waterfall/base.vue

44 lines
913 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div>
<tiny-waterfall :options="options"></tiny-waterfall>
</div>
</template>
<script lang="jsx">
import { ChartWaterfall } from '@opentiny/vue'
export default {
components: {
TinyWaterfall: ChartWaterfall
},
data() {
return {
options: {
padding: [50, 30, 20, 20],
legend: {
show: false
},
// water-fall表示为瀑布形态此时图中会自动添加一个Total(总和)数据
type: 'water-fall',
data: [
{ Name: 'NLE', User: 10 },
{ Name: 'HIN', User: 20 },
{ Name: 'FBP', User: 9 },
{ Name: 'VEDIO', User: 35 },
{ Name: 'SASS', User: 20 },
{ Name: 'RDS', User: 35 },
{ Name: 'E-SYS', User: 9 }
],
xAxis: {
data: 'Name'
},
yAxis: {
name: 'Number'
}
}
}
}
}
</script>