Skip to content

How to get dynamically added ChartEntry to render #241

Answered by snowman745
snowman745 asked this question in Q&A
Discussion options

You must be logged in to vote

I found a way to make this work. Before, it was animating the chart each time i re-created it.

Now on creation I set animation duration to zero seconds.

lineChart = new LineChart() { Entries = entries };
lineChart.AnimationDuration = TimeSpan.FromSeconds(0);

When I want to add a new point, I reset the lineChart.Entries property:

lineChart.Entries = entries;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by snowman745
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant