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

Method renderPlots

apps/chart/src/component/plot.ts:145–158  ·  view source on GitHub ↗
(axes: Axes, scale?: Scale)

Source from the content-addressed store, hash-verified

143 }
144
145 renderPlots(axes: Axes, scale?: Scale): LineModel[] {
146 const vertical = true;
147
148 return axes.centerYAxis
149 ? this.renderPlotsForCenterYAxis(axes)
150 : [
151 ...this.renderPlotLineModels(this.getHorizontalTickPixelPositions(axes), !vertical, {
152 axes,
153 }),
154 ...this.renderPlotLineModels(this.getVerticalTickPixelPositions(axes, scale), vertical, {
155 axes,
156 }),
157 ];
158 }
159
160 getVerticalTickPixelPositions(axes: Axes, scale?: Scale) {
161 const { offsetSize } = this.getPlotAxisSize(true);

Callers 1

renderMethod · 0.95

Tested by

no test coverage detected