柱状图
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="ele-body ele-body-card" v-loading="loading">
|
||||
<el-card shadow="never" :header="title">
|
||||
<div>
|
||||
<div v-if="Barheight > 0">
|
||||
<v-chart
|
||||
ref="barChart"
|
||||
:style="'height:' + Barheight + 'px'"
|
||||
@@ -41,7 +41,7 @@
|
||||
dataUrl: [],
|
||||
// 词云图表配置
|
||||
barChartOption: {},
|
||||
Barheight: 700
|
||||
Barheight: 0
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -61,7 +61,7 @@
|
||||
.then((data) => {
|
||||
this.loading = false;
|
||||
this.dataUrl = data.dataUrl;
|
||||
// this.Barheight = 500 + 50 * data.dataValue.length;
|
||||
this.Barheight = 300 + 30 * data.dataValue.length;
|
||||
//饼状图
|
||||
if (data.dataTitle.length > 0) {
|
||||
this.barChartOption = {
|
||||
|
||||
Reference in New Issue
Block a user