| 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 |
| Product | Progress® Telerik® Reporting |
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.
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
DataPointLabelAlignmenttoOutsideEnd; - Set
DataPointLabelOffsetto a very large value, for example, the width of the Graph; - Set
DataPointLabelConnectorStyle.VisibletoFalse.
A sample may be found in our Reporting-Samples GitHub Repository - BarSeriesDataPointLabelAlignment.trdp