tiny-vue_version0/examples/sites/demos/pc/app/chart/line/demo7.vue

44 lines
1013 B
Vue

<template>
<div>
<tiny-line :options="options"></tiny-line>
</div>
</template>
<script lang="jsx">
import { ChartLine } from '@opentiny/vue'
export default {
components: {
TinyLine: ChartLine
},
data() {
return {
options: {
markLine: {
top: 38,
bottom: 20
},
data: [
{ 'Month': 'Jan', 'Domestic': 33 },
{ 'Month': 'Feb', 'Domestic': 27 },
{ 'Month': 'Mar', 'Domestic': 31 },
{ 'Month': 'Apr', 'Domestic': 30 },
{ 'Month': 'May', 'Domestic': 37 },
{ 'Month': 'Jun', 'Domestic': 36 },
{ 'Month': 'Jul', 'Domestic': 42 },
{ 'Month': 'Aug', 'Domestic': 22 },
{ 'Month': 'Sep', 'Domestic': 17 },
{ 'Month': 'Oct', 'Domestic': 40 },
{ 'Month': 'Nov', 'Domestic': 42 },
{ 'Month': 'Dec', 'Domestic': 32 }
],
xAxis: 'Month',
yAxis: {
name: 'Percent(%)'
}
}
}
}
}
</script>