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 |
Product | Progress® Telerik® Reporting |
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?
We may use the Position property of the GraphLegend to adjust the position of the Graph Legend:
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.
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.
- API Reference: GraphSeriesBase.LegendItem Property
- [Formatting a Map Legend in Telerik Reporting]({%slug telerikreporting/designing-reports/report-structure/map/formatting-a-map/legend%})