SanLeen opened a new issue, #19669:
URL: https://github.com/apache/echarts/issues/19669

   ### What problem does this feature solve?
   
   some way to limit graphic's render scope to grid
   
   <img width="769" alt="demo" 
src="https://github.com/apache/echarts/assets/22147095/f2ea81de-bbb1-4acd-b36e-3a1f3bd722a9";>
   
   ### demo code
   ```
   option = {
     graphic: [
       {
         type: 'circle',
         x: 100,
         y: 350,
         shape: {
           r: 100,
         },
         style: { fill: '#0000aa' },
       }
     ],
     grid: [
       {
         bottom:300,
       },
       {
         height: 220,
         bottom: 30,
       }
     ],
     xAxis: [
       {
         type: 'category',
         data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
       },
       {
         gridIndex: 1,
         type: 'category',
         data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
       },
     ],
     yAxis: [
       {
         type: 'value',
       },
       {
         gridIndex: 1,
         type: 'value',
       }
     ],
     series: [
       {
         data: [150, 230, 224, 218, 135, 147, 260],
         type: 'line'
       },
       {
         xAxisIndex: 1,
         yAxisIndex: 1,
         data: [150, 230, 224, 218, 135, 147, 260],
         type: 'line'
       }
     ]
   };
   ```
   
   
   ### What does the proposed API look like?
   
   ```javascript
   setOption({
     ...,
     graphic: [
       {
         type: 'circle',
         x: 100,
         y: 350,
         gridIndex: 1,  // 👈 sincerely hope to add this api 
         shape: {
           r: 100,
         },
         style: { fill: '#0000aa' },
       }
     ],
   });
   ```


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

To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to