define the height of xAxis plotBands or a widht of yAxis plotBands
I need to define specific areas in my scatterplot.
It would be very helpful to have the possibility of specifying y limits for a band plotted on the x axis and the other way round (that is to specify x limits for a band plotted on the y axis) in such a way that someone can highlight delimited areas (in the form of a rectangle).
Thank you!
![](https://secure.gravatar.com/avatar/9e584be2f3ae51e28d820bc17ff26435?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
AdminPaweł Fus (Admin, Highcharts JS) commented
This is also possible using the Annotations module. Annotation is not limited in any way. Some simple demos:
- https://jsfiddle.net/BlackLabel/x0vako6c/3/ (three annotation config types)
- https://jsfiddle.net/BlackLabel/azcfb152/1/ (annotation marking x < 0 & y > 55 range) -
For Highcharts 4.1 we have implemented a new series type, polygon, that can be utilized for two-dimensional plot bands (except they don't have labels).
-
Raul Arabaolaza commented
Hi,
Just as quick comment, you can achieve that by using the renderer and the axis toPixels method: Check this fiddle as an example:
http://jsfiddle.net/raul_arabaolaza/tdkaafgw/