Using TeeChart .NET 4.1.2012.02280
If none of the series assigned to a certain vertical axis are visible, the axis labels and tick marks disappear automatically. Is there a way to have the axis title disappear automatically in this situation also?
Axis title's visibility tied to axis labels' visibility?
Re: Axis title's visibility tied to axis labels' visibility?
Hello JayG,
If you don't assign series to the certain vertical axis, the title, labels and tick marks of axes, don't appear. It works for me using last version and next code:
Can you please modify previous code so we can reproduce your problem here?
Thanks,
If you don't assign series to the certain vertical axis, the title, labels and tick marks of axes, don't appear. It works for me using last version and next code:
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
Steema.TeeChart.Styles.Line line1 = new Line(tChart1.Chart);
line1.FillSampleValues();
//Axes
tChart1.Axes.Left.Title.Visible = true;
tChart1.Axes.Left.Title.Text = "Axies Left";
}
private void button1_Click(object sender, EventArgs e)
{
tChart1[0].VertAxis = VerticalAxis.Right;
}
Thanks,
Best Regards,
Sandra Pazos / 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 |
Re: Axis title's visibility tied to axis labels' visibility?
Change the code in the button1_Click procedure:
After clicking the button, the left axis title remains visible, even though the scale and labels disappear.
Code: Select all
private void InitializeChart()
{
tChart1.Aspect.View3D = false;
Steema.TeeChart.Styles.Line line1 = new Line(tChart1.Chart);
line1.FillSampleValues();
//Axes
tChart1.Axes.Left.Title.Visible = true;
tChart1.Axes.Left.Title.Text = "Axis Left";
}
private void button1_Click(object sender, EventArgs e)
{
tChart1[0].Visible = false;
}
Re: Axis title's visibility tied to axis labels' visibility?
Hello JayG,
Thanks for information. The only solution as you have is setting the Title of Axes when you do invisible your series. You can do something as next:
Can you tell us if it solve your problem? If it doesn't help you please let me know.
Thanks,
Thanks for information. The only solution as you have is setting the Title of Axes when you do invisible your series. You can do something as next:
Code: Select all
tChart1.Axes.Left.Title.Visible = false;
Thanks,
Best Regards,
Sandra Pazos / 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 |