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 2020/06/19 03:18:20 UTC

[GitHub] [incubator-echarts] yanheSu commented on issue #12827: 在series中使用label 的formatter属性
无法换行

yanheSu commented on issue #12827:
URL: https://github.com/apache/incubator-echarts/issues/12827#issuecomment-646412590


   ```javascript
   label: {
     show: true,
     position: 'top',
     fontSize: 14,
     align: 'center',
     formatter(params) {
       let { value, name } = params;
       return `${name} \n ${value}`;
     }
   }
   ```
   也许你可以 试试 使用 `\n` 替换 `<br />`
   


----------------------------------------------------------------
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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org