Jump to content
Software FX Community

Large chart and font size cause truncation of X,Y axis ....


User (Legacy)
 Share

Recommended Posts

Hello,

I am currently trying to generate a bar chart at about 1200x1200. When I do

this without adjusting the font size, the chart renders fine... although,

then the chart is at 1200x1200, and the fonts are left alone, you can't read

anything... x,y axis values, label values, chart title, etc...

What I do is pass into my ASP page the width and height in the querystring.

In the ASP page, I use the following formula to adjust the font size of the

x axis, y axis, labels, and chart title:

ch/FontSizeDivider, where "ch" is the height of the chart (about 400), and

FontSizeDivider is a number to divide the incoming height value by ... in my

case, I found that a value of 45 seems to work well in relation to how big

the fonts are to the existing ChartFX graphic.

My problem occurs when I start passing values for width and height of

1200x1200. I've enclosed a test.asp page so you can run my code quickly...

just call the page like this from you URL.

test.asp?cw=400&ch=400

Note that at the values 400x400, and 800x800, the chart is fine, now do

1200x1200. Note the truncation on the X Axis and the Y Axis, as well as the

missing label from the last bar.

The interesting thing is if the output is generated as the ActiveX control,

then the chart is fine at 1200x1200, and above, but when ChartFX is changed

to output an image, that's where the problems start to happen.

Why is this happening? I've tried to mess with gap values, and everything.

I've been banging my head against a wall for one and a half days, and my

deadline for this stuff is quickly approaching.

Any help would be very much appreciated. Thanks,

Mike

Link to comment
Share on other sites

I do not get this problem using the latest Chart FX 5 service pack.

I went as far as 3000x3000 (passing by 1200x1200) and all the charts looked

fine. Nothing was clipped.

Are you running the latest SP ?

Is there a page I can hit from here (on your site) that reproduces the

problem ?

As I said, I copied your ASP page into my WEB site and it works like a

charm.

--

FP

Software FX

Link to comment
Share on other sites

The problem was with the video card setting on the server I was using. The

video card settings were at 256 colors, I bumped them to 32-bit True Color,

and the page works just fine now.

"SoftwareFX Support" <noreply@softwarefx.com> wrote in message

news:e0wDI5CGEHA.196@webserver3.softwarefx.com...

> I do not get this problem using the latest Chart FX 5 service pack.

>

> I went as far as 3000x3000 (passing by 1200x1200) and all the charts

looked

> fine. Nothing was clipped.

>

> Are you running the latest SP ?

>

> Is there a page I can hit from here (on your site) that reproduces the

> problem ?

>

> As I said, I copied your ASP page into my WEB site and it works like a

> charm.

>

> --

> FP

> Software FX

>

>

Link to comment
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.

 Share

×
×
  • Create New...