rescaling axis in chart & streaming it

L

lorraine

I have a web application that generates graphs on the fly using OWC and
data from a database.

Some of my graphs have dual axis where the max scaling of one axis
could be 1200 and the other 10. To make the graphs easier on the eye
and mind, I rescale the second axis to have a slightly higher max so
that data on the second axis looks smaller without being minicule by
sharing the same axis.

My issues is that I seem to have a run time error of sorts. If I
rescale an axis (oAxis2.Scaling.Maximum) and then display the resulting
graph by either streaming it or exporting it as an image file on the
server -- the graph is sometimes rescaled, sometimes not. Mostly the
latter.

The only solution that I have that works is to first export the image
as a file, rescale it, then export the file again.

But I really want to simply stream the file without ever having to save
it as an image on the server in the first place.

Any recommendations?

Thanks
 
A

Alvin Bruney - ASP.NET MVP

what errors are you seeing?

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
 
L

lorraine

I don't receive an actual error, only that if I attempt to stream the
graph after rescaling the axis, it doesn't display a rescaled graph.

Mainly I can only see the effects of rescaling when I export the image,
rescale the axis, and export the image again. It is as though I need to
first harden the graph before readjusting it. Just rescaling and then
exporting image doesn't work. But I don't want to have to export the
image in the first place. I'd rather stream it only.

Perhaps it's important to note that I stream the graph as
Response.BinaryWrite using GetPicture. I don't use the special object
tag since not all of my users may have owc installed.

Lorraine
 
L

lorraine

Actually by playing around with where lines were called, I was able to
make a working stream version of my export image solution....

Basically I needed to stream the image, rescale the graph, then set and
clear the response buffer before finally streaming the image again.

Lorraine
 
L

lorraine

I think part of the run time issue is that the second axis doesn't seem
to be "finalized" prior to exporting -- if that makes any since. I
suppose I'm unable to set the new scaling.maximum, because it's settled
itself to begin with?

Lorraine
 
A

Alvin Bruney - MVP ASP.NET

I think you should submit this as a bug to MS. That's what it sounds like to
me.

--
Regards,
Alvin Bruney

Shameless Author Plug
[The Microsoft Office Web Components Black Book with .NET]
www.lulu.com/owc, Amazon, Barnes & Noble etc
Forth-coming VSTO.NET
 

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