Closed lyylsh closed 2 hours ago
How did you add the data? Could you show the relevant code?
How did you add the data? Could you show the relevant code? Just like this. Implemented in a loop within a thread.
eyeQueue.TryDequeue(out eyeData); dataChart.AddXAxisData("x" + cnt); dataChart.AddData(0, eyeData);
The code seems fine. If you called dataChart.SetMaxCache
before StartServer
, it should work as expected. Could you provide more details? What version of XCharts are you using?
The code seems fine. If you called
dataChart.SetMaxCache
beforeStartServer
, it should work as expected. Could you provide more details? What version of XCharts are you using?
I've just realized that it may have been an issue due to the ignore break I had set, I kept updating the index of the x-axis causing the array to go out of bounds. It's fixed now, thanks.
When I use Chart.SetMaxCache() for line chart. I found that the data will not change dynamically after reaching the value set by maxcache.How can I deal with it. Thank u.