|
|
@@ -4,11 +4,11 @@
|
|
|
<v-chart autoresize :option="option"/>
|
|
|
</div>
|
|
|
<div class="r-coner">
|
|
|
- <div class="c-item"></div>
|
|
|
- <div class="c-item"></div>
|
|
|
- <div class="c-item"></div>
|
|
|
- <div class="c-item"></div>
|
|
|
- <div class="c-item"></div>
|
|
|
+ <div class="c-item">100%</div>
|
|
|
+ <div class="c-item">100%</div>
|
|
|
+ <div class="c-item">100%</div>
|
|
|
+ <div class="c-item">100%</div>
|
|
|
+ <div class="c-item">100%</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -81,14 +81,16 @@ export default {
|
|
|
grid: {
|
|
|
left: 0,
|
|
|
right: 0,
|
|
|
- bottom: '0',
|
|
|
+ bottom: 0,
|
|
|
top: 0,
|
|
|
+ width: '100%',
|
|
|
height: '100%',
|
|
|
containLabel: true
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: 'category',
|
|
|
data: NAMES,
|
|
|
+ show: false,
|
|
|
axisLine: {
|
|
|
show: false,
|
|
|
lineStyle: {
|
|
|
@@ -99,14 +101,15 @@ export default {
|
|
|
axisTick: {
|
|
|
show: false,
|
|
|
length: 9,
|
|
|
- alignWithLabel: true,
|
|
|
+ alignWithLabel: false,
|
|
|
lineStyle: {
|
|
|
color: '#7DFFFD'
|
|
|
}
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- fontSize: 10
|
|
|
+ fontSize: this.EchartfontSize(10)
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: 'value',
|
|
|
@@ -124,14 +127,19 @@ export default {
|
|
|
},
|
|
|
axisLabel: {
|
|
|
show: true,
|
|
|
- fontSize: 16
|
|
|
- },
|
|
|
- boundaryGap: ['20%', '20%']
|
|
|
+ fontSize: this.EchartfontSize(10)
|
|
|
+ }
|
|
|
},
|
|
|
series: [{
|
|
|
type: 'custom',
|
|
|
renderItem: function(params, api) {
|
|
|
+ window.console.log('params', params)
|
|
|
+ window.console.log('api', api)
|
|
|
+ window['params'] = params
|
|
|
+ window['api'] = api
|
|
|
const location = api.coord([api.value(0), api.value(1)])
|
|
|
+ window.console.log('location', location)
|
|
|
+
|
|
|
return {
|
|
|
type: 'group',
|
|
|
children: [{
|
|
|
@@ -258,20 +266,40 @@ export default {
|
|
|
|
|
|
normal: {
|
|
|
show: true,
|
|
|
- position: ['100%', -10],
|
|
|
+ position: [0, '10%'],
|
|
|
formatter: (e) => {
|
|
|
- return 'value'
|
|
|
+ return e.name
|
|
|
},
|
|
|
- fontSize: 16,
|
|
|
- color: '#fff',
|
|
|
- offset: [25, 4]
|
|
|
+ fontSize: this.EchartfontSize(14),
|
|
|
+ color: '#fff'
|
|
|
}
|
|
|
},
|
|
|
itemStyle: {
|
|
|
color: 'transparent'
|
|
|
},
|
|
|
- data: MAX
|
|
|
- }]
|
|
|
+ data: VALUE
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: 'bar',
|
|
|
+ label: {
|
|
|
+
|
|
|
+ normal: {
|
|
|
+ show: true,
|
|
|
+ position: ['90%', '-100%'],
|
|
|
+ formatter: (e) => {
|
|
|
+ return e.value
|
|
|
+ },
|
|
|
+ fontSize: this.EchartfontSize(14),
|
|
|
+ color: '#fff'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ itemStyle: {
|
|
|
+ color: 'transparent'
|
|
|
+ },
|
|
|
+ data: MAX,
|
|
|
+ zlevel: 2
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -286,20 +314,27 @@ export default {
|
|
|
height: 100%;
|
|
|
display: flex;
|
|
|
|
|
|
- .l-coner{
|
|
|
+ .l-coner {
|
|
|
flex-grow: 1;
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
- .r-coner{
|
|
|
- width: 80px;
|
|
|
+
|
|
|
+ .r-coner {
|
|
|
+ width: 4vw;
|
|
|
height: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
justify-content: space-around;
|
|
|
- .c-item{
|
|
|
+
|
|
|
+ .c-item {
|
|
|
+ color: #91FFFF;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 0.75vw;
|
|
|
flex: 1;
|
|
|
flex-shrink: 0;
|
|
|
width: 100%;
|