updateData method
Update the data this chart represents and start an animation that will tween between the old data and this one.
Implementation
void updateData(List<CircularStackEntry> data) {
_assignRanks(data);
setState(() {
_tween = new CircularChartTween(
_tween.evaluate(_animation),
new CircularChart.fromData(
size: widget.size,
data: data,
chartType: widget.chartType,
stackRanks: _stackRanks,
entryRanks: _entryRanks,
percentageValues: widget.percentageValues,
holeRadius: widget.holeRadius,
startAngle: widget.startAngle,
edgeStyle: widget.edgeStyle,
),
);
_animation.forward(from: 0.0);
});
}