You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/04/09 07:30:21 UTC

[GitHub] [incubator-echarts] dagundejuzi opened a new issue #10240: 希望实现对轴线名称(axis.name)更精细的设置

dagundejuzi opened a new issue #10240: 希望实现对轴线名称(axis.name)更精细的设置
URL: https://github.com/apache/incubator-echarts/issues/10240
 
 
   ### What problem does this feature solve?
   碰上的需求是:轴线名称竖向属性,位于Y轴左侧,顶端对齐Y轴顶端。如图
   ![Snip20190409_1](https://user-images.githubusercontent.com/16382880/55781149-1568b780-5adc-11e9-802b-11711d6352eb.png)
   
   现有属性不支持这样布局,使用了比较死板的方式暂时实现了相同的视觉效果。设置如下:
   `
                       name: '{a|成' '\n' '绩' '\n' '分' '\n' '数}',
                       nameLocation : 'end',
                       nameGap : -80,
                       nameTextStyle: {
                           rich: {
                               a: {
                                   color: '#fff',
                                   width:100,
                                   height:20,
                                   align:'left',
                                   verticalAlign: 'bottom',
                                   fontSize: 16,
                                   backgroundColor : '#ccc'
                               },
                           },
                       },
   `
   加上底色能看清楚点
   ![Snip20190409_2](https://user-images.githubusercontent.com/16382880/55781198-34674980-5adc-11e9-8a98-041f77452301.png)
   
   
   ### What does the proposed API look like?
   1、当前 nameLocation 表示名称与轴线平行方向上的相对位置,希望能再添加一个属性表示名称与轴线垂直方向的相对位置。
   比如:
   `
     nameLocationV: 'top'    //  middle bottom 
     nameLocationH: 'right'  //   center left 
   `
   2、希望文字能支持竖向书写。
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

----------------------------------------------------------------
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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org