Hello,
I'm currently getting started with multiple axes i.e. custom axes. I have two question:
1) Is it possible to position the axis label? It's at the middle of the axis' height but I'd like to have it at the top. I couldn't find a property for doing this.
2) I'm planning to have multiple axes to the left of my chart (all having the height of the chart). What is the best way to position the axes/resize the chart so the chart, the axes and the axes' labels won't overlap?
Thanks for your help in advance!
EDIT:
I just came across another question: why doesn't zoom affect my custom axes? Scroll does.
multiple axes
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi ctusch,
Please find below the answers to your questions:
Please find below the answers to your questions:
I don't understand your exact request. Could you please give me some more details about it?1) Is it possible to position the axis label? It's at the middle of the axis' height but I'd like to have it at the top. I couldn't find a property for doing this.
You can do something as in Yeray's example here. This is a Delphi example using TeeChart Pro VCL. Something similar should be possible using .NET version.2) I'm planning to have multiple axes to the left of my chart (all having the height of the chart). What is the best way to position the axes/resize the chart so the chart, the axes and the axes' labels won't overlap?
Custom axes don't support zoom. You have to do that manually as told here.I just came across another question: why doesn't zoom affect my custom axes? Scroll does.
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 |
Hello narcis,
Thanks for the other answers so far!
What I meant is I want the text that is in the AxisLabel.Text property displayed at the upper end of my axis. But it is displayed in the middle and I can't find a way to change its position.narcis wrote:I don't understand your exact request. Could you please give me some more details about it?1) Is it possible to position the axis label? It's at the middle of the axis' height but I'd like to have it at the top. I couldn't find a property for doing this.
Thanks for the other answers so far!
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi ctusch,
Sorry but I still don't understand what do you mean with AxisLabel.Text. Would you be so kind to send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Sorry but I still don't understand what do you mean with AxisLabel.Text. Would you be so kind to send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi ctusch,
Thanks for the information.
In that case, the solution is custom drawing in the AfterDraw event:
Thanks for the information.
Ok, this changes everything .By the way I meant AxisTitel not AxisLabel (mixed it up).
In that case, the solution is custom drawing in the AfterDraw event:
Code: Select all
void tChart1_AfterDraw(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
Rectangle Rect = tChart1.Chart.ChartRect;
g.RotateLabel(Rect.Left - tChart1.Axes.Left.MaxLabelsWidth() -30, Rect.Top + 10, "test", 90);
}
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 |