Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 2.26 KB

File metadata and controls

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