How to change the max point of XYChart

Hello everyone,

I am attempting to plot a graph with 1000 data points using XYChart in mapView, but I’ve encountered that XYChart can only handle up to 255 points. Is there a setting or configuration that can increase the maximum number of points to 1000 for XYChart? If not, are there alternative plotting spaces or libraries that would allow me to achieve my goal of plotting all 1000 points?

These are set either by the configuration or using automatic scaling. Check what you have in the XAxis widget inside the XYChart for the following properties

  • rangeMode
  • max
  • min

If you have rangeMode = fromConfiguration you should be able to set the min and max in the configuration of the widget or databind them.

If the rangeMode = autoscale this should scale automatically.

Automation Help: XAxis widget

1 Like

Thanks for your reply.
I tried changing the X-axis range from the default to 1000. The X-axis now appears correct, but the data transfer still seems limited to 255, even though my data array has a size of 1000. Are there any other settings I need to configure?

The number of samples is handled by the “numberOfSamples” property of the graph itself. Check the value there (Default should be -1) and try out 1000 instead.

1 Like

Hi @cuiw , what is the status of your topic, is it solved?

I have tried to change the number to 1000, it seems didn’t work.

Hi @kovarj. The issue hasn’t been resolved yet, but I’ve tried alternative approaches to address it. The issue can now be closed. Thank you!

If you have additional questions or findings, please share it with us :slight_smile: