AppPear / ChartView

ChartView made in SwiftUI
MIT License
5.31k stars 652 forks source link

Live updating line chart? #215

Open ddaddy opened 3 years ago

ddaddy commented 3 years ago

Does this support a live updating line chart?

If I add data points every second, will it animate to the new point? And possibly once say 20 data points are visible I want to drop the first as I add to the end. Would the animations handle this?

AlvaroRausell commented 2 years ago

If you are using SwiftUI, getting the data from an ObservableObject would make any updates to the data re-render the view, thus updating the graph.