Donut Chart PlotArea ASP.NET Core

1 Answer 128 Views
Chart
Lee
Top achievements
Rank 1
Veteran
Lee asked on 10 Nov 2021, 09:46 PM

Hi,

I have two Donut charts next to each other (see attachment), one has more items in the legend making the Donut smaller than the one next to it, how can i make them both the same size regardless of how many items in the legend?

I have found this article: https://docs.telerik.com/kendo-ui/controls/charts/how-to/appearance/fixed-size-pie-or-donut for JQuery how can i replicate for ASP.NET Core?

I have tried the PlotArea but this doesn't offer a Height Property.

1 Answer, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 15 Nov 2021, 01:10 PM

Hello Lee,

Thank you for the provided information.

Indeed the Height option is not available for the DonutChart PlotArea. In order to configure it I suggest using jQuery like in the example you are referring to. You can get access to the Chart widget like shown in the article below.

https://docs.telerik.com/aspnet-core/html-helpers/charts/overview#referencing-existing-instances

Then you can call the client-side setOptions method and pass the relevant plotArea options.

 

That said, I have logged an issue on your behalf so the missing property can be included in the charts. You can monitor the status of the issue below:

https://github.com/telerik/kendo-ui-core/issues/6628

As a token of gratitude for reporting this to us I have updated your Telerik points.

Regards,
Viktor Tachev
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/.

Tags
Chart
Asked by
Lee
Top achievements
Rank 1
Veteran
Answers by
Viktor Tachev
Telerik team
Share this question
or