Solved

MS Chart Control line interpolation failure?

Posted on 2013-01-09
4
495 Views
Last Modified: 2013-01-09
Hi Experts!

I have an ASP 4.0 app with some chart controls showing data from a SQL server.
There are all XY graphs with charttype = line (or fastline). For some, to me, unknown reason the lines fail to connect some of the data points and overlap (see attached picture).

I suspect that there is something wrong with the internal interpolation routine in the Chart Control object, maybe I'm wrong?
Does anyone here know of a solution to get rid of this I would be more than happy?

BR,
Peer
line-fail.JPG
0
Comment
Question by:peer754
  • 2
  • 2
4 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 38759560
Are the datapoints sorted correctly ?  (This looks like the jumps could be between datapoints in the order they are in the dataset)
0
 

Author Comment

by:peer754
ID: 38759588
Hi,
All datapoints are inserted into the DB in real-time, i.e. they should be sorted w.r.t. time.
I will make sure however if that's the case.
Thanks!
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 38759623
Just because they are sorted in the table doesn't mean they will be sorted in the dataset (they could be but...)
0
 

Author Closing Comment

by:peer754
ID: 38759665
You were right, the data was not sorted (WHY?). The data is added at real-time in a time interval to a table with id so I assumed (wrongly) that the data should be sorted as it it's been added.

Thanks!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now