You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/11/05 14:39:08 UTC
[GitHub] [incubator-echarts] szu-bee commented on issue #8777: legend can
not rotate
szu-bee commented on issue #8777: legend can not rotate
URL: https://github.com/apache/incubator-echarts/issues/8777#issuecomment-549850667
I just do like this:
```js
legend: {
icon: 'none',
formatter: (name) => {
const verticalName = name.split('').join('\n')
const arr = [`{a|${verticalName}}`]
return arr.join('\n')
},
textStyle: {
rich : {
a: {
lineHeight: 20,
}
}
},
},
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org