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

Line chart problems

7 Answers 70 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Hai
Top achievements
Rank 1
Hai asked on 05 Nov 2010, 08:20 PM
Hi,
Lets consider the following example:
I have a line chart with 2 chart series, which are serie A and serie B. The line chart has 2 Y axis. The primary Y axis is for chart serie A, and the secondary Y axis is for serie B. These two chart series A and B use the same X axis.
In the database, serie A has continuous data from 10/01/2010 to 10/30/2010. On the line chart, serie A will have 30 data points in total, from 10/01 to 10/30.
Otherwise, serie B does not have continuous data, It does not have data from 10/03/2010 to 10/06/2010. As a result of this, on the line chart, serie B will not have data points of 10/03, 10/04, 10/05 and 10/06. The data point next to 10/02 will be 10/07, for serie B. This also means serie B will have 2 data points less than serie A.

Questions: is there any way I can do so that series A and B have the same number of data points on the chart. The value of these missing data points will not be displayed, and will not be assigned as 0. What I want is the line chart still connects the two data-available data points. 

Thanks,

7 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 10 Nov 2010, 09:19 AM
Hello Hai,

One possible option in this case would be to add data for the missing elements. In this way, the chart line graphs will be identical.
I hope this is a feasible approach for you.

Kind regards,
Yavor
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Hai
Top achievements
Rank 1
answered on 10 Nov 2010, 07:27 PM
Actually I am working on this approach. One of my orther question is about the chart performance. In the case we apply this approach on the database of 1 year, it is gonna be too slow. Do you have any idea of how to enhance the graph performance? 
0
Yavor
Telerik team
answered on 11 Nov 2010, 08:47 AM
Hello Hai,

One possible option in this case would be to use zooming and scrolling:

http://www.telerik.com/help/aspnet-ajax/featureszoomscroll.html

You can use only scrolling, by pre-zooming the chart control, and then allowing the user to scroll along the x axis, to get more values/data. I hope this meets your requirements well.

Greetings,
Yavor
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Hai
Top achievements
Rank 1
answered on 12 Nov 2010, 12:11 AM

I have tried applying scrolling to my chart by applying this line:

 

<

 

 

ClientSettings EnableZoom = "false" ScrollMode = "XOnly" XScale = "20" />

 

 

 

 

Unfortunately, it always zooms in my chart. Besides, the loading icon is always there on the screen . Is there anyway I can remove it?

0
Yavor
Telerik team
answered on 12 Nov 2010, 12:16 PM
Hi Hai,

This behavior should not be present. I assume there is a problem with the databinding of the control. However, in order to investigate the issue further, it will be best if you open a formal support ticket, and send us a small working project, demonstrating your setup, and showing the unwanted behavior. We will debug it locally, and advise you further.

Kind regards,
Yavor
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Hung Ha
Top achievements
Rank 1
answered on 15 Nov 2010, 07:32 PM
I have just openned a formal ticket. I also attach the code for the chart and the pictures before and after applying the scrolling control. May you keep track of it. The ticket ID is 366906.
Thanks
0
Yavor
Telerik team
answered on 16 Nov 2010, 01:09 PM
Hi Hung,

We will continue our communication in the support ticket in question.

All the best,
Yavor
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Chart (Obsolete)
Asked by
Hai
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Hai
Top achievements
Rank 1
Hung Ha
Top achievements
Rank 1
Share this question
or