Server Side Chart-Different Scales for Y axes-What Could be Wrong

P

Pat McNulty

I have looked on this site & many others at how to put
different scales for each Y-axis when there are 2.

I have even been able to get it to work using VB on my
computer with Microsoft provided sample code. (I am using
owc10.chartspace for the server side work & <object> with
a classid for the VB version, but I need it to work
serverside)

I need to make it work server side using ASP, and no
matter what I do, both Y axes pick either one or the other
scale.

Code:

'series 1
oSer2.SetData c.chDimSeriesNames, c.chDataLiteral, "Sales
Qty"
oSer2.SetData c.chDimCategories, c.chDataLiteral, Qarray
oSer2.SetData c.chDimValues, c.chDataLiteral , qty

'series 2
oSerASP.SetData c.chDimSeriesNames, c.chDataLiteral, "ASP"
oSerASP.SetData c.chDimCategories, c.chDataLiteral, Qarray
oSerASP.SetData c.chDimValues, c.chDataLiteral , ASP

Dim oAxis2
Dim oAxis1

'set left axis & put a scale max & min (not req'd)
Set oAxis1 = objChart.Axes(c.chAxisPositionLeft)
oAxis1.Scaling.Maximum = 100000000
oAxis1.Scaling.Minimum = 1000000

'ungroup series 2 so it can have a separate scale on right
Y-axis
oSerASP.Ungroup True

'add right Y axis with series 2 scale
Set oAxis2 = objChart.Axes.Add(oSerASP.Scalings
(c.chDimValues))
oAxis2.Position = c.chAxisPositionRight

'adjust scale max & min for axis 2
oAxis2.Scaling.Maximum = 80
oAxis2.Scaling.Minimum = 0
 
P

Pat McNulty

Yes, exactly that, serverside using ASP, I can get a
secondary axis, but I cannot change the scale of that axis
to be different from the first Y axis using
OWC10.Chartspace (or OWC11) & saving the graph as a GIF.
HOWEVER, when I save a sample from Microsoft that uses

<object id="ChartSpace1" classid="CLSID:0002E556-0000-0000-
C000-000000000046"></object> as ASP, it works.
It shows both scales, but I need to save as GIF because I
can't antipate people having OWC on their computers.

Hope this helps?
-----Original Message-----
I don't seem to understand the question. Are you having
problem setting up the code to work on server-side via
ASP? Are you having problem setting the new Y-axis
scalings?
 
T

Thao Moua [ms]

I ran your code and it worked for both 10/11 versions. Verify you're not using OWC9 as in OWC9 we don't support multiple axis with different scaling. How is the OWC control created in your ASP page? If you instantiated the control in an object tag, please verify the control classid is the correct version. If you instantiate the control via Server.CreateObject() make sure it i
Server.CreateObject("owc10.Chartspace"
o
Server.CreateObject("owc11.Chartspace")

CreateObject("owc.chart") is for OWC9

Thao Mou
OWC Webchart Suppor

This posting is provided "AS IS" with no warranties, and
confers no rights. Use of included script samples are
subject to the terms specified at
http://www.microsoft.com/info/cpyright.ht

----- Pat McNulty wrote: ----

Yes, exactly that, serverside using ASP, I can get a
secondary axis, but I cannot change the scale of that axis
to be different from the first Y axis using
OWC10.Chartspace (or OWC11) & saving the graph as a GIF.
HOWEVER, when I save a sample from Microsoft that uses

<object id="ChartSpace1" classid="CLSID:0002E556-0000-0000
C000-000000000046"></object> as ASP, it works
It shows both scales, but I need to save as GIF because I
can't antipate people having OWC on their computers

Hope this helps
-----Original Message----
I don't seem to understand the question. Are you having
problem setting up the code to work on server-side via
ASP? Are you having problem setting the new Y-axis
scalings
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top