Jump to content
Software FX Community

Re: Labels resizing on displaying new graph


User (Legacy)
 Share

Recommended Posts

Johannes Appelo wrote in message

<5g6fvG8iAHA.1808@sfxserver.softwarefx.com>...

>Hi,

>

>I have a graphing application where I prompt for various selection criteria

>and then display an according graph, using a VB form. I then have the

option

>of selecting new option, which should display a new graph refreshing the

>previous one. I have rotated the labels on the x-axis through 90 degrees in

>order to fit long labels. The following problem occurs: if the labels on

the

>x-axis are quite long for a given set, the actual graph display area is

>reduced in order to fit in the labels. If I now select a new set of

>selection criteria which will result in a set with shorter labels, the

graph

>will still be squashed into the previous graphing area. I have tried many

>things from rescaling, to resetting all data, etc, but nothing seems to

>work.

>Does anybody know of a solution?

By resetting all data, do you mean you are calling the charts ClearData(...)

method? Calling that with (CD_ALLDATA or CD_OTHER) should nuke pretty much

everything in the chart.

If that doesn't work for you, you could programatically set the BottomGap

member rather than using what the chart comes up with.

Hope that helps,

Ed Evans

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