简体   繁体   English

WPF工具包饼图填充值

[英]WPF Toolkit Pie Chart Fill Values

I Fill my Pie Chart with Data (form observablehas -> dict) but everytime the chart gets new data, the pie fades out and fades in. I want the pie slices to change like here: http://silverlight.net/content/samples/sl2/toolkitcontrolsamples/run/default.html 我用数据填充饼形图(形式为observablehas-> dict),但是每次图表获取新数据时,饼形都会逐渐消失并逐渐变暗。我希望饼图的切片如下所示: http : //silverlight.net/content/ samples / sl2 / toolkitcontrolsamples / run / default.html

if you choose "Pie Series" and then look at "dynamic data items". 如果您选择“饼系列”,然后查看“动态数据项”。

When you get new data, you should add them to the ObservableCollection without clearing the ObservableCollection first. 获取新数据时,应将它们添加到ObservableCollection中,而无需先清除ObservableCollection。 I assume you either overwrite your ObservableCollection or you clear it before adding the new data. 我假设您要么覆盖ObservableCollection,要么在添加新数据之前将其清除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM