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/02/17 10:58:57 UTC

[GitHub] [incubator-echarts] sreekumarp opened a new issue #12161: Independent legends for Group charts

sreekumarp opened a new issue #12161: Independent legends for Group charts
URL: https://github.com/apache/incubator-echarts/issues/12161
 
 
   ### What problem does this feature solve?
   I need an option to show legends near to respective trends - Not in a common position (top, bottom etc).
   
   In below example, I have 2 charts. But the legend is shown on top, I want and feature to show it near to each chart.
   
   var dataAll = [
       [
           [10.0, 8.04],
           [8.0, 6.95],
           [13.0, 7.58]
       ],
       [
           [10.0, 9.14],
           [8.0, 8.14],
           [13.0, 8.74]
       ]
   ];
   
   option = {
       legend: {
         data: ['I', 'II']
       },
       grid: [
           {x: '7%', y: '7%', width: '80%', height: '40%'},
           {x2: '7%', y2: '7%', width: '80%', height: '40%'}
       ],
       xAxis: [
           {gridIndex: 0, min: 0, max: 20},
           {gridIndex: 1, min: 0, max: 20}
       ],
       yAxis: [
           {gridIndex: 0, min: 0, max: 15},
           {gridIndex: 1, min: 0, max: 15}
       ],
       series: [
           {
               name: 'I',
               type: 'scatter',
               xAxisIndex: 0,
               yAxisIndex: 0,
               data: dataAll[0]
           },
           {
               name: 'II',
               type: 'scatter',
               xAxisIndex: 1,
               yAxisIndex: 1,
               data: dataAll[1],
           }
       ]
   };
   
   ### What does the proposed API look like?
   
   Suggestions: 
   1. legend {} should have one more property to show it to respective trends.
   2. legend should have gridIndex.
   
   <!-- 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


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] Ovilia closed issue #12161: Independent legends for Group charts

Posted by GitBox <gi...@apache.org>.
Ovilia closed issue #12161: Independent legends for Group charts
URL: https://github.com/apache/incubator-echarts/issues/12161
 
 
   

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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12161: Independent legends for Group charts

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12161: Independent legends for Group charts
URL: https://github.com/apache/incubator-echarts/issues/12161#issuecomment-586936885
 
 
   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵

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


[GitHub] [incubator-echarts] Ovilia commented on issue #12161: Independent legends for Group charts

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #12161: Independent legends for Group charts
URL: https://github.com/apache/incubator-echarts/issues/12161#issuecomment-587260914
 
 
   `legend` can be an array and you can set each of their positions.
   
   ```
   legend: [{
           data: ['I']
       }, {
           data: ['II'],
           top: '50%'
   }]
   ```

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