You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/11/19 20:28:11 UTC

[GitHub] sxmpasch commented on issue #9429: need to get axisLabel.maxLabel

sxmpasch commented on issue #9429: need to get axisLabel.maxLabel
URL: https://github.com/apache/incubator-echarts/issues/9429#issuecomment-440030817
 
 
   This is perhaps not the best way to achieve this, but you could theoretically do something like the following:
   ```
   let topPixel = myChart.getOption().grid[0].top;
   let coord=myChart.convertFromPixel({seriesIndex:0},[0,topPixel]);
   console.log(coord[1]);
   
   ```
   This example gets the top pixel coordinate from the desired grid and converts then this pixel to the corresponding series y-coordinate.
   Since we are converting PIXELS to coords, I do not know how accurate this is for your use-case...
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org