?
Solved

MS Chart Control line interpolation failure?

Posted on 2013-01-09
4
Medium Priority
?
540 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 45

Accepted Solution

by:
AndyAinscow earned 2000 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 45

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

850 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