Completed
Last Updated: 02 Mar 2022 13:29 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>
3 comments
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