Hi
In the uploaded file,why button 2 does not work? uploaded teechartexample.zip.Thanks in advance.
TChart1.Axes.Bottom.Increment does not work
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi shikha,
Your example uses series labels as bottom axis labels. For Increment to work you need to set bottom axis labels style as shown here:
Your example uses series labels as bottom axis labels. For Increment to work you need to set bottom axis labels style as shown here:
Code: Select all
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Bar1.Add(3, "Pears", Color.Red)
Bar1.Add(4, "Apples", Color.Blue)
Bar1.Add(2, "Oranges", Color.Green)
TChart1.Axes.Bottom.Labels.Style = Steema.TeeChart.AxisLabelStyle.Value
End Sub
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi shikha,
Increment is set to 27 but axis scaling is automatic. Since your bars are at X=0,1 and 2 bottom axis range goes from 0 to 2. As Increment=27 only 0 label is displayed. If you want to see 0 and 27 labels you need to manually set bottom axis range like this:
Increment is set to 27 but axis scaling is automatic. Since your bars are at X=0,1 and 2 bottom axis range goes from 0 to 2. As Increment=27 only 0 label is displayed. If you want to see 0 and 27 labels you need to manually set bottom axis range like this:
Code: Select all
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
TChart1.Axes.Bottom.Increment = 27
TChart1.Axes.Bottom.SetMinMax(0, 27)
End Sub
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 |