Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.87 KB

File metadata and controls

39 lines (29 loc) · 1.87 KB
title Align BarSeries DataPointLabel to the Graph Right Side
description Learn how to align the Graph BarSeries DataPointLabel to the Graph Area Right Edge in Telerik Reporting.
type how-to
page_title Show Data Point Labels Aligned to the Right
slug align-barseries-datapointlabel-to-graph-right-side
position
tags
ticketid 1570466
res_type kb

Environment

Product Progress® Telerik® Reporting

Description

If you set the DataPointLabelAlignment property of the BarSeries, you may align the data point labels with respect to the current datapoint base or end value. There is no option for aligning with respect to the Axis or with the Graph.

Suggested Workarounds

The property DataPointLabelOffset can move the label with a hard-coded value right-ward. If its value is bigger than the available width, it will place the label at the right-most possible position, i.e. as if it is right-aligned with respect to the Graph Chart Area. When you set the DataPointLabelConnectorStyle Visible to False, the data point label should appear as if the labels are right-aligned. Here are the exact steps:

  • Set DataPointLabelAlignment to OutsideEnd;
  • Set DataPointLabelOffset to a very large value, for example, the width of the Graph;
  • Set DataPointLabelConnectorStyle.Visible to False.

Example

A sample may be found in our Reporting-Samples GitHub Repository - BarSeriesDataPointLabelAlignment.trdp