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