Completed
Last Updated: 02 Dec 2026 13:33 by ADMIN
ADMIN
Danail Vasilev
Created on: 19 Mar 2014 15:45
Category: HtmlChart
Type: Feature Request
1
ADD legend border for the RadHtmlChart
For the time being the property (http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-legend.border) can be set through the chartObject. For example:
JavaScript:
	<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
		<script>
			function pageLoad() {
				var chart = $find("<%=PieChart1.ClientID%>");
				chart._chartObject.options.legend.border = { width: 2, color: "green", dashType: "longDashDotDot" }
				chart.repaint();
			}
		</script>
	</telerik:RadCodeBlock>
ASPX:
		<telerik:RadHtmlChart runat="server" ID="PieChart1" Transitions="true">
			<PlotArea>
				<Series>
					<telerik:PieSeries StartAngle="90">
						<LabelsAppearance Position="OutsideEnd" DataFormatString="{0} %" />
						<TooltipsAppearance DataFormatString="{0} %" />
						<SeriesItems>
							<telerik:PieSeriesItem BackgroundColor="Purple" Exploded="true" Name="Internet Explorer" Y="18.3" />
							<telerik:PieSeriesItem BackgroundColor="Orange" Exploded="false" Name="Firefox" Y="35.8" />
							<telerik:PieSeriesItem BackgroundColor="Green" Exploded="false" Name="Chrome" Y="38.3" />
							<telerik:PieSeriesItem BackgroundColor="Blue" Exploded="false" Name="Safari" Y="4.5" />
							<telerik:PieSeriesItem BackgroundColor="Red" Exploded="false" Name="Opera" Y="2.3" />
						</SeriesItems>
					</telerik:PieSeries>
				</Series>
			</PlotArea>
			<ChartTitle Text="Browser Usage for April 2012">
			</ChartTitle>
		</telerik:RadHtmlChart>
4 comments
ADMIN
Rumen
Posted on: 02 Dec 2026 13:33
Hi everyone,

Please note that the legend border is now available as a built-in property, so the client-side workaround from the item description is no longer needed. Use the BorderAppearance tag inside the Legend of RadHtmlChart:

<telerik:RadHtmlChart runat="server" ID="PieChart1">
    <Legend>
        <Appearance Position="Right" />
        <BorderAppearance Color="Red" Width="3" DashType="Dash" />
    </Legend>
    <PlotArea>
        <Series>
            <telerik:PieSeries>
                <SeriesItems>
                    <telerik:PieSeriesItem BackgroundColor="Purple" Name="A" Y="18" />
                    <telerik:PieSeriesItem BackgroundColor="Orange" Name="B" Y="35" />
                    <telerik:PieSeriesItem BackgroundColor="Green" Name="C" Y="38" />
                </SeriesItems>
            </telerik:PieSeries>
        </Series>
    </PlotArea>
</telerik:RadHtmlChart>
The property is available in the current versions of Telerik UI for ASP.NET AJAX 2026.3.812 and it maps to the legend.border option of the underlying Kendo UI chart. The chart renders the border as a stroked SVG path around the legend.

 

Regards,
Rumen
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources! 
ADMIN
Rumen
Posted on: 02 Mar 2022 13:29
Please use the solution provided by Danail to apply the legend border to RadHtmlChart.
ADMIN
Vessy
Posted on: 07 Jan 2021 18:24

Hi Kumar,

I have just answered your other question on the same matter, you can refer my answer here:

https://feedback.telerik.com/aspnet-ajax/1373499

As the Feedback portal aims to track the progress of the logged items, it will be really appreciated if you submit your questions through our ticketing system. Thank you in advance for your understanding on this matter.

Regards,
Vessy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

kumar
Posted on: 06 Jan 2021 12:04
can you create cylindrical shape legend in kendo chart