Jump to content
Software FX Community

Rescaling Y-axis


User (Legacy)
 Share

Recommended Posts

I am having a hard time making ChartFX client/server 5.0 automatically

rescale the Y-axis of my linegraph after I make one of the series invisible.

I've set Autoscale for the axis to TRUE, but nothing happens when I make a

series invisible. I can do RecalcScale, but this affects both the X-axis

and the Y-axis. I want to rescale the Y-axis only. I also tried OpendataEx

COD_RESETMINMAX, but this mysteriously moves, among others, the legend of

the X-axis to the top of the graph ??? What do you recommend to recalc the

Y-axis only when a series is made visible/invisible?

Thanks for your help.

Henk Borsje

Link to comment
Share on other sites

AutoScale = True

Only means that as you pass data to the chart the Axis Min and Max will be

adjusted. It does NOT mean to recalculate the scale right at that moment.

That is what RecalcScale does.

Unfortunately, there is no RecalcScale functionality in a per-axis basis.

You will have to write your own code to adjust only those axis you want, or

call RecalcScale and then revert back those axis that you want to leave

untouched.

--

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