wangyx233 opened a new issue #11764: Sunburst  series.levels.label. formatter 
not work
URL: https://github.com/apache/incubator-echarts/issues/11764
 
 
   ### Version
   4.1.0-rc.2
   
   ### Steps to reproduce
   Set series.levels each level‘s label formatter
   
   ### What is expected?
   format work
   
   ### What is actually happening?
   format not work
   
   ---
   Set series.data.label or series.label formatter, these all work well, but 
levels label formatter not.
   Test use official example, like 
https://www.echartsjs.com/examples/zh/editor.html?c=sunburst-drink
   
       series: {
           type: 'sunburst',
           highlightPolicy: 'ancestor',
           data: data,
           radius: [0, '95%'],
           sort: null,
           levels: [{}, {
               r0: '15%',
               r: '35%',
               itemStyle: {
                   borderWidth: 2
               },
               label: {
                   rotate: 'tangential',
                   formatter: (params) => {
                       return params.name.slice(0, 1)
                   }
               }
           }, {
               r0: '35%',
               r: '70%',
               label: {
                   align: 'right',
                   formatter: (params) => {
                       return params.name.slice(0, 2)
                   }
                   
               }
           }, {
               r0: '70%',
               r: '72%',
               label: {
                   position: 'outside',
                   padding: 3,
                   silent: false,
                   formatter: (params) => {
                       return params.name.slice(0, 3)
                   }
               },
               itemStyle: {
                   borderWidth: 3
               }
           }]
       }
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. 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:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to