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
How to remove axes and legends from chart
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Antoon,
You can set the axis ore legend visible property to false and won't be drawn.
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 35
- Joined: Wed Feb 25, 2004 5:00 am
- Location: WL| Delft Hydraulics, Holland
- Contact:
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
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
Hi Antoon,
maybe this will help you too: removal of custom axes.
Best Regards
Alex
maybe this will help you too: removal of custom axes.
Code: Select all
With Chart_
.Series.Clear()
.Axes.Custom.Clear()
end with
Alex