An error has occurred while processing Chart 'chartControl':

Thread is closed for posting
8 posts, 0 answers
  1. Bylar
    Bylar avatar
    8 posts
    Member since:
    Jul 2012

    Posted 20 Aug 2013 Link to this post

    Hi,

     I am using rad chart with dynamically dispaly in my asp.net application. When the data comes from the database e.g If I got 145 records from the database and try to generate the chart with same data, so our Chat control works fine but when I got the 150 records and try to generate the chart control I am getting an error
    An error has occurred while processing Chart 'chartControl':
    An Unexpected error has occurred. Please review the InnerException for more information how to resolve the problem.
    ------------- InnerException -------------
    Parameter is not valid. 


    I have few concern about RadChart Control :

    1) How many records should be display at single RadChart control ?
    2) How many Number of color combination used for Chart control ?
    3) What is the maximum number of records limit to generate in a single chart ?

    I do not understand what is wrong in this case.

    Thanks,
    Bylar
  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 22 Aug 2013 Link to this post

    Hi Bylar,

    There is no limit to the number of items the chart can display. However we suggest that you use no more than a 1000 items, otherwise the data would not be presented clearly and it will take a lot of time for the chart image to be rendered.

    In any case, the exception is not related to any limitation. Can you please create a small project that reproduces this exception and send it to us for investigation?

    Regards,
    Petar Marchev
    Telerik
    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 the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Saujanya
    Saujanya avatar
    3 posts
    Member since:
    Mar 2011

    Posted 23 Aug 2013 Link to this post

    Thanks for reply Petar,

    Yes, You are correct, there is no limit  to the number of items the chart can display.
    This Issue has been resolved.
    Initially I was using the small height of radchart control and AutoResize property to true. 
    Then if the number of items increase, the chart legand will area inceased and Chart diagram area will decrease.
    At a certain point like when legand increased and no more area remaining fo Chart diagram so this error will occur.

    Solution :
    I have increase the height of the RadChart control and set the legand font size from 8F to 6F so its working fine.

    but I have another concern for this :
    When we will set the legand's AutoResize property to false and set its height and width manually so Is this possible to add a scroll bar (vertical) on legand ? If yes then How ?

    Thanks,
    Bylar

  5. Peshito
    Admin
    Peshito avatar
    496 posts

    Posted 28 Aug 2013 Link to this post

    Hello,

    The ASP.NET RadChart is an image rendered on the server and that's why it is not possible to have scrollable legend. What you could do is reorder the items in case this solution works for you.

    Regards,
    Peshito
    Telerik
    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 the blog feed now.
  6. Jitendra
    Jitendra avatar
    7 posts
    Member since:
    Apr 2014

    Posted 24 Jul 2014 in reply to Petar Marchev Link to this post

    Hi,

    I also need to plot 40-50 thousands datapoints  using RadHtmlChart in single chart,  but while doing so the browser's response time is very poor  . I have disabled the animations by setting Transitions="false" . Is there any way to achieve reasonable response time  while plotting such large number of datapoints ?
  7. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 28 Jul 2014 Link to this post

    Hi Jitendra,

    Please refer to Performance Optimizations help article for more information on the performance optimization of RadHtmlChart control.

    Regards,
    Danail Vasilev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. Jitendra
    Jitendra avatar
    7 posts
    Member since:
    Apr 2014

    Posted 28 Jul 2014 in reply to Danail Vasilev Link to this post

    Thanks Danail ,

    I have implemented those recommendations and it reduces the response time , but still the response time is 20 sec for rendering the Single Line chart and my application demands for multiple line chart as well , are there other recommendations which can help to reduce the wait time.
  9. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 29 Jul 2014 Link to this post

    Hi Jitendra,

    As the mentioned article states - the chart' image is created by numerous XML nodes that represent chart's elements. The more chart's elements are presented the more XML nodes will be rendered and therefore the page load time will increase. Therefore the mentioned behavior of the browser is expected if it has to render a RadHtmlChart control with 40-50 thousand items.

    Note also that the performance greatly depends on the performance of the machine and the browser. For example slower browsers like IE7 and IE8, especially when used on slower machines, may not meet all your needs.

    All that being said I can suggest that you decrease the number of the chart's items.

    Regards,
    Danail Vasilev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017