sreekumarp opened a new issue #12159: Independent legends for Group charts
URL: https://github.com/apache/incubator-echarts/issues/12159
 
 
   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],
           }
       ]
   };
   Reference 
:https://echarts.apache.org/examples/en/editor.html?c=scatter-anscombe-quartet
   
   What does the proposed API look like?
   Suggestions:
   
   legend {} should have one more property to show it to respective trends.
   legend {} should have gridIndex.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to