Fit to contents in Y direction

Apr 10, 2011 at 12:12 PM


Is there a way to make the graph fit to the contents in the Y direction?

I am making a stockchart and would like to be able to zoom only in the X (Time) direction.


As mentioned earlier the stockgraph gets very sluggish with 1000+ markers in it, zooming and panning: I shoul probably switch to one marker/week when the graph contains >one year of data.

Thanks for a nice lib.

Apr 10, 2011 at 12:29 PM

I guess this could be made with a converter that takes the List<IEODDataPoints> and the chart rect. Then it would be easy to calculate the lowest IEODDataPoints.Low and the highest IEODDataPoints.High and set the graph rect.

Two problems with this:

  1. I dont know what rect to use.
  2. It would be nice to intercept the mouswheel or panning so it does not change the Y before, guess that would lead to flicker.