Page 1 of 1

Depth axis title and labels not showing

Posted: Thu Feb 14, 2008 10:18 am
by 9640703
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?

Posted: Thu Feb 14, 2008 11:01 am
by narcis
Hi gs,

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

Code: Select all

			tChart1.Axes.Depth.Visible = true;

Posted: Thu Feb 14, 2008 11:44 am
by 9640703
Thanks very much, that's done the job