Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/docs/getting-started/v3-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ The following properties and methods were removed:
* `DatasetController.addElementAndReset`
* `DatasetController.createMetaData`
* `DatasetController.createMetaDataset`
* `DoughnutController.getRingIndex`

#### Removed from Elements

Expand Down
13 changes: 0 additions & 13 deletions src/controllers/controller.doughnut.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,6 @@ export default class DoughnutController extends DatasetController {
}
}

// Get index of the dataset in relation to the visible datasets. This allows determining the inner and outer radius correctly
getRingIndex(datasetIndex) {
let ringIndex = 0;

for (let j = 0; j < datasetIndex; ++j) {
if (this.chart.isDatasetVisible(j)) {
++ringIndex;
}
}

return ringIndex;
}

/**
* @private
*/
Expand Down
1 change: 0 additions & 1 deletion types/index.esm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ export interface DoughnutController extends DatasetController {
readonly offsetX: number;
readonly offsetY: number;

getRingIndex(datasetIndex: number): number;
calculateTotal(): number;
calculateCircumference(value: number): number;
}
Expand Down