|
problem in interactive finance chart in trace |
Posted by Mohamed Wahab on Dec-03-2012 22:27 |
|
Hello
in first i run interactive finance chart and all functionality , and i add trace
function traceFinance(viewer, mouseX) {} to show trace .. the function is completly run
successfully ..
but i use above of chart mega menu (jquery menu) that open panel and close like picture ..
the trace of chart affect with open and close like in picture ..
i want to fix trace in whole chart ! when chart move down , trace move down not fix in all
page ?!
how ?
|
Re: problem in interactive finance chart in trace |
Posted by Peter Kwan on Dec-04-2012 01:33 |
|
Hi Mohamed,
I suspect when the panel opens, it pushes the chart image down, but it does not push the legend down. (The legend are separate HTML elements created in the traceFinance Javascript function.)
If you move the mouse over the chart, does the track line display normally, and does the legend move back to the expected place?
I am not sure why the panel pushes the chart image down, and why it does not push the other HTML elements for the legend box down. If moving the mouse over the finance chart can move the legend back to the expected place, that means calling "trackFinance" again to redraw the legend box can solve the problem. In this case, when the panel opens or closes, please call the traceFinance again after the panel has opened or closed, so as to move the legend to the correct place. (Because traceFinance requires an x-coordinate to draw the track line, you may need to save the last x-coordinate used so that you can redraw the track line later when the panel opens or closes.)
Regards
Peter Kwan |
|