Jump to content
Software FX Community

Large number of values on realtime charts


User (Legacy)
 Share

Recommended Posts

I would like to drow realtime chart to about 3000 point

It works well when the number of points is not large (about 500 point)

BUT

When the number increases all the points are collected over eachother in one

point at the left

So How can I drow any number of points in one screen of realtime chart

without specifying the MaxValue, because the values are unlimited?

Regards

Link to comment
Share on other sites

When you set CTE_EVENSPACING, you are FORCING the distance between any two

consecutive points in the chart to be constant.

This may cause a remainder depending on the number of points and the size of

the chart.

For example, lets say you have 150 points in the chart and the chart is 200

pixels wide (drawing area), we have to chose 1 pixel as the separation

between points because the next integer (2) is too big, this cause a

remainder of 50 pixels. This is what you are seeing probably aggravated by

the number of points and size of your specific chart size.

You have two options:

1) Get rid of CTE_EVENSPACING (which is the default) this will slow down the

chart scrolling as different point pairs may have different separation

therefore the chart can not be scrolled as a "picture" but instead is has to

be repainted every time.

2) Find some chart sizes and buffer sizes (maybe adding scrolling) that will

minimize this remainder.

--

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