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

Method render

apps/chart/src/component/axisTitle.ts:87–99  ·  view source on GitHub ↗
({ axes, radialAxes, layout, theme }: ChartState<Options>)

Source from the content-addressed store, hash-verified

85 }
86
87 render({ axes, radialAxes, layout, theme }: ChartState<Options>) {
88 const titleOption = this.isCircularAxis ? radialAxes[this.name]?.title : axes[this.name]?.title;
89
90 this.isShow = !!titleOption;
91
92 if (!this.isShow) {
93 return;
94 }
95
96 this.theme = getAxisTheme(theme, this.name).title as Required<FontTheme>;
97 this.rect = layout[`${this.name}Title`];
98 this.models = this.renderAxisTitle(titleOption, this.getTextAlign(!!axes?.centerYAxis));
99 }
100}

Callers

nothing calls this directly

Calls 3

renderAxisTitleMethod · 0.95
getTextAlignMethod · 0.95
getAxisThemeFunction · 0.90

Tested by

no test coverage detected