option = {
polar: {
radiusAxis: {
type: 'category',
data: ['A', 'B', 'C', 'D', 'E'],
axisPointer: {
show: true,
type: 'line',
label: {
show: true,
formatter: '{value}',
precision: 2,
backgroundColor: 'rgba(0,0,0,0.7)',
color: '#fff',
padding: [5, 10],
borderRadius: 3,
shadowBlur: 5,
shadowColor: 'rgba(0, 0, 0, 0.5)',
textStyle: { // 文字样式配置
fontSize: 12,
fontWeight: 'bold',
fontStyle: 'italic',
color: 'yellow',
// 其他文字样式配置...
},
// 其他样式配置...
},
// 其他配置...
},
// 其他配置...
},
// 其他配置...
},
// 其他配置...
};
在上述代码中,通过 textStyle 属性配置了文字样式,包括字体大小、粗细、风格、颜色等。你可以根据需要调整这些属性,以满足你的设计要求。
转载请注明出处:http://www.pingtaimeng.com/article/detail/5255/ECharts