echarts 修改legend字型顏色、x軸或y軸文字字型顏色改變
阿新 • • 發佈:2019-02-06
修改legend字型顏色:
legend: {
y:'55%',
textStyle:{
fontSize: 18,//字型大小
color: '#ffffff'//字型顏色
},
data: []
}
修改x軸字型顏色:
xAxis : [ { type : 'category', data : [], axisLabel: { show: true, textStyle: { color: '#ffffff' } } } ]
修改y軸字型顏色:
yAxis : [ { type : 'value', name : '', axisLabel : { textStyle: { color: '#ffffff' } } } ]