User (Legacy) Posted November 14, 2005 Report Posted November 14, 2005 I'm trying to capture the Min and Max values for the XAxis using GetScrollValue, but nothing is returned. This code is placed behind check box events that generate Constant Lines against the graph. I'd like the scale to remain the same when the user decides to generate a contant line. Instead, the Min and Max values are not captured, and the scale regenerates. Dim dmin As Double = 0 Dim dmax As Double = 0 Chart1.AxisX.GetScrollView(dmin, dmax) Chart1.AxisX.Step = [stepValue as Double] Chart1.AxisX.Zoom(dmin, dmax) Please advise... Thanks, JJN
Software FX Posted November 18, 2005 Report Posted November 18, 2005 JJN, I am sorry I don't quite understand your problem. You are getting the current scrollview and zooming to it? What does adding a constant line have to do with changing the scale? Are you changing data together with generating a constant line? Here are two methods you might want to read up on: chart1.RecalcScale(); chart1.UpdateSizeNow(); Otherwise, please rephrase your question. -c "JJN" <jnassiff@hotmail.com> wrote in message news:P8Pj4$V6FHA.472@webserver3.softwarefx.com... > I'm trying to capture the Min and Max values for the XAxis using > GetScrollValue, but nothing is returned. This code is placed behind check > box events that generate Constant Lines against the graph. I'd like the > scale to remain the same when the user decides to generate a contant line. > Instead, the Min and Max values are not captured, and the scale > regenerates. > > > Dim dmin As Double = 0 > Dim dmax As Double = 0 > Chart1.AxisX.GetScrollView(dmin, dmax) > Chart1.AxisX.Step = [stepValue as Double] > Chart1.AxisX.Zoom(dmin, dmax) > > Please advise... > > Thanks, JJN > >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.