56 lines
1.2 KiB
Vue

<template>
<div class="problemTrend">
<div class="title">{{ title }}</div>
<div class="content">
<JLineChart :xData="xData" :series="series" :title="{ text: '最近30天质量问题趋势分析' }" />
</div>
</div>
</template>
<script>
import JLineChart from '../jChart/line/JLineChart.vue'
export default {
components: { JLineChart },
props: {
title: {
type: String,
default: 'default title'
}
},
data() {
return {
xData: ['地理老师', '地理老师', '地理老师', '地理老师', '地理老师', '地理老师', '地理老师', '地理老师', '地理老师', '地理老师'],
series: [
{
data: [100, 235, 232, 532, 112, 532, 449, 269, 998, 33],
areaColor: ['rgba(250,201,21,0.6)', 'rgba(250,201,21,0.1)'],
emphasis: {
color: '#FAC915',
borderColor: '#FAC915',
borderWidth: 10
}
}
]
}
}
}
</script>
<style lang="less" scoped>
.problemTrend {
width: 100%;
height: 100%;
border: 1px solid #0081c3;
.title {
padding-left: 6px;
height: 30px;
line-height: 30px;
font-size: 18px;
color: #6ee4f0;
}
.content {
height: calc(100% - 30px);
}
}
</style>