Add segments array to CircularInstance

This is needed because a circular instance are set by updating CircularIntance.segments[0].value. See update() example in the following documentation: http://www.chartjs.org/docs/#doughnut-pie-chart-prototype-methods.
This commit is contained in:
Slimfit
2015-04-10 17:39:42 -04:00
parent d5f92f93bd
commit 43fe8614da
+1
View File
@@ -115,6 +115,7 @@ interface CircularInstance extends ChartInstance {
update: () => void;
addData: (valuesArray: CircularChartData[], index: number) => void;
removeData: (index: number) => void;
segments: Array<CircularChartData>;
}
interface LineChartOptions extends ChartOptions {