MCPcopy
hub / github.com/frappe/charts / update

Method update

src/js/charts/Heatmap.js:143–151  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

141 }
142
143 update(data) {
144 if(!data) {
145 console.error('No data to update.');
146 }
147
148 this.data = this.prepareData(data);
149 this.draw();
150 this.bindTooltip();
151 }
152
153 bindTooltip() {
154 this.container.addEventListener('mousemove', (e) => {

Callers 7

addDataPointMethod · 0.45
removeDataPointMethod · 0.45
updateDatasetMethod · 0.45
updateDatasetsMethod · 0.45
index.jsFile · 0.45
index.min.jsFile · 0.45

Calls 3

prepareDataMethod · 0.95
bindTooltipMethod · 0.95
drawMethod · 0.80

Tested by

no test coverage detected