Jump to content
Software FX Community

Divide by Zero exception + more


User (Legacy)
 Share

Recommended Posts

Hi!

I have already reported this problem several times but it still occurs even

with the latest patch.

Please see the attached .zip file. It contains the chart files which

demonstrate the problem. When loaded by the OCX version (Cfx98.exe MFC

sample) the toolbar and menus are corrupted. Loading by Chart FX DLL causes

Divide by Zero exception (see the attached callstack.txt).

This is a big problem for us because our users constantly get the exception

when they load the previously saved charts. All we can suggest them is to

re-creates the charts. This is frustrating and who knows when the re-created

chart file become corrupted again.

Also, I've reported a problem with SetContourLabels method but no one

replied. So I repeat.

I have a surface chart and want to create legends like this,

red: 0-100

green: 100-200

blue: 200-300

To achieve this, I call SetContourLabels(100) and it works fine.

However, if I call SetContourLabels(0), then the legends become empty

strings (the help states the the Chart FX should auto-select the best step).

Why SetContourLabels(0) does not work? Is it a bug or am I doing something

wrong?

Another problem.

If I have a surface chart with Y-axis in range 0-500 and call

SetContourLabels(100) the Y-axis step is correctly changed to 100, the

surface has 5 colored levels and the series legends are changed to 0-100,

100-200,...,400-500. That's fine.

But now consider that the user of my app wants 10 levels. So he or she goes

to the

Y-axis properties dialog and changes the Major unit from 100 to 50.

The step changes correctly. The surface display also changes to 10 levels.

However, the series legends still display 0-100, 100-200 ... instead of

0-50, 50-100,...

What should I do to make Chart FX auo-update the series legends?

Thanks in advance,

Serge

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...