diff --git a/src/views/yingji/echarts/completePlan.vue b/src/views/yingji/echarts/completePlan.vue index 2a11939..cadc16e 100644 --- a/src/views/yingji/echarts/completePlan.vue +++ b/src/views/yingji/echarts/completePlan.vue @@ -88,6 +88,10 @@ export default { return value; } }, + fontSize: '13px', + fontFamily: 'Alibaba PuHuiTi', + fontWeight: 500, + color: '#525966', }, axisTick: { show: false, diff --git a/src/views/yingji/home.vue b/src/views/yingji/home.vue index a997d79..bedac99 100644 --- a/src/views/yingji/home.vue +++ b/src/views/yingji/home.vue @@ -123,8 +123,11 @@ export default { show: false, }, axisLabel: { - color: "#525966", - // fontFamily:'Alibaba-PuHuiTi-Medium.otf' + show: true, + fontSize: '13px', + fontFamily: 'Alibaba PuHuiTi', + fontWeight: 500, + color: '#525966', }, axisLine: { lineStyle: { @@ -136,15 +139,19 @@ export default { ], yAxis: [ { - type: "value", - // splitLine: { - // show: true, - // lineStyle: { - // type: "dashed", - // color: "#B6C3D9", - // }, - // }, - z: 1, + splitLine :{ //网格线 + lineStyle:{ + type:'dashed', //设置网格线类型 dotted:虚线 solid:实线 + }, + show:true //隐藏或显示 + }, + axisLabel: { + show: true, + fontSize: '13px', + fontFamily: 'Alibaba PuHuiTi', + fontWeight: 500, + color: '#525966', + }, }, ], series: [ @@ -167,19 +174,17 @@ export default { z: 100, data: [700, 400, 600, 300, 580, 250, 490, 200, 390, 460, 90], //高亮的效果 - emphasis: { - itemStyle: { - // color: "rgba(0,0,0,0.3)", - }, - //每根柱子上的字 - label: { - show: true, - position: "top", - formatter: "{c}", - color: "#FF8C03", - // fontFamily:'Alibaba-PuHuiTi-Regular.otf' - }, - }, + emphasis:{ + label:{ + show:true, + formatter: '{c}', + position: 'top', + fontSize: 14, + color: '#FF8C03', + fontWeight: 'bold', + fontFamily:'Alibaba PuHuiTi' + } + } }, ], };