Nevron Forum

Drag the chart

https://www.nevron.com/Forum/Topic6176.aspx

By Enjoyear Guo - Tuesday, February 28, 2012

Hi,

I am working with financial charts.
I want to pan the chart view to see the historical/future stock prices. Is there any way to move the chart left/right or up/down without using the scroll bar. I want to enable the user to use mouse to drag the chart left/right or up/down instead. That's a normal feature in any trading software.
Thank you very much!

Enjoyear
By Nevron Support - Tuesday, February 28, 2012

Hi Enjoyear,

Check out the NDataPanTool example - All Examples\Interactivity\Tools\Data Pan Tool - it allows you to move the currently zoomed x/y range with the mouse.

By Enjoyear Guo - Tuesday, February 28, 2012

Hi,

Those examples are to drag the chart left/right by dragging on the scroll bar. What I want is to drag on the chart itself to pan left/right. I will make the scroll bar invisible in my user interface. Is that possible?? Many Thanks.

Best,
Enjoyear
By Nevron Support - Tuesday, February 28, 2012

Hi Enjoyear,

You should click with right mouse button (this is configurable btw) over the chart and start dragging...