mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-04 15:34:04 +01:00
Remove missing setDataVisibility for documentation (#7437)
This commit is contained in:
committed by
Evert Timberg
parent
f7e44ae089
commit
6112add201
@@ -159,15 +159,6 @@ chart.setDatasetVisibility(1, false); // hides dataset at index 1
|
||||
chart.update(); // chart now renders with dataset hidden
|
||||
```
|
||||
|
||||
## setDataVisibility(datasetIndex, index, visibility)
|
||||
|
||||
Like [setDatasetVisibility](#setdatasetvisibility) except that it hides only a single item in the dataset. **Note** this only applies to polar area and doughnut charts at the moment. It will have no affect on line, bar, radar, or scatter charts.
|
||||
|
||||
```javascript
|
||||
chart.setDataVisibility(0, 2, false); // hides the item in dataset 0, at index 2
|
||||
chart.update(); // chart now renders with item hidden
|
||||
```
|
||||
|
||||
## toggleDataVisibility(index)
|
||||
|
||||
Toggles the visibility of an item in all datasets. A dataset needs to explicitly support this feature for it to have an effect. From internal chart types, doughnut / pie and polar area use this.
|
||||
|
||||
Reference in New Issue
Block a user