I have a sfcartesian chart which is updated on real time as given in the example.
https://www.syncfusion.com/blogs/post/updating-live-data-in-flutter-charts.aspx#updating-data-on-demand
but The range controller doesn't seem to give exact result for on changed How to use for real time updating charts
Hi Danny,
Greetings from Syncfusion. We have checked that example in the provided blog regarding real-time charts and we would like to let you know that the purpose of the rangeController is that it is dependent on using the chart widget with our flutter range selector widget like in the below example sample.
https://flutter.syncfusion.com/#/range-selector/zooming
So, as we do not have a clear understanding of what you are trying to achieve with the range controller in the real-time updating chart, we kindly request you to revert us with more information on your exact requirement in detail so that it will be helpful to provide solutions sooner.
Regards,
Sriram Kiran
Hi Sriram,
Thanks for your reply, my requirement is that I would like to have a feature what the SfRangeController does, https://help.syncfusion.com/flutter/range-selector/range-controller as shown in the example where the user can select the data range from a given chart.
But how do we achieve the same when it is a real time updating chart.
Hi Danny,
From your last update, we understood that you are updating the chart data in real-time that is placed inside the range selector widget and trying to select a particular range.
If your requirement is different from this, please share a screenshot, video clip, or any online references with us to understand your requirement. This will help us to assist you in a better way and provide the solution as early as possible.
Regards,
Sriram Kiran
Hi Sriram,
Yes, you got it right, that's my requirement. Sorry that I couldn't put it right words.
Thanks
Danny
Hi Danny,
Thanks for the confirmation. We prepared a sample in which the chart data was updated every second using ChartSeriesController.updateDataSource and the range selector selected the most recent data (ex. 5 data points) of the chart and displayed the selected range in another chart. When the chart is updating in real-time, you can also select a specific range and reset to the most recent 5 data selections.
When changing the chart data points,
1. It is necessary to update the min and max values of the range selector because the range selector does not know which child is placed inside of it.
2. Range selector does not have smart interval support, so the interval must be updated based on the min and max values.
Please let us know if you need any further assistance in this.
Regards,
Yuvaraj.