PdfRpt.VectorCharts.VerticalBarChart.drawVerticalBarLabel C# (CSharp) Method

drawVerticalBarLabel() private method

private drawVerticalBarLabel ( float left, BarChartItem item, float barValue ) : void
left float
item BarChartItem
barValue float
return void
        private void drawVerticalBarLabel(float left, BarChartItem item, float barValue)
        {
            var itemValueWidth = getTextWidth(item.Value.ToString(CultureInfo.InvariantCulture));
            left = left - ((itemValueWidth - BarWidth) / 2);

            ColumnText.ShowTextAligned(
                canvas: _template,
                alignment: Element.ALIGN_LEFT,
                phrase: PdfFont.FontSelector.Process(item.Value.ToString(CultureInfo.InvariantCulture)),
                x: left,
                y: barValue + Margin + BottomMargin + 1.2f,
                rotation: 0,
                runDirection: (int)Direction,
                arabicOptions: 0);
        }