MCPcopy
hub / github.com/chartjs/Chart.js / toggleDataVisibility

Method toggleDataVisibility

src/core/core.controller.js:881–883  ·  src/core/core.controller.js::Chart.toggleDataVisibility
(index)

Source from the content-addressed store, hash-verified

879 }
880
881 toggleDataVisibility(index) {
882 this._hiddenIndices[index] = !this._hiddenIndices[index];
883 }
884
885 getDataVisibility(index) {
886 return !this._hiddenIndices[index];

Callers 11

afterInitFunction · 0.80
afterInitFunction · 0.80
runFunction · 0.80
onClickMethod · 0.80
onClickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected