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

Is DiameterScale gone?

5 Answers 60 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 27 Nov 2012, 02:38 PM
I am working with the latest version of the controls, using the HTMLChart for a Pie Chart and I cannot locate or use the old "DiameterScale" property anywhere - has this property been removed?  Is there any way still to determine what area of the total chart is filled by the "pie"?

5 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 28 Nov 2012, 09:05 AM
Hi Brian,

The property DiameterScale is not part of RadHtmlChart but RadChart. Actually RadHtmlChart is the new one(available since Q2 2012) and it is not based on RadChart's old technology but the latest web standards(SVG, CSS, SVG). To mention that one of its significant advantages is the rendering which is done entirely on the client side through JavaScript. That is why RadHtmlChart does not implement yet all the properties RadChart does.

Please find more information about the differences between both controls in this blog post as well as the new features in RadHtmlChart here.

Regards,
Danail Vasilev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Brian
Top achievements
Rank 1
answered on 28 Nov 2012, 01:27 PM
So then, using the new RadHTMLChart there is currently no way to determine the size of the "pie" portion in relation to the overall chart area?
0
Marin Bratanov
Telerik team
answered on 03 Dec 2012, 07:56 AM
Hello Brian,

The HtmlChart does this calculation automatically depending on the presence of other elements (legend, title). Adding such a property is more likely to add a way to break the appearance of the control than to provide a helpful feature. Many of the dimensions and spaces in the HtmlChart are calculated automatically and this allows you to have charts that require very little configuration - you basically have only to add data and you are set.

You can ultimately control the size of the pie itself through the size of the chart. If you have few items placing the legend at the bottom or at the top will also provide more space for the actual pie. You could also disable the legend if your scenario allows for that. Hiding the series labels also gives you more space.


Regards,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Luis
Top achievements
Rank 1
answered on 01 Sep 2016, 05:02 PM
But what if I have to show, Title, Legend and data labels in the pie and they do not fit or overlaps the legend or the title and I can not make more high or width the chart or show less ítems in the legend?, how can I use the radhtmlchart and adjust the space?, I am using 2016 Q2
0
Danail Vasilev
Telerik team
answered on 02 Sep 2016, 12:07 PM
Hello Luis,

You can adjust the space between the plot area and the pie as shown in this article - http://docs.telerik.com/devtools/aspnet-ajax/controls/htmlchart/troubleshooting/common-issues#plotarea-is-shrunk-by-the-legend--plotarea-dimensions-depend-on-the-legend-size

Regarding the legend you can either configure a particular alignment and orientation or create a custom one as shown in the HtmlChart - Conditional Item Colorization demo.

Regards,
Danail Vasilev
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Chart (HTML5)
Asked by
Brian
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Brian
Top achievements
Rank 1
Marin Bratanov
Telerik team
Luis
Top achievements
Rank 1
Share this question
or