forked from opentiny/tiny-vue
26 lines
611 B
Vue
26 lines
611 B
Vue
<template>
|
|
<div>
|
|
<tiny-chart-bar :data="chartData" :settings="chartSettings"></tiny-chart-bar>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="jsx">
|
|
import { ref } from 'vue'
|
|
import { ChartBar as TinyChartBar } from '@opentiny/vue'
|
|
|
|
const chartSettings = ref({
|
|
yAxisType: 'value'
|
|
})
|
|
const chartData = ref({
|
|
columns: ['日期', '访问用户'],
|
|
rows: [
|
|
{ 日期: 1, 访问用户: 1393 },
|
|
{ 日期: 2, 访问用户: 3530 },
|
|
{ 日期: 5, 访问用户: 2923 },
|
|
{ 日期: 10, 访问用户: 1723 },
|
|
{ 日期: 15, 访问用户: 3792 },
|
|
{ 日期: 36, 访问用户: 4593 }
|
|
]
|
|
})
|
|
</script>
|