Skip to content

Latest commit

 

History

History
48 lines (40 loc) · 2.44 KB

center-align-legend-text-telerik-reporting.md

File metadata and controls

48 lines (40 loc) · 2.44 KB
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

Description

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?

Environment

Product Progress® Telerik® Reporting
Report Item Graph

Solution

To center align the legend text in a graph component, follow these steps:

  1. Select the [Graph]({%slug telerikreporting/designing-reports/report-structure/graph/overview%}) item in the report.
  2. Expand to the Series collection proeprty of the graph.
  3. Choose the series for which you want to adjust the Legend mark alignment.
  4. From the LegendItem dropdown, select the MarkStyle property.
  5. 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.

How to center align a Graph's Legend Mark

See Also

  • [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%})