highcharts - Rendered rectangles do not move with chart when scrolling -


i want draw rectangle on chart , have move rest of chart. however, stays rendered in pixel coordinates.

i have thought there way add annotations such in world coordinates rather screen coordinates, not able find way. such thing possible?

assuming stuck annotating in screen coordinates, event(s) need handle redraw rectangle when user zooms or scrolls?

simple example:

chart.renderer.rect(chart.xaxis[0].topixels(1432897200000),chart.yaxis[0].topixels(1.09674),14,14, 0) 

http://jsfiddle.net/bz3t79p5/

also, have had no luck using axis.topixels() setting rectangle's width , height. getting values way out of whack. there trick converting width , height world coordinates pixels?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -