Getting pixel values from axis label values

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
dpatch
Newbie
Newbie
Posts: 53
Joined: Mon Jul 02, 2007 12:00 am

Post by dpatch » Thu Jan 15, 2009 5:02 pm

This looks very promising!

Is there a way make the bottom and left axis labels look like the ones you put on the right and top?

Or, can I swap them and hide the right and top? Meaning if I put my values into the top and right and do what you did for the bottom and left.

It all looks great if I hide the current bottom and left axis. But, I would like to see the nice evenly spaced axis labels you displayed on the right and top to be moved to the bottom and left.

Thanks!

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

Post by Narcís » Fri Jan 16, 2009 11:09 am

Hi dpatch,

Yes, this is possible. It's simple but a little bit tricky as all axes are necessary here:

Left and bottom: They are necessary having automatic scaling (even you added custom labels to them) for plotting the series correctly as they are the default axes.

Right and top: They are necessary for being able to calculate necessary values for polygon points.

Having said that you can easily achieve what you request adding code below to DispImgBtnClick method.

Code: Select all

        Chart1.Axes.Top.OtherSide:=false;
        Chart1.Axes.Right.OtherSide:=false;
        Chart1.Axes.Left.Visible:=false;
        Chart1.Axes.Bottom.Visible:=false;
That way left and bottom axes will do their job but won't be displayed and right and top axes moved to their position. Now you can also remove custom labels code as related axes are not visible.

I'll send you an e-mail with modified project.

BTW: For more information on axes settings you may be interested in having a look at Tutorial 4 - Axis Control. Tutorials can be found at TeeChart's program group.
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

dpatch
Newbie
Newbie
Posts: 53
Joined: Mon Jul 02, 2007 12:00 am

Post by dpatch » Fri Jan 16, 2009 2:53 pm

Narcis,

This is it! This is exactly what I've been trying to do for months! You guys are great...VERY responsive.

I looked for the toturials and I found I am missing a file, TeeChart8Manual.chm. I need to upgrade anyways so I am sure I will get it installed then.

Again, thank you very much for your "continued" support.

dave

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

Post by Narcís » Fri Jan 16, 2009 2:56 pm

Hi dave,

You're very welcome! I'm glad to hear we finally found what you needed.

BTW: TeeChart8Manual.chm is already included in v8.04's Docs folder. Are you using v8.04?
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

dpatch
Newbie
Newbie
Posts: 53
Joined: Mon Jul 02, 2007 12:00 am

Post by dpatch » Fri Jan 16, 2009 2:59 pm

I am going to down load it now. Thanks!

Post Reply