function getTextPositionY()

in src/barChart.ts [938:955]


        function getTextPositionY(category: string, textProps: TextProperties) {
            if (settings.barShape.shape === "Bar") {
                return yScale(category) + yScale.bandwidth() / 2 +
                    textMeasurementService.textMeasurementService.measureSvgTextHeight(textProps) / 4;
            } else if (settings.barShape.shape === "Line" ||
                    settings.barShape.shape === "Lollipop" ||
                    settings.barShape.shape === "Hammer Head") {
                if (settings.barShape.labelPosition === "Top") {
                    return yScale(category) +
                    yScale.bandwidth() / 16 +
                    textMeasurementService.textMeasurementService.measureSvgTextHeight(textProps) / 4;
                } else {
                    return yScale(category) +
                    yScale.bandwidth() / 2 +
                    textMeasurementService.textMeasurementService.measureSvgTextHeight(textProps) / 4;
                }
            }
        }