MPAndroidChart
MPAndroidChart copied to clipboard
How to remove range of data from Realtime LineChart
Summary
Hi i am developing realtime ECG Graph using line chart My Scenario is after 4 second i have to remove the old record , within 4 second i got 1440 record now whenever YVals reached to 1440 i have to remove first 50 data For Android we have 5 methods
- dataSet.removeFirst() // remove only one record 2.removeEntryByXValue() 3.removeEntry(index) 3.removeEntry(entry) 4.removeLast()
How to remove data in range Expected Behavior
For IOS we have same library https://github.com/danielgindi/Charts where one method is there lineChartDataSet1.values.removeFirst(50) //it will remove first 50 data
is there anything same in android also Possible Solution
Device (please complete the following information):
- Device: [e.g. Google Pixel]
- Android Version [e.g. 7.0]
- Library Version (e.g. 3.0.3)
Additional Context
good feature request, adding to the list.
Hi @almic Is this issue open?
I Have a suggestion you can use this method
dataSet.removeFirst() // remove only one record
and using loop remove first 50 from the Starting