53 lines
1.1 KiB
Vue
53 lines
1.1 KiB
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',
|
|
theme: 'light',
|
|
type: 'double-sides',
|
|
padding: [48, '6%', 20, '6%'],
|
|
color: ['#00aaee', '#41ba41'],
|
|
legend: {
|
|
show: true,
|
|
right: '3%',
|
|
left: 'auto',
|
|
top: '3%'
|
|
},
|
|
data: [
|
|
{
|
|
name: 'China',
|
|
children: [
|
|
{ name: 'Game', value: 30 },
|
|
{ name: 'Move', value: 20 },
|
|
{ name: 'Animation', value: 45 },
|
|
{ name: 'Fiction', value: 60 }
|
|
]
|
|
},
|
|
{
|
|
name: 'Mexico',
|
|
children: [
|
|
{ name: 'School', value: 12 },
|
|
{ name: 'Hospital', value: 14 },
|
|
{ name: 'Cinema', value: 33 },
|
|
{ name: 'Library', value: 44 }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|