如何在运行时在 flex 4.5 中创建 PieSeries 插值
我在运行时制作了一个饼图,我想插入数据更改,但我有一些困难。 代码在这里:
//Pie Chart
pieChart.dataProvider = expenses;
var pieSeries:PieSeries = new PieSeries();
pieSeries.nameField = "position";
pieSeries.field = "value";
pieSeries.explodeRadius = 0.08;
pieChart.series = null;
pieChart.series.push(pieSeries);
我找到了两种方法,但我不知道如何使用它>.<:
pieSeries.beginInterpolation
pieSeries.interpolate
i make a PieChart at run time, and i want to interpolate data change, but i have some difficult.
The Code is here:
//Pie Chart
pieChart.dataProvider = expenses;
var pieSeries:PieSeries = new PieSeries();
pieSeries.nameField = "position";
pieSeries.field = "value";
pieSeries.explodeRadius = 0.08;
pieChart.series = null;
pieChart.series.push(pieSeries);
I found two method, but i don't know how to use that >.<:
pieSeries.beginInterpolation
pieSeries.interpolate
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
1)首先创建一个SeriesInterpolate类实例并根据需要自定义它。
2) 您可以将pieSeries 对象的showDataEffect 样式设置为您刚刚创建的interpolate 对象。
Whalah..每当你的数据发生变化时,插值器就会被触发。
请参阅下面的代码片段..
我还创建了一个启用源的示例应用程序。
转到:http://befreestudiosllc.com/demos/flex4/charting/seriesInterpolate/并右键单击查看源代码。
1) First create a SeriesInterpolate class instance and customize it however you want.
2) You can set the showDataEffect style of your pieSeries object to the interpolate object that you just created.
Whalah.. whenever your data changes the interpolator will get triggered.
See the code snippet below..
I've also created an example application with source enabled.
goto: http://befreestudiosllc.com/demos/flex4/charting/seriesInterpolate/ and right-click to view source.