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

Method getTotalDataLabels

apps/chart/src/component/boxStackSeries.ts:665–678  ·  view source on GitHub ↗
(
    seriesData: StackSeriesData<BoxType>,
    renderOptions: RenderOptions
  )

Source from the content-addressed store, hash-verified

663 }
664
665 getTotalDataLabels(
666 seriesData: StackSeriesData<BoxType>,
667 renderOptions: RenderOptions
668 ): RectDataLabel[] {
669 const { stackData, stack } = seriesData;
670
671 if (isPercentStack(stack)) {
672 return [];
673 }
674
675 return isGroupStack(stackData)
676 ? this.makeGroupTotalDataLabels(seriesData, renderOptions)
677 : this.makeTotalDataLabels(stackData, renderOptions);
678 }
679
680 makeGroupTotalDataLabels(
681 stackSeries: StackSeriesData<BoxType>,

Callers 1

renderMethod · 0.95

Calls 4

makeTotalDataLabelsMethod · 0.95
isPercentStackFunction · 0.90
isGroupStackFunction · 0.90

Tested by

no test coverage detected