MCPcopy
hub / github.com/nhn/tui.chart / render

Method render

apps/chart/src/component/spectrumLegend.ts:76–91  ·  view source on GitHub ↗
({ layout, legend, colorValueScale, theme }: ChartState<Options>)

Source from the content-addressed store, hash-verified

74 };
75
76 render({ layout, legend, colorValueScale, theme }: ChartState<Options>) {
77 this.rect = layout.legend;
78 this.align = legend.align;
79 this.isShow = legend.visible && !!legend.data.length;
80
81 if (!this.isShow) {
82 return;
83 }
84
85 this.labels = this.makeLabels(colorValueScale);
86 const { startColor, endColor } = theme.series?.heatmap! || theme.series?.treemap!;
87
88 this.models = { legend: this.renderSpectrumLegendModel(startColor, endColor), tooltip: [] };
89
90 this.eventBus.on('renderSpectrumTooltip', this.renderSpectrumTooltip);
91 }
92}

Callers

nothing calls this directly

Calls 3

makeLabelsMethod · 0.95
onMethod · 0.45

Tested by

no test coverage detected