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/09/10 03:17:17 UTC

[GitHub] [incubator-echarts] TemptationParadise opened a new issue #13259: dynamic multiple titles auto fit in a multiple funnel chart?在一个多图漏斗图中,如何让多个title自适应展示?

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


   ### What problem does this feature solve?
   multiple titles will be beautiful
   
   ### What does the proposed API look like?
   funnel chart option is down below right here:
   
   
   ![image](https://user-images.githubusercontent.com/21994378/92676673-a8062980-f354-11ea-8dfd-9d04ba9da1e2.png)
   
   
   funnel chart option is down below right here:
   
   
   option = {
   "tooltip":{
   "trigger":"item"
   },
   "legend":{
   "data":[
   "详情页uv",
   "yyy",
   "哈哈哈哈",
   "订单uv",
   "商品发布24小时之内成交的商品数"
   ],
   "type":"scroll"
   },
   "series":[
   {
   "name":"其他分类",
   "type":"funnel",
   "width":"45%",
   "left":"0%",
   "sort":"none",
   "label":{
   "position":"inside"
   },
   "data":[
   {
   "name":"详情页uv",
   "value":"193661",
   "transformRatio":"99.14%"
   },
   {
   "name":"yyy",
   "value":"191990",
   "transformRatio":"2.98%"
   },
   {
   "name":"哈哈哈哈",
   "value":"5730",
   "transformRatio":"70.84%"
   },
   {
   "name":"订单uv",
   "value":"4059",
   "transformRatio":"41.17%"
   },
   {
   "name":"商品发布24小时之内成交的商品数",
   "value":"1671",
   "transformRatio":"0%"
   }
   ]
   },
   {
   "name":"手机",
   "type":"funnel",
   "width":"45%",
   "left":"50%",
   "sort":"none",
   "label":{
   "position":"inside"
   },
   "data":[
   {
   "name":"详情页uv",
   "value":"602805",
   "transformRatio":"98.37%"
   },
   {
   "name":"yyy",
   "value":"592960",
   "transformRatio":"6.97%"
   },
   {
   "name":"哈哈哈哈",
   "value":"41351",
   "transformRatio":"76.19%"
   },
   {
   "name":"订单uv",
   "value":"31506",
   "transformRatio":"31.25%"
   },
   {
   "name":"商品发布24小时之内成交的商品数",
   "value":"9845",
   "transformRatio":"0%"
   }
   ]
   }
   ],
   "title":[
   {
   "text":"其他分类",
   "top":"bottom",
   "textStyle":{
   "fontFamily":"sans-serif",
   "fontSize":"18"
   },
   "left":"22.5%"
   },
   {
   "text":"手机",
   "top":"bottom",
   "textStyle":{
   "fontFamily":"sans-serif",
   "fontSize":"18"
   },
   "left":"72.5%"
   }
   ]
   };
   
   <!-- 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] 100pah edited a comment on issue #13259: dynamic multiple titles auto fit in a multiple funnel chart?在一个多图漏斗图中,如何让多个title自适应展示?

Posted by GitBox <gi...@apache.org>.
100pah edited a comment on issue #13259:
URL: https://github.com/apache/incubator-echarts/issues/13259#issuecomment-695216878






----------------------------------------------------------------
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] TemptationParadise closed issue #13259: dynamic multiple titles auto fit in a multiple funnel chart?在一个多图漏斗图中,如何让多个title自适应展示?

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


   


----------------------------------------------------------------
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] TemptationParadise commented on issue #13259: dynamic multiple titles auto fit in a multiple funnel chart?在一个多图漏斗图中,如何让多个title自适应展示?

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


   ![image](https://user-images.githubusercontent.com/21994378/93748919-99a8ef00-fc2b-11ea-987a-79ea0260eab9.png)
   
   
   > Try
   > [title.textAlign](https://echarts.apache.org/en/option.html#title.textAlign): center
   
   not work


----------------------------------------------------------------
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] pissang commented on issue #13259: dynamic multiple titles auto fit in a multiple funnel chart?在一个多图漏斗图中,如何让多个title自适应展示?

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


   Not sure how you did it. I tried it and it works
   
   ```js
   option = {
       "tooltip": {
           "trigger": "item"
       },
       "legend": {
           "data": [
               "详情页uv",
               "yyy",
               "哈哈哈哈",
               "订单uv",
               "商品发布24小时之内成交的商品数"
           ],
           "type": "scroll"
       },
       "series": [{
               "name": "其他分类",
               "type": "funnel",
               "width": "45%",
               "left": "0%",
               "sort": "none",
               "label": {
                   "position": "inside"
               },
               "data": [{
                       "name": "详情页uv",
                       "value": "193661",
                       "transformRatio": "99.14%"
                   },
                   {
                       "name": "yyy",
                       "value": "191990",
                       "transformRatio": "2.98%"
                   },
                   {
                       "name": "哈哈哈哈",
                       "value": "5730",
                       "transformRatio": "70.84%"
                   },
                   {
                       "name": "订单uv",
                       "value": "4059",
                       "transformRatio": "41.17%"
                   },
                   {
                       "name": "商品发布24小时之内成交的商品数",
                       "value": "1671",
                       "transformRatio": "0%"
                   }
               ]
           },
           {
               "name": "手机",
               "type": "funnel",
               "width": "45%",
               "left": "50%",
               "sort": "none",
               "label": {
                   "position": "inside"
               },
               "data": [{
                       "name": "详情页uv",
                       "value": "602805",
                       "transformRatio": "98.37%"
                   },
                   {
                       "name": "yyy",
                       "value": "592960",
                       "transformRatio": "6.97%"
                   },
                   {
                       "name": "哈哈哈哈",
                       "value": "41351",
                       "transformRatio": "76.19%"
                   },
                   {
                       "name": "订单uv",
                       "value": "31506",
                       "transformRatio": "31.25%"
                   },
                   {
                       "name": "商品发布24小时之内成交的商品数",
                       "value": "9845",
                       "transformRatio": "0%"
                   }
               ]
           }
       ],
       "title": [{
               "text": "其他分类",
               "top": "bottom",
                   textAlign: 'center',
               "textStyle": {
                   "fontFamily": "sans-serif",
                   "fontSize": "18"
               },
               "left": "22.5%"
           },
           {
               "text": "手机",
               "top": "bottom",
                   textAlign: 'center',
               "textStyle": {
                   "fontFamily": "sans-serif",
                   "fontSize": "18"
               },
               "left": "72.5%"
           }
       ]
   }
   ```


----------------------------------------------------------------
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] TemptationParadise commented on issue #13259: dynamic multiple titles auto fit in a multiple funnel chart?在一个多图漏斗图中,如何让多个title自适应展示?

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






