tags:

views:

115

answers:

0

Hi, I display a stock price chart with ZedGraph, hence using the Y2Axis and XAxis. When I resize by dragging mouse in right corners, or right edge of form, I would like left side of XAxis to shift along with the resize, such that the bar width and bar spacing remain constant. So a drag should make me see more or less candlesticks, instead of expanding or compacting the bars. How do I achieve this? (In the Y-direction it's ok, as it auto-scales, which is fine).

Btw, I use mostly intraday time frames, so the bar interval may be anything from 1 min up to daily or weekly bars.

Cheers!


EDIT: Ok.. I fixed it by manually code the scale.min/max on resize event. Don't think there are auto-settings that gives this behavior.