Jump to content
Software FX Community

Autoscale property


User (Legacy)
 Share

Recommended Posts

Does AutoScale property of Axis Y work properly for stacked histograms? In

fact, I implement a real-time stacked area chart and set this property to be

"true". However, this forces Axis Y to scale according to the maximum value

of one of the series but not the maximum value of their sums.

Thank you for your advice in advance,

Mikhail

Link to comment
Share on other sites

> When you say histogram, Do you mean a Stacked chart ?

Yes, you were right, it is a stacked chart.

> Have you tried calling RecalcScale ?

"Please keep in mind that this method reads the entire data array, so

abusing this method could affect the performance of your application, as

Chart FX will read the entire data array every time this method is called"

I have a real-time chart with 5K-50K of values. It looks like calling it

several times a second is not the best solution.

Link to comment
Share on other sites

Adjusting the Min/Max as new points are set is not supported for Stacked 

charts as it is very difficult to maintain in a generic situation (we don't

know the order in which you are setting the points, whether you are setting

all the points or just replacing a few and whether or not you are going to

change the Stacked setting latter on).

What you need to do here is adjust the Min/Max manually as you add the new

points. It should be simple for you because you know exactly what you are

adding and in what order.

You are right about RecalcScale, in this case it is better to avoid it.

--

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