----------------------------------------------------------------
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] TemptationParadise commented on issue #13259: dynamic multiple titles auto fit in a multiple funnel chart?在一个多图漏斗图中,如何让多个title自适应展示?

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


   > Not sure how you did it. I tried it and it works
   > 
   > ```js
   > option = {
   >     "tooltip": {
   >         "trigger": "item"
   >     },
   >     "legend": {
   >         "data": [
   >             "详情页uv",
   >             "yyy",
   >             "哈哈哈哈",
   >             "订单uv",
   >             "商品发布24小时之内成交的商品数"
   >         ],
   >         "type": "scroll"
   >     },
   >     "series": [{
   >             "name": "其他分类",
   >             "type": "funnel",
   >             "width": "45%",
   >             "left": "0%",
   >             "sort": "none",
   >             "label": {
   >                 "position": "inside"
   >             },
   >             "data": [{
   >                     "name": "详情页uv",
   >                     "value": "193661",
   >                     "transformRatio": "99.14%"
   >                 },
   >                 {
   >                     "name": "yyy",
   >                     "value": "191990",
   >                     "transformRatio": "2.98%"
   >                 },
   >                 {
   >                     "name": "哈哈哈哈",
   >                     "value": "5730",
   >                     "transformRatio": "70.84%"
   >                 },
   >                 {
   >                     "name": "订单uv",
   >                     "value": "4059",
   >                     "transformRatio": "41.17%"
   >                 },
   >                 {
   >                     "name": "商品发布24小时之内成交的商品数",
   >                     "value": "1671",
   >                     "transformRatio": "0%"
   >                 }
   >             ]
   >         },
   >         {
   >             "name": "手机",
   >             "type": "funnel",
   >             "width": "45%",
   >             "left": "50%",
   >             "sort": "none",
   >             "label": {
   >                 "position": "inside"
   >             },
   >             "data": [{
   >                     "name": "详情页uv",
   >                     "value": "602805",
   >                     "transformRatio": "98.37%"
   >                 },
   >                 {
   >                     "name": "yyy",
   >                     "value": "592960",
   >                     "transformRatio": "6.97%"
   >                 },
   >                 {
   >                     "name": "哈哈哈哈",
   >                     "value": "41351",
   >                     "transformRatio": "76.19%"
   >                 },
   >                 {
   >                     "name": "订单uv",
   >                     "value": "31506",
   >                     "transformRatio": "31.25%"
   >                 },
   >                 {
   >                     "name": "商品发布24小时之内成交的商品数",
   >                     "value": "9845",
   >                     "transformRatio": "0%"
   >                 }
   >             ]
   >         }
   >     ],
   >     "title": [{
   >             "text": "其他分类",
   >             "top": "bottom",
   >                 textAlign: 'center',
   >             "textStyle": {
   >                 "fontFamily": "sans-serif",
   >                 "fontSize": "18"
   >             },
   >             "left": "22.5%"
   >         },
   >         {
   >             "text": "手机",
   >             "top": "bottom",
   >                 textAlign: 'center',
   >             "textStyle": {
   >                 "fontFamily": "sans-serif",
   >                 "fontSize": "18"
   >             },
   >             "left": "72.5%"
   >         }
   >     ]
   > }
   > ```
   
   orz!!!cool!!!thank you!!!mogul


----------------------------------------------------------------
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] 100pah commented on issue #13259: dynamic multiple titles auto fit in a multiple funnel chart?在一个多图漏斗图中,如何让多个title自适应展示?

