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/03 09:41:37 UTC

[GitHub] [incubator-echarts] regrex opened a new issue #12746: Can funnel chart render data by line?

regrex opened a new issue #12746:
URL: https://github.com/apache/incubator-echarts/issues/12746


   ### What problem does this feature solve?
   The funnel chart now is render by trapezoid area. 
   Like this: 
   
   ```javascript
   option = {
       series : [
           {
               name:'converted',
               type:'funnel',
               sort: 'none',
               minSize: '10%',
               maxSize: '80%',
               data:[{
                   name: '感知',
                   value: 331
               }, {
                   name: '好奇',
                   value: 213
               }, {
                   name: '询问',
                   value: 200
               }, {
                   name: '行动',
                   value: 80
               }, {
                   name: '拥护',
                   value: 100
               }],
               itemStyle: {
                   color: '#2152d9',
               }
           }
       ]
   };
   ```
   ![5A area funnel](https://sf1-ttcdn-tos.pstatp.com/obj/motor-img/e3f075cb62a7118ff05be3f888d72bd9)
   
   How to render by trapezoid line?
   Like this: 
   ![5A line funnel](https://sf1-ttcdn-tos.pstatp.com/obj/motor-img/968c8593cd001fe5ddf3804ffa808ef5)
   
   ### What does the proposed API look like?
   `series-funnel.renderBy: 'area' || 'line'`
   
   <!-- 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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] regrex commented on issue #12746: Can funnel chart render data by line?

Posted by GitBox <gi...@apache.org>.
regrex commented on issue #12746:
URL: https://github.com/apache/incubator-echarts/issues/12746#issuecomment-638119176


   ```javascript
   option = {
       series : [
           {
               name:'converted',
               type:'funnel',
               sort: 'none',
               minSize: '10%',
               maxSize: '80%',
               label: {
                   position: 'rightTop'
               },
               data:[{
                   name: '感知',
                   value: 100
               }, {
                   name: '好奇',
                   value: 60
               }, {
                   name: '询问',
                   value: 40
               }, {
                   name: '行动',
                   value: 60
               }, {
                   name: '拥护',
                   value: 100,
                   itemStyle: {
                       height: 0,
                   }
               }],
               itemStyle: {
                   color: '#2152d9',
               }
           }
       ]
   };
   ```
   ![funnel demo](https://sf3-ttcdn-tos.pstatp.com/obj/motor-img/24041d63e59e43526ef068e01fa2297f)
   I have solved this problem by set last item height to 0. 


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


[GitHub] [incubator-echarts] regrex closed issue #12746: Can funnel chart render data by line?

Posted by GitBox <gi...@apache.org>.
regrex closed issue #12746:
URL: https://github.com/apache/incubator-echarts/issues/12746


   


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