PdfRpt.VectorCharts.HorizontalBarChart.addMarkerTextToChart C# (CSharp) Method

addMarkerTextToChart() private method

private addMarkerTextToChart ( float x1, double xAxisValue ) : void
x1 float
xAxisValue double
return void
        private void addMarkerTextToChart(float x1, double xAxisValue)
        {
            var textWidth = getTextWidth(xAxisValue.ToString(CultureInfo.InvariantCulture));
            ColumnText.ShowTextAligned(
                canvas: _template,
                alignment: Element.ALIGN_LEFT,
                phrase: PdfFont.FontSelector.Process(xAxisValue.ToString(CultureInfo.InvariantCulture)),
                x: x1 - (textWidth / 2),
                y: _bottomMargin + Margin - _textHeight - 4,
                rotation: 0,
                runDirection: (int)Direction,
                arabicOptions: 0);
        }