MCPcopy Index your code
hub / github.com/bqplot/bqplot / updateLabels

Method updateLabels

js/src/GridHeatMap.ts:599–613  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

597 }
598
599 private updateLabels() {
600 const displayFormatStr = this.model.get('display_format');
601 const displayFormat = displayFormatStr ? d3.format(displayFormatStr) : null;
602
603 let fonts = this.d3el
604 .selectAll('.heatmapcell_label')
605 .text((d: GridCellData, i) => {
606 return displayFormat ? displayFormat(d.color) : null;
607 });
608
609 const fontStyle = this.model.get('font_style');
610 for (const styleKey in fontStyle) {
611 fonts = fonts.style(styleKey, fontStyle[styleKey]);
612 }
613 }
614
615 private getTilePlottingData(
616 scale,

Callers 1

drawMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected