mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-14 12:09:04 +08:00
CircularInstance.addData was incorrect
addData takes a single object of type CircularChartData, not an array. Also the index is optional. See addData example in the documentation http://www.chartjs.org/docs/#doughnut-pie-chart-prototype-methods
This commit is contained in:
2
chartjs/chart.d.ts
vendored
2
chartjs/chart.d.ts
vendored
@@ -113,7 +113,7 @@ interface LinearInstance extends ChartInstance {
|
||||
interface CircularInstance extends ChartInstance {
|
||||
getSegmentsAtEvent: (event: Event) => {}[];
|
||||
update: () => void;
|
||||
addData: (valuesArray: CircularChartData[], index: number) => void;
|
||||
addData: (valuesArray: CircularChartData, index?: number) => void;
|
||||
removeData: (index: number) => void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user