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 2021/09/26 09:51:51 UTC

[GitHub] [echarts] cx690 opened a new issue #15789: The series-custom.renderItem.return_rect.info look like can't work!

cx690 opened a new issue #15789:
URL: https://github.com/apache/echarts/issues/15789


   ### Version
   5.2.1
   
   ### Steps to reproduce
   ```javascript
   const myChart = echarts.init(document.getElementById('main'));
           const option = {
               xAxis: {
                   type: 'value',
               },
               yAxis: {
                   type: 'value',
               },
               series: [
                   {
                       type: 'custom',
                       data: [[1, 2]],
                       renderItem(params, api) {
                           return {
                               type: 'rect',
                               shape: {
                                   x: 100,
                                   y: 100,
                                   width: 100,
                                   height: 100,
                               },
                               info: { a: '23' },
                               style: {
                                   fill: 'red',
                               },
                           }
                       }
                   }
               ]
           }
           myChart.setOption(option);
           myChart.on('click', params => {
               console.log(params.info);//When i click the rect,i get undefined.
           })
   ```
   
   ### What is expected?
   series-custom.renderItem.return_rect.info;
   console:{ a: '23' }
   
   ### What is actually happening?
   params.info is undefined;
   The same as others.(group,circle and so on.)
   
   <!-- 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.

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

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] [echarts] echarts-bot[bot] commented on issue #15789: The series-custom.renderItem.return_rect.info look like can't work!

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15789:
URL: https://github.com/apache/echarts/issues/15789#issuecomment-927273133


   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 it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   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 question.
   
   If you are interested in the project, you may also subscribe to our [mailing 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.

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

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] [echarts] Ovilia commented on issue #15789: The series-custom.renderItem.return_rect.info look like can't work!

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #15789:
URL: https://github.com/apache/echarts/issues/15789#issuecomment-929979780


   Seems to be a bug.


-- 
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-unsubscribe@echarts.apache.org

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] [echarts] Ovilia commented on issue #15789: The series-custom.renderItem.return_rect.info look like can't work!

Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #15789:
URL: https://github.com/apache/echarts/issues/15789#issuecomment-929979780


   Seems to be a bug.


-- 
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-unsubscribe@echarts.apache.org

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] [echarts] cx690 commented on issue #15789: The series-custom.renderItem.return_rect.info look like can't work!

Posted by GitBox <gi...@apache.org>.
cx690 commented on issue #15789:
URL: https://github.com/apache/echarts/issues/15789#issuecomment-927441818


   It also is undefined in tooltip.formatter.


-- 
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-unsubscribe@echarts.apache.org

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