Jump to content
Software FX Community

Capturing X and Y Axis MIN/MAX values


User (Legacy)

Recommended Posts

Having a real hard time whith this...The user can select from two categories 

of data to dynamically generate an XY Scatter Plot. When the user adjusts

the X and Y Axis MIN and MAX values, I'd like to capture that information so

that when the user regenerates the data, I can keep that scale.

I can't seem to capture the data, as the scale is always reset. Here's the

code:

Private Sub btn_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Handles btn.Click

If Chart1.NValues > 0 Then

iXMin = Chart1.AxisX.Min <<Supposed to be 3, instead reset to 0

iXMax = Chart1.AxisX.Max <<Supposed to be 8, instead reset to 5

iYMin = Chart1.AxisY.Min

iYMax = Chart1.AxisY.Max

bSetAxes = True

End If

LoadChart()

GenerateStats()

If bSetAxes Then

Chart1.AxisX.Min = iXMin

Chart1.AxisX.Max = iXMax

Chart1.AxisY.Min = iYMin

Chart1.AxisY.Max = iYMax

End If

End Sub

Any suggestions?

Regards,

JJN

- If you change the Axis minimums and maximums and then regenerate

the chart to add Median, Decile or Quartile, the changes should not have to

be re-applied.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...