This commit is contained in:
2025-12-19 11:41:05 +08:00
parent 6ddecd72af
commit f0910016ae
12 changed files with 226 additions and 57 deletions

View File

@ -3,8 +3,7 @@
</template>
<script setup>
import * as echarts from "echarts";
import { fa } from "element-plus/es/locale.mjs";
import { onMounted, ref, reactive, defineProps, onUnmounted, watch, nextTick } from "vue";
import { defineProps, watch, nextTick } from "vue";
const props = defineProps({
echartsId:{
type:String,
@ -14,7 +13,8 @@ const props = defineProps({
type:Object,
default:{
list:[],
colors:[]
colors:[],
topColor:'#1bd6c2'
}
}
});
@ -64,21 +64,21 @@ function chartFn(val,x_value,color,topColor) {
axisLabel: {
show: true,
textStyle: {
color: "#333" //X轴文字颜色
color: "#fff" //X轴文字颜色
},
},
}
],
yAxis: [
{
name:'单位:元/吨',
name:'',
nameTextStyle: { color: "#fff" },
type: 'value',
splitLine: { show: false },
axisLabel: {
show: true,
textStyle: {
color: "#333" //X轴文字颜色
color: "#FFF" //X轴文字颜色
},
},
}
@ -109,7 +109,7 @@ function chartFn(val,x_value,color,topColor) {
textStyle: {
color: '#0EBBC5',
fontSize: 14,
fontWeight: 'bold'
fontWeight: 'bold',
},
formatter: '{c}'
}
@ -132,7 +132,7 @@ function chartFn(val,x_value,color,topColor) {
barGap: 0,
data: sideData1,
label: {
show: true,
show: false,
position: 'top',
textStyle: {
color: 'white',