Depth axis title and labels not showing
Posted: 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
and
The bottom axis is perfect, but there is no title or labels on the depth axis. Why is this?
Code: Select all
tChart.Axes.Depth.Ticks.Visible = true;
tChart.Axes.Depth.Title.Text = "blah"
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);
}
}