Jump to content
Software FX Community

Secondary Y Axis causing Runtime exception


User (Legacy)

Recommended Posts

I've got a rather complicated chart. There are 3 series. The first two are returned in a resultset from a query. Then the second one of those is reset to hidden while the third series is created.

Here is some of the code:

Chart1.OpenDataEx COD_VALUES,3,1

Chart1.CloseData COD_VALUES

Chart1.Series(0).YAxis = AXIS_Y

Chart1.Series(1).YAxis = AXIS_Y

Chart1.Series(2).YAxis = AXIS_Y2

The third series needs to be on a seperate Y axis

for i = 0 to nPoints-1

Chart1.ValueEx(1,i) = CHART_HIDDEN

Chart1.ValueEx(2,i) = CHART_HIDDEN

Next

This is where I am setting the values for series 1 to hidden and initializing the values for series 2.

Whenever I run the data for this I am getting this error:

Microsoft VBScript runtime (0x800A01FB)

An exception occurred: 'ValueEx'

/RepSierrav2/UPH2a.asp, line 223

which corresponds to the above line in red where series 2 is being initialized.

Any ideas on what could cause this? The code works fine without the multiple Y axis.

Thanks,

Drew

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...