I have two text boxes where the user enters the X and Y location. Using this
information i need to zoom to that datapoint or curve in the graph. Any inputs
and code samples will be appreciated.
You could do something like this:
double x = 9.9;
double y = 12.1;
double spacing = 5.0;
zgc.GraphPane.XAxis.Scale.Min = x - spacing;
zgc.GraphPane.XAxis.Scale.Max = x + spacing;
zgc.GraphPane.YAxis.Scale.Min = y - spacing;
zgc.GraphPane.YAxis.Scale.Max = y + spacing;
I don't know if 'spacing' is the correct word, english isn't my native language ;)
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.