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 2022/02/17 13:02:37 UTC

[GitHub] [echarts] RavalikaP opened a new issue #16533: Bar Position: Can we get the x,y,width and height of a particular bar?

RavalikaP opened a new issue #16533:
URL: https://github.com/apache/echarts/issues/16533


   ### What problem does this feature solve?
   
   I want to add one graphic element on top, left, right (it can be any position). I want to add graphic elements on particular bar based on index or value. So, do we get the position of the bar to add graphic element.
   
   ### What does the proposed API look like?
   
   Adding graphic element on top of bars.


-- 
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] plainheart commented on issue #16533: Bar Position: Can we get the x,y,width and height of a particular bar?

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


   Just as I said before, you still can get the elements via internal APIs.
   ```js
   // get the series model
   const model = myChart.getModel().getSeriesByIndex(0); // `getSeriesByType`/`getSeriesByName` is available
   // get the series view
   const view = myChart.getViewOfSeriesModel(model);
   // get the element group
   const group = view.group;
   // get all the elements in the group
   const elements = view.group.childrenRef();
   // get the bounding rectangle of one element
   const boundingRect = elements[0].getBoundingRect();
   ```


-- 
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] RavalikaP commented on issue #16533: Bar Position: Can we get the x,y,width and height of a particular bar?

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


   @plainheart, In case of line chart how we will be adding?
   


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