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 2021/11/30 02:57:50 UTC

[GitHub] [echarts] pissang edited a comment on issue #16123: nameTextStyle doesn't work

pissang edited a comment on issue #16123:
URL: https://github.com/apache/echarts/issues/16123#issuecomment-982235379


   @GirkovArpa Perhaps you can try using another dummy transparent series to display the labels `C`, `D`. Here is an example:
   ```ts
   option = {
     xAxis: {
       type: 'category',
       data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
       axisLabel: { show: false } // Not show labels on the axis.
     },
     yAxis: {
       type: 'value'
     },
     series: [
       {
         data: [120, 200, 150, 80, 70, 110, 130],
         type: 'bar',
         // Make sure bar are overlapped.
         barGap: '-100%',
         label: {
           show: true,
           position: 'top'
         }
       },
       {
         data: [120, 200, 150, 80, 70, 110, 130],
         type: 'bar',
         itemStyle: {
           color: 'transparent'
         },
         label: {
           show: true,
           position: 'insideTop',
           color: '#fff',
           fontSize: 20,
           formatter: '{b}'
         }
       }
     ]
   };
   ```
   


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

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

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