
如图所示,X轴坐标设置居中,echarts的折线图代码如下:
xAxis: {
type: 'category',
boundaryGap: true,
data: ['0.4', '0.5', '0.6', '0.7', '0.8',],
name: 'F{sup|prob}',
nameLocation:'middle',
axisLabel: {
textStyle: {
fontWeight: 'bold',
fontSize: 15,
}
},
nameTextStyle: {
fontWeight: 'bold', // 字体加粗
fontSize: 21, // 字体大小
padding: [9, 0, 0, 0],
rich: {
sup: {
verticalAlign: "top", // 设置为上对齐
fontSize: 15,
fontStyle: 'italic'
}
}
},
下标参考:
8523

被折叠的 条评论
为什么被折叠?



