Browse Source

Merge branch 'aiEmotion' of http://39.101.133.168:8807/hongxilin/AIxiaocaishen into aiEmotion

aiEmotion
ducaixia 4 weeks ago
parent
commit
67a2e04ac1
  1. 14
      src/views/components/emoEnergyConverter.vue

14
src/views/components/emoEnergyConverter.vue

@ -311,8 +311,8 @@ function initQXNLZHEcharts(kline, qxnlzhqData) {
type: 'bar', type: 'bar',
stack: 'total', stack: 'total',
data: middleRangeData1, data: middleRangeData1,
barWidth: '10%',
barCategoryGap: '45%',
barWidth: '20%',
barCategoryGap: '40%',
itemStyle: { itemStyle: {
normal: { normal: {
color: 'rgba(0,0,0,0)' // color: 'rgba(0,0,0,0)' //
@ -326,8 +326,8 @@ function initQXNLZHEcharts(kline, qxnlzhqData) {
type: 'bar', type: 'bar',
stack: 'total', stack: 'total',
data: middleRangeData, data: middleRangeData,
barWidth: '10%',
barCategoryGap: '45%',
barWidth: '20%',
barCategoryGap: '40%',
itemStyle: { itemStyle: {
normal: { normal: {
color: 'rgba(0,0,0,0)' // color: 'rgba(0,0,0,0)' //
@ -424,6 +424,10 @@ function initQXNLZHEcharts(kline, qxnlzhqData) {
}; };
// //
qxnlzhqEchartsInstance.setOption(option); qxnlzhqEchartsInstance.setOption(option);
//
window.addEventListener('resize', () => {
qxnlzhqEchartsInstance.resize()
})
} }
onBeforeUnmount(() => { onBeforeUnmount(() => {
@ -436,6 +440,6 @@ onBeforeUnmount(() => {
<style scoped> <style scoped>
#qxnlzhqEcharts { #qxnlzhqEcharts {
width: 100%; width: 100%;
height: 600px;
height: 700px;
} }
</style> </style>
Loading…
Cancel
Save