Is DiameterScale gone?

6 posts, 0 answers
  1. Brian
    Brian avatar
    14 posts
    Member since:
    Sep 2012

    Posted 27 Nov 2012 Link to this post

    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"?
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 posts

    Posted 28 Nov 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brian
    Brian avatar
    14 posts
    Member since:
    Sep 2012

    Posted 28 Nov 2012 Link to this post

    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?
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 03 Dec 2012 Link to this post

    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.
  6. Luis
    Luis avatar
    8 posts
    Member since:
    Jul 2016

    Posted 01 Sep Link to this post

    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
  7. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 posts

    Posted 02 Sep Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017