Jump to content
Software FX Community

No X axis drawn when using Inverted X axis and ForceZero=false


User (Legacy)

Recommended Posts

I have an XYplot where I set the following prior to calling CloseData.

chart1.AxisX.AutoScale = true;

chart1.AxisX.Inverted = true;

chart1.AxisX.ForceZero = true;

The X axis is drawn properly.

If I don't force it to zero

chart1.AxisX.ForceZero = false;

Then the X axis is not drawn at all! The data sems to be charted as if

forceZero is false, but there's just no X axis. I've tried fiddling with all

sorts of settings but I cannot get the X axis to show up. Is this a bug, or

am I missing something?

Thanks

Mitch

Link to comment
Share on other sites

Make sure you do:

chart1.AxisX.ForceZero = false

BEFORE setting your data (before Open and CloseData).

Also, if for example, all of your values are the same, the Min and Max will

end-up being the same and therefore there will be nothing to draw.

If you can't still find the problem using these hints, please attach a

binary file of the chart (use Export with FileFormat.Binary) to you next

posting.

--

FP

Software FX

Link to comment
Share on other sites

I'm still having the problem even with setting ForceZero = false directly

before OpenData. I've attache a binary formatted file of the chart.

Thanks for your help.

Mitch

Could you give me a little more info on how to

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

news:7B4B1TUBEHA.196@webserver3.softwarefx.com...

> Make sure you do:

>

> chart1.AxisX.ForceZero = false

>

> BEFORE setting your data (before Open and CloseData).

>

> Also, if for example, all of your values are the same, the Min and Max

will

> end-up being the same and therefore there will be nothing to draw.

>

> If you can't still find the problem using these hints, please attach a

> binary file of the chart (use Export with FileFormat.Binary) to you next

> posting.

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

When I read your chart file I get the attached picture.

Is this what you see ?

The X-Axis Min in this chart is 4000 and the X-Axis is inverted. I don't see

zero (0) anywhere ! This chart looks like one created with ForceZero =

false.

The only problem I see with this chart, is that "400" to the left of the

chart. Is this what you mean ? This seems to be a bug but it is just a label

out of place, the X-Axis scale is perfect going from 4000 to 7352.

I will check the problem with the label but I suspect your problem is

different. Can you reproduce it with a small sample program ?

--

FP

Software FX

Link to comment
Share on other sites

Your screen shot is what I'm looking for. But it is not what I see. I

attached a picture of what I see. The data is the same as yours, but in mine

the X axis is missing.

I'm using XP and version 6.0.839.0 of ChartFx (I did an update from your web

site about 2 weeks ago)

Mitch

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

news:X$YtBxECEHA.2508@webserver3.softwarefx.com...

> Oh. And that "400" label turned out to be 7400 that was clipped by the

> LeftGap being so small.

>

> To fix the problem do:

>

> chart1.LeftGap = 20;

>

>

> --

> FP

> Software FX

>

>

Link to comment
Share on other sites

There is two options here:

1) You are experiencing a bug that was already fixed and I can not reproduce

when I read the file even when I use the latest public build. To verify this

please contact our support dept. and ask for instructions on downloading the

latest hotfix.

2) The error goes away after you Export/Import the chart. If this is the

case, I'm going to need some sort of sample program that reproduces the

problem.

--

FP

Software FX

Attachments.zip

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...