This is a migrated thread and some comments may be shown as answers.

Donut Visual template , Stacking and adding Markers

2 Answers 71 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 13 Aug 2019, 10:22 AM

Hi Team,

 

Is it possible to stack or group series on the DonutSeries?

Is there a way to add borderstyle instead of the background color?

Please see screenshot.

 

2 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 13 Aug 2019, 12:32 PM

Hi Andrew,

The data passed to Donut/Pie chart is actually added to one series, which is just visually displayed as separate ones, thus stacking/grouping in these chart types is currently not possible.

As for the border set to the series, there is an already feature request for the same, so you can vote for it here:

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

 

In the item above you can see also a sample on how you can set a border through the Kendo widget of the chart:

Javascript:
	<script language="javascript">
		function pageLoad() {
			var chart = $find("RadHtmlChart1");
			chart._chartObject.options.series[0].border = {
				width: 2,
				color: "black",
				dashType: "dash",
				opacity: 0.2
			}
			chart.repaint();
		}
	</script>

ASPX:
	<telerik:RadHtmlChart ID="RadHtmlChart1" runat="server" Width="600" Height="400">
		<PlotArea>
			<Series>
				<telerik:ColumnSeries>
					<SeriesItems>
						<telerik:CategorySeriesItem Y="30" />
						<telerik:CategorySeriesItem Y="10" />
						<telerik:CategorySeriesItem Y="20" />
					</SeriesItems>
				</telerik:ColumnSeries>
			</Series>
		</PlotArea>
	</telerik:RadHtmlChart>

 

Regards, Vessy
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Andrew
Top achievements
Rank 1
answered on 13 Aug 2019, 03:30 PM

Thanks for your quick responses.

could you please send an image of this working, because I just tested the code and can't really see the dash lines, could you also please do it in Donutseries instead of a Columnseries.

 

Thanks 

 

Tags
Chart (HTML5)
Asked by
Andrew
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or