From: Jukka Kurkela Date: Thu, 28 May 2020 21:33:50 +0000 (+0300) Subject: Remove missing setDataVisibility for documentation (#7437) X-Git-Tag: v3.0.0-beta.2~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7752566a482f71f9905e794f9ef962bb8634127a;p=thirdparty%2FChart.js.git Remove missing setDataVisibility for documentation (#7437) --- 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.