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
custom AxisLabels overlap
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |