| 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, |