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