Posted by GitBox <gi...@apache.org>.
100pah commented on issue #13259:
URL: https://github.com/apache/incubator-echarts/issues/13259#issuecomment-695216878


   可设置 
   [title.textAlign](https://echarts.apache.org/en/option.html#title.textAlign): center


----------------------------------------------------------------
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] TemptationParadise removed a comment on issue #13259: dynamic multiple titles auto fit in a multiple funnel chart?在一个多图漏斗图中,如何让多个title自适应展示?

Posted by GitBox <gi...@apache.org>.
TemptationParadise removed a comment on issue #13259:
URL: https://github.com/apache/incubator-echarts/issues/13259#issuecomment-695989010


   > Try
   > [title.textAlign](https://echarts.apache.org/en/option.html#title.textAlign): center
   
   
   not work


----------------------------------------------------------------
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] TemptationParadise commented on issue #13259: dynamic multiple titles auto fit in a multiple funnel chart?在一个多图漏斗图中,如何让多个title自适应展示?

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


   > Not sure how you did it. I tried it and it works
   > 
   > ```js
   > option = {
   >     "tooltip": {
   >         "trigger": "item"
   >     },
   >     "legend": {
   >         "data": [
   >             "详情页uv",
   >             "yyy",
   >             "哈哈哈哈",
   >             "订单uv",
   >             "商品发布24小时之内成交的商品数"
   >         ],
   >         "type": "scroll"
   >     },
   >     "series": [{
   >             "name": "其他分类",
   >             "type": "funnel",
   >             "width": "45%",
   >             "left": "0%",
   >             "sort": "none",
   >             "label": {
   >                 "position": "inside"
   >             },
   >             "data": [{
   >                     "name": "详情页uv",
   >                     "value": "193661",
   >                     "transformRatio": "99.14%"
   >                 },
   >                 {
   >                     "name": "yyy",
   >                     "value": "191990",
   >                     "transformRatio": "2.98%"
   >                 },
   >                 {
   >                     "name": "哈哈哈哈",
   >                     "value": "5730",
   >                     "transformRatio": "70.84%"
   >                 },
   >                 {
   >                     "name": "订单uv",
   >                     "value": "4059",
   >                     "transformRatio": "41.17%"
   >                 },
   >                 {
   >                     "name": "商品发布24小时之内成交的商品数",
   >                     "value": "1671",
   >                     "transformRatio": "0%"
   >                 }
   >             ]
   >         },
   >         {
   >             "name": "手机",
   >             "type": "funnel",
   >             "width": "45%",
   >             "left": "50%",
   >             "sort": "none",
   >             "label": {
   >                 "position": "inside"
   >             },
   >             "data": [{
   >                     "name": "详情页uv",
   >                     "value": "602805",
   >                     "transformRatio": "98.37%"
   >                 },
   >                 {
   >                     "name": "yyy",
   >                     "value": "592960",
   >                     "transformRatio": "6.97%"
   >                 },
   >                 {
   >                     "name": "哈哈哈哈",
   >                     "value": "41351",
   >                     "transformRatio": "76.19%"
   >                 },
   >                 {
   >                     "name": "订单uv",
   >                     "value": "31506",
   >                     "transformRatio": "31.25%"
   >                 },
   >                 {
   >                     "name": "商品发布24小时之内成交的商品数",
   >                     "value": "9845",
   >                     "transformRatio": "0%"
   >                 }
   >             ]
   >         }
   >     ],
   >     "title": [{
   >             "text": "其他分类",
   >             "top": "bottom",
   >                 textAlign: 'center',
   >             "textStyle": {
   >                 "fontFamily": "sans-serif",
   >                 "fontSize": "18"
   >             },
   >             "left": "22.5%"
   >         },
   >         {
   >             "text": "手机",
   >             "top": "bottom",
   >                 textAlign: 'center',
   >             "textStyle": {
   >                 "fontFamily": "sans-serif",
   >                 "fontSize": "18"
   >             },
   >             "left": "72.5%"
   >         }
   >     ]
   > }
   > ```
   
   orz!!!cool!!!thank you!!!mogul


----------------------------------------------------------------
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] TemptationParadise closed issue #13259: dynamic multiple titles auto fit in a multiple funnel chart?在一个多图漏斗图中,如何让多个title自适应展示?

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


   


----------------------------------------------------------------
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] TemptationParadise removed a comment on issue #13259: dynamic multiple titles auto fit in a multiple funnel chart?在一个多图漏斗图中,如何让多个title自适应展示?

Posted by GitBox <gi...@apache.org>.
TemptationParadise removed a comment on issue #13259:
URL: https://github.com/apache/incubator-echarts/issues/13259#issuecomment-695989010


   > Try
   > [title.textAlign](https://echarts.apache.org/en/option.html#title.textAlign): center
   
   
   not work


----------------------------------------------------------------
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] TemptationParadise commented on issue #13259: dynamic multiple titles auto fit in a multiple funnel chart?在一个多图漏斗图中,如何让多个title自适应展示?

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


   > Try
   > [title.textAlign](https://echarts.apache.org/en/option.html#title.textAlign): center
   
   
   not work


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