Jump to content
Software FX Community

Chart.PointCount property


cvarro
 Share

Recommended Posts

The current version of the API Reference says the PointCount property is "Used to set the number of data points allocated for the chart"

If I bind an ItemsSource with 20 items and set the PointCount to 10 for example, I was expecting to only see 10 points of the series display, but I still see all 20.

Is this not the intended purpose of this property? 

Is there an easy way to control the number of points that display on the chart other than modifying the ItemsSource?

Thanks for the help!

Link to comment
Share on other sites

The PointCount property should not be used, it is a way to fake random points in an easy way in your XAML. When passing data manually (instead of binding) we recommend you use Data.Points and Data.Series. I apologize for the documentation misleading you, we will correct this soon.

We do not have a property that will "truncate" the elements when using ItemsSource, if you can use LinQ in your project there might be a quick way to get the first X elements in your collection.

Regards,

JuanC

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