Depth axis title and labels not showing

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
gs
Newbie
Newbie
Posts: 84
Joined: Mon Mar 20, 2006 12:00 am
Location: US

Depth axis title and labels not showing

Post by gs » Thu Feb 14, 2008 10:18 am

I have a 3D surface chart, but the title and labels are not shoing on the depth axis. I am setting them using

Code: Select all

tChart.Axes.Depth.Ticks.Visible = true;
tChart.Axes.Depth.Title.Text = "blah"
and

Code: Select all

private void AddLabel( Steema.TeeChart.AxisLabels als, string sText, double nValue ) {

            Steema.TeeChart.AxisLabelItem li = new Steema.TeeChart.AxisLabelItem(_chart);
            li.Text = sText;
            li.Value = nValue;
            li.Transparent = true;
            li.Transparency = 50;
            als.Items.Add(li);                

        }

        public void SetAxesLabels(List<string> Labels1, List<string> Labels2) {


            // set the tick labels on the horizontal axis
            for (int k = 0; k < Labels1.Count; ++k) {
                AddLabel(_chart.Axes.Bottom.Labels, Labels1[k], k);
            }

            // set the tick labels on the depth axis
            for (int k = 0; k < Labels2.Count; ++k) {
                AddLabel(_chart.Axes.Depth.Labels, Labels2[k],k);
            }
        }
The bottom axis is perfect, but there is no title or labels on the depth axis. Why is this?

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

Post by Narcís » Thu Feb 14, 2008 11:01 am

Hi gs,

You also need to set Depth axis to visible like this:

Code: Select all

			tChart1.Axes.Depth.Visible = true;
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

gs
Newbie
Newbie
Posts: 84
Joined: Mon Mar 20, 2006 12:00 am
Location: US

Post by gs » Thu Feb 14, 2008 11:44 am

Thanks very much, that's done the job

Post Reply