Jump to content
Software FX Community
Sign in to follow this  
User (Legacy)

Secondary Y Axis causing Runtime exception

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

Share this post


Link to post
Share on other sites

We are unable to reproduce this problem using the latest service pack.

Can you please provide with a complete ASP that reproduces the problem.

Also, are you using the latest SP from our Support Site ?

--

FP

Software FX, Inc.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...