Update/Refresh Chart View #407
-
I have the Charts AutoUpdateEnabled set to false to allow time for the Backend data to update. I would like to then 'manually' request a refresh/update of the WPF view. The only way I could get this to work is to do a 'hack':
The following has not worked: Chart.UpdateLayout() Is there a method/function that I can use to prompt a redraw? If not, is there a better 'hack' than the one I have used TIA |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Try to force an update using the core method:
Where |
Beta Was this translation helpful? Give feedback.
-
Is there a way to update the Legend as well? My use case allows users to change the colour of the stroke and fill of a data points geometry. The point sin the chart update however the legend doesn't and retains the old visual. |
Beta Was this translation helpful? Give feedback.
Try to force an update using the core method:
UIChart.CoreChart.Update(new LiveChartsCore.Kernel.ChartUpdateParams { IsAutomaticUpdate = false, Throttling = false });
Where
UIChart
isChart
in your case, I mean it should work with any control provided by the library no matter the platform you are working on.