I want sample code that show chart that updated when new record inserted
Axis x - the number of records
Axis Y - how many records inserted in particular time
Thanks in advance,
1 Answer, 1 is accepted
0
Antoan
Telerik team
answered on 11 Mar 2022, 01:58 PM
Hi Daniel,
Thank you for the provided image.
To achieve the desired result the chart can be bound to ObservableCollection where the records are stored. As soon as a new item is added to the collection, the UI will be updated.
For more information on how the Chart can be populated using ObservableCollection, please go to the following link:
Into database in other place. I want that collection will be update online. Hope is more clear. I use implemntation from the article.
Yana
Telerik team
commented on 14 Mar 2022, 08:40 AM
This is just a sample example - no matter how and when a point is added to the ObservableCollection ( on a button click or due to some other event in the code), the collection itself notifies the UI about the change and the Chart gets updated. The logic for updating the collection depends on the app requirements and is not directly related to the Chart control.