如果设置了 `textStyle` 的 `baseline` 属性为 `'top'`,但是图例和文字仍然不在一条线上,可能是因为 `textStyle` 的优先级被覆盖了。可以尝试将 `textStyle` 直接设置在 `series` 中的 `label` 属性中,例如:
```
series: [{
name: '数据',
type: 'bar',
data: [10, 20, 30, 40],
label: {
show: true,
position: 'top',
textStyle: {
fontSize: 16,
baseline: 'top'
}
}
}]
```
这样就将柱状图的标签文本的基线位置设置为顶部,并且设置了字体大小为 16px。如果还是没有效果,可以尝试将 `textStyle` 直接设置在 `label` 属性中,例如:
```
series: [{
name: '数据',
type: 'bar',
data: [10, 20, 30, 40],
label: {
show: true,
position: