title | description | type | page_title | slug | tags | res_type | ticketid |
---|---|---|---|---|---|---|---|
Center Aligning Legend Mark in the Graph |
Learn how to vertically align the legend mark for the graph component in Telerik Reporting. |
how-to |
How to Control the Vertical Alignment of the Legend Mark |
center-align-legend-text-telerik-reporting |
reporting, graph, legend, text alignment, center align |
kb |
1682367 |
When designing reports, aligning the [Graph]({%slug telerikreporting/designing-reports/report-structure/graph/overview%}) legend's mark and text correctly is crucial for readability and aesthetics. This knowledge-based article explains how to adjust the legend text alignment in a graph within Telerik Reporting. Also answers the following questions:
- How do I center align the legend mark in Telerik Reporting?
- What property adjusts the legend mark alignment in a graph?
- How can I ensure my graph's legend mark is properly centered?
Product | Progress® Telerik® Reporting |
Report Item | Graph |
To center align the legend text in a graph component, follow these steps:
- Select the [Graph]({%slug telerikreporting/designing-reports/report-structure/graph/overview%}) item in the report.
- Expand to the Series collection proeprty of the graph.
- Choose the series for which you want to adjust the Legend mark alignment.
- From the LegendItem dropdown, select the MarkStyle property.
- Adjust the VerticalAlign property within MarkStyle to set the alignment box to the middle, vertically aligning the legend mark in the center within the legend box.
- [Graph Product Documentation]({%slug telerikreporting/designing-reports/report-structure/graph/overview%})
- [Styling the Graph]({%slug add-pattern-styles-graph-column-stack-bars-telerik-reporting%})
- [Report Items Overview]({%slug telerikreporting/designing-reports/report-structure/overview%})