Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
Posted - 09 Oct 2013 : 02:55:43 I have chartView in that variables are plotting dynamically.Xaxis is plotting starts with hh:mm:ss basis.I added scrollbar to it when i tried to scroll i'm getting exception as "Width and Height must be non-negative." Even i set height and width(chartView.PreferredSize = new Size(600, 400);) for my chart what may be the problem.
1 L A T E S T R E P L I E S (Newest First)
Posted - 09 Oct 2013 : 08:25:18 Based on your description I have no idea what the problem is. Describe what simple changes need to be made in one of our example programs to reproduce the problem. If you are unable to do that, you will need to send us a project (email@example.com) which reproduces the problem.
If you are using a time-based coordinate system, you must initialize the ChartCalendar objects with a complete time/date value (current dates), not just H:M:S. If you process the scrollbar values you must make sure you add in what ever date offset is used. Otherwise you end up at 1 AD, which won't work.
If you only want H:M:S, then you must use an elapsed time coordinate system, which uses only elapsed time, not dates, as its input.