How to remove axes and legends from chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Anthony
Newbie
Newbie
Posts: 35
Joined: Wed Feb 25, 2004 5:00 am
Location: WL| Delft Hydraulics, Holland
Contact:

How to remove axes and legends from chart

Post by Anthony » Tue Feb 08, 2005 8:00 am

Hi,

Of course I know how to add axes and legend to my chart, but how to remove .....

In my code I add a bottom axis by:
bottom = tChart1.Axes.Bottom;
bottom.Chart = tChart1.Chart;

but how to remove ?

For my legend I apply code like:
tChart1.Legend.TopLeftPos = 5;

but how to remove this legend ?

Thanks in advance.

Kind regards,
Antoon Koster
Netherlands

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

Post by Narcís » Tue Feb 08, 2005 9:38 am

Hi Antoon,

You can set the axis ore legend visible property to false and won't be drawn.
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

Anthony
Newbie
Newbie
Posts: 35
Joined: Wed Feb 25, 2004 5:00 am
Location: WL| Delft Hydraulics, Holland
Contact:

Post by Anthony » Tue Feb 08, 2005 11:45 am

Hi,

Thanks for your reply.

But if I want to redraw my chart with a different legend (more items in it) and different axes (different length, grids, labels, etc. ), I first need to remove them from the chart, and then add the newly generated axes and legend to my chart.

That was my idea ....

Kind regards,
Antoon Koster
Netherlands

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

Post by Narcís » Tue Feb 08, 2005 12:16 pm

Hi Antoon,

To show new axes, you can create new custom axes and make them visible.

Regarding the legend, you can choose which items can be displayed in the legend.

You can see some examples of this in the TeeChart feature demo included with the installation. Go to the "All Features" tab and have a look at the "Axes" and the "Miscellaneous>Legend" nodes.
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

Alex
Newbie
Newbie
Posts: 38
Joined: Tue Aug 31, 2004 4:00 am
Location: Austria/Europe

Post by Alex » Tue Feb 15, 2005 3:40 pm

Hi Antoon,

maybe this will help you too: removal of custom axes.

Code: Select all

        With Chart_
            .Series.Clear()
            .Axes.Custom.Clear()
        end with
Best Regards

Alex

Post Reply