echart字体修改

lijinlong
吕天方 1 year ago
parent 4c5be7c238
commit b8ed9f58d9

@ -88,6 +88,10 @@ export default {
return value; return value;
} }
}, },
fontSize: '13px',
fontFamily: 'Alibaba PuHuiTi',
fontWeight: 500,
color: '#525966',
}, },
axisTick: { axisTick: {
show: false, show: false,

@ -123,8 +123,11 @@ export default {
show: false, show: false,
}, },
axisLabel: { axisLabel: {
color: "#525966", show: true,
// fontFamily:'Alibaba-PuHuiTi-Medium.otf' fontSize: '13px',
fontFamily: 'Alibaba PuHuiTi',
fontWeight: 500,
color: '#525966',
}, },
axisLine: { axisLine: {
lineStyle: { lineStyle: {
@ -136,15 +139,19 @@ export default {
], ],
yAxis: [ yAxis: [
{ {
type: "value", splitLine :{ //线
// splitLine: { lineStyle:{
// show: true, type:'dashed', //线 dotted线 solid:线
// lineStyle: { },
// type: "dashed", show:true //
// color: "#B6C3D9", },
// }, axisLabel: {
// }, show: true,
z: 1, fontSize: '13px',
fontFamily: 'Alibaba PuHuiTi',
fontWeight: 500,
color: '#525966',
},
}, },
], ],
series: [ series: [
@ -167,19 +174,17 @@ export default {
z: 100, z: 100,
data: [700, 400, 600, 300, 580, 250, 490, 200, 390, 460, 90], data: [700, 400, 600, 300, 580, 250, 490, 200, 390, 460, 90],
// //
emphasis: { emphasis:{
itemStyle: { label:{
// color: "rgba(0,0,0,0.3)", show:true,
}, formatter: '{c}',
// position: 'top',
label: { fontSize: 14,
show: true, color: '#FF8C03',
position: "top", fontWeight: 'bold',
formatter: "{c}", fontFamily:'Alibaba PuHuiTi'
color: "#FF8C03", }
// fontFamily:'Alibaba-PuHuiTi-Regular.otf' }
},
},
}, },
], ],
}; };

Loading…
Cancel
Save