custom AxisLabels overlap

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Werner
Newbie
Newbie
Posts: 29
Joined: Mon Nov 14, 2005 5:00 am

Post by Werner » Thu Jan 18, 2007 9:51 am

Hi Narcis!

OK. Lets consider this discussion closed.
In case you decide to work on this issue in a further release, please let me know.

Regards
Werner

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jan 18, 2007 10:26 am

Hi Werner,

Just to complete my previous message, I've added the code snippet below to your project to test the time it takes drawing the chart. I've run several tests and, even calling Bitmap the chart is painted twice, the results where almost the same. Using GetAxisLabel also delays the drawing time as it is called several times and in some way also forces chart being refreshed. You can run those tests at your end and check the results.

Code: Select all

	private DateTime startTime, now;
	private int c = 0, total = 0;

	protected void WebChart1_BeforeDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
	{
		Label1.Text = "";
		startTime = DateTime.Now;
		c++;
	}
	protected void WebChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
	{
		//calculate elapsed time         
		now = DateTime.Now;
		TimeSpan elapsedTime = new TimeSpan(now.Ticks - startTime.Ticks);
		total += (elapsedTime.Seconds * 1000) + elapsedTime.Milliseconds;

		Label1.Text = "Elapsed time: " + total.ToString() + " ms / Chart painted: " + c.ToString() + " times";
	}
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply