Jump to content
Software FX Community

Show only every nTh point


Recommended Posts


 we have big amounts of data for our chart ( up to 2 million points). If i put in all points the chart become almost no responsive, which i can understand by this data amount. So i want to show onl every nTh value and build the arithmetic mean of the values "hidden". That worked so far. Now the problem is when the user zooms in, i want to show just ever nTh value of that zoomed area isntead of the already shrinked data.

 I hope you unerstand my problem :D 

Link to comment
Share on other sites

There is a property in the chart called CompactedBy that allows you to reduce the number of points beign painted in the way that you described.

You will have to handle the Zoom events in order to provide a higher level of detail by reducing the value of CompactedBy.


chart.Data.CompactedBy = 100; // Compacts one point into 1

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.

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.


  • Create New...