Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 2.26 KB

adjust-legend-marker-text.md

File metadata and controls

50 lines (35 loc) · 2.26 KB
title description type page_title slug tags res_type ticketid
Adjusting Legend Marker Position
Learn how to move the legend marker closer to the legend text in Telerik Reporting charts.
how-to
How to Move Legend Markers Closer to the Text
adjust-legend-marker-text
legend, chart, styling, telerik, reporting
kb
1672494

Environment

Product Progress® Telerik® Reporting

Description

In Telerik Reporting, adjusting the position of the legend markers relative to the legend text can enhance the readability and aesthetic appeal of your reports. This knowledge-base article also answers the following questions:

  • How can I customize the legend item padding in Telerik Reporting?
  • Is it possible to adjust the spacing between legend markers and text?
  • What methods are available for styling the legend in Telerik Reporting?

Solution

Using the Map Legend Styling and Formatting

We may use the Position property of the GraphLegend to adjust the position of the Graph Legend:

Image of how to set the Position of the Graph Legend

Adjusting Legend Text Padding

For more precise control over the spacing between the legend markers and the text, the Series.LegendItem.Style.Padding property offers a flexible solution. By applying negative padding, you can move the legend text closer to the markers. The Padding property affects the space around the legend text, allowing for fine-tuning of its position relative to the legend markers.

Image of how to move the legend text with Padding

This image demonstrates how to customize the left padding of the legend item's style, effectively moving the text closer to the legend markers. Adjust the padding value according to your specific layout requirements.

See Also