Center graph baseline

Aug 30, 2012 at 8:22 PM

Hi great work.  This has been a fun and challenging experience.  I'm a novice programmer so it's taken me quite a while to get to this point but I'm stuck on a issue I can't quite figure out.  

I have an external gauging device which feeds me an XML file containing a measurement along with the upper and lower limits for the measurement.

I take this xml file and deserialize it into a class. I take the "Value" and the "Number" and add to my CompositeCollection.  I've created rectangles on the plotter which are bound to the tolerance values.

What I need help with is 1. Keeping the baseline in the center  2. Automatically adjusting the Y to keep the rectangle visual appearance the same if the tolerance values change. 

Here is a picture that might help:

https://dl.dropbox.com/u/27471187/Graph.PNG