From 7752566a482f71f9905e794f9ef962bb8634127a Mon Sep 17 00:00:00 2001 From: Jukka Kurkela Date: Fri, 29 May 2020 00:33:50 +0300 Subject: [PATCH] Remove missing setDataVisibility for documentation (#7437) --- docs/docs/developers/api.md | 9 --------- 1 file changed, 9 deletions(-) diff --git a/docs/docs/developers/api.md b/docs/docs/developers/api.md index 57f8e0928..0cb6fc0fb 100644 --- a/docs/docs/developers/api.md +++ b/docs/docs/developers/api.md @@ -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. -- 2.47.2