RadarChart update the RadarChartDataEntry in realtime
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Is it possible to edit the data entry for the Radar Charts realtime?
I am starting with a new chart with all zeros as such:
var newRadarDataSet = RadarChartDataSet (
entries: [
RadarChartDataEntry(value: 0),
RadarChartDataEntry(value: 0),
RadarChartDataEntry(value: 0),
RadarChartDataEntry(value: 0),
RadarChartDataEntry(value: 0)
])
And while the app is running I would like to update the chart based on input.
Can this be done?!
When I try to change the entries as such:
self.newRadarDataSet.entries[0] = RadarChartDataEntry(value: 10)
I get the following error:
Cannot assign through subscript: 'entries' setter is inaccessible
Does anyone know how to get around this?!
Contributor guide
Research direction
Start with the RadarChartDataSet.entries API and RadarChartDataEntry usage shown in the issue, then check how the chart is refreshed after data changes. Confirm whether realtime entry updates are supported and what completion looks like for updating a zero-valued entry to a new value while the app runs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- data-visualization, mobile
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100