Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chartjs/Chart.js
/ onClick
Method
onClick
src/controllers/controller.doughnut.js:125–128 ·
view source on GitHub ↗
(e, legendItem, legend)
Source
from the content-addressed store, hash-verified
123
},
124
125
onClick(e, legendItem, legend) {
126
legend.chart.toggleDataVisibility(legendItem.index);
127
legend.chart.update();
128
}
129
}
130
}
131
};
Callers
nothing calls this directly
Calls
2
toggleDataVisibility
Method · 0.80
update
Method · 0.65
Tested by
no test coverage detected