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/10/14 09:52:41 UTC

[GitHub] [incubator-echarts] Ovilia opened a new pull request #11393: feat: support round cap for polar bars

Ovilia opened a new pull request #11393: feat: support round cap for polar bars
URL: https://github.com/apache/incubator-echarts/pull/11393
 
 
   Fix #4856 .
   
   ![image](https://user-images.githubusercontent.com/779050/66742578-8ed9cc00-eeaa-11e9-9d8f-ca24e8cc66a7.png)
   
   Set `roundCap` to be `true` (default `false`) for polar bars will have this effect.
   
   ```js
   var option = {
       angleAxis: {
           max: 5
       },
       radiusAxis: {
           type: 'category',
           data: ['a', 'b', 'c'],
           z: 10
       },
       polar: {
       },
       series: [{
           type: 'bar',
           data: [1, 2, 3],
           coordinateSystem: 'polar',
           name: 'A',
           roundCap: true,
           color: 'rgba(200, 0, 0, 0.5)',
           itemStyle: {
               borderColor: 'red',
               borderWidth: 1
           }
       }],
       legend: {
           show: true,
           data: ['A']
       },
       tooltip: {
           show: true
       }
   };
   ```
   
   It may also help to provide an array as `polar.radius` to make rings more easily. Currently, this can be done with empty data in the inner side:
   
   ![image](https://user-images.githubusercontent.com/779050/66742855-38b95880-eeab-11e9-9d9b-7255a50fee5d.png)
   
   This will be improved in future PRs. I'll see if I can make it in this milestone. Please ignore this feature for now.

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