javascript - Highstocks: Move Renderer elements along with navigator/ Draw Trendlines -


is possible move elements added using

chart.renderer 

as update range or navigator handles?

there square in this fiddle. can shift position update navigator?

or can point me function in source code can help?

thanks

update: want draw trendlines/ fibonnacci retracements etc. based on user events. currently, draw & drag lines using chart.renderer until mouseup event, calculate x,y values of end points, delete rendered lines & add new series visually imitate rendered lines. surely not best solution. issue how remember position of user selection & show/scale same when lines in visible range.

so wondering if directly use internal "scaling" function calculates visible points of series based on current extremes.

rendered object's position basend on pixels, when use navigator, pixels "are same" object stay in same position. can catch navigator "sliding" setextremes , aftersetextremes functions , move element translate().

simple example of using translate():

obj.translate(120,20); 

http://jsfiddle.net/ne7qv/1/

only need common both elements, according expectations.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -