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

An error has occurred while processing Chart 'chartControl':

7 Answers 90 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Bylar
Top achievements
Rank 1
Bylar asked on 20 Aug 2013, 06:29 AM
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

7 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 22 Aug 2013, 07:29 AM
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.
0
Saujanya
Top achievements
Rank 1
answered on 23 Aug 2013, 06:27 AM
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

0
Peshito
Telerik team
answered on 28 Aug 2013, 06:22 AM
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.
0
Jitendra
Top achievements
Rank 1
answered on 24 Jul 2014, 02:41 PM
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 ?
0
Danail Vasilev
Telerik team
answered on 28 Jul 2014, 11:37 AM
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.

 
0
Jitendra
Top achievements
Rank 1
answered on 28 Jul 2014, 09:35 PM
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.
0
Danail Vasilev
Telerik team
answered on 29 Jul 2014, 09:16 AM
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.

 
Tags
Chart (Obsolete)
Asked by
Bylar
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Saujanya
Top achievements
Rank 1
Peshito
Telerik team
Jitendra
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or