Legend
Re: Legend
Hello Fulcrum,
I suggest you use MaxNumRows as do in next simple code:
Could you tell us if previous code works in your end?
Thanks,
I suggest you use MaxNumRows as do in next simple code:
Code: Select all
Dim pie As Steema.TeeChart.Styles.Pie
Dim ch1 As Steema.TeeChart.TChart
Private Sub Initializechart()
ch1 = New Steema.TeeChart.TChart()
Me.Controls.Add(ch1)
pie = New Pie(ch1.Chart)
pie.FillSampleValues(10)
ch1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom
ch1.Legend.MaxNumRows = 5
End Sub
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: Legend
Hello Fulcrum,
I suggest you use MaxNumRows as do in next simple code:
Could you tell us if previous code works in your end?
Thanks,
I suggest you use MaxNumRows as do in next simple code:
Code: Select all
Dim pie As Steema.TeeChart.Styles.Pie
Dim ch1 As Steema.TeeChart.TChart
Private Sub Initializechart()
ch1 = New Steema.TeeChart.TChart()
Me.Controls.Add(ch1)
pie = New Pie(ch1.Chart)
pie.FillSampleValues(10)
ch1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom
ch1.Legend.MaxNumRows = 5
End Sub
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: Legend
Hello Sandra,
with this propertie the legend only show 5 of the parts, and the rest dissapears
with this propertie the legend only show 5 of the parts, and the rest dissapears
Re: Legend
Hello Fulcrum,
Thanks,
No, The property MaxNumRows sets the Maximum number of Legend Rows displayed for a horizontal (Chart Top or Bottom) Legend. Therefore, for example,If you there are 20 values and you want two columns you need set the property MaxNumRows for example 10, because appears all the values.with this propertie the legend only show 5 of the parts, and the rest dissapears
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: Legend
I have probed it and only shows 5 parts
Re: Legend
Hello Fulcrum,
How many values do you have?
Thanks,
How many values do you have?
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: Legend
Hello Fulcrum,
Using next code, where I have used 10 values and Legend.MaxNumRows = 5:
I have gotten next results:
As you see, I have a legend with two columns but 5 rows. Could you please tell us, if the result image is correct for you? If you consider isn't correct, would be very grateful if you can tell us, why.
Thanks,
Using next code, where I have used 10 values and Legend.MaxNumRows = 5:
Code: Select all
Public Sub New()
' This call is required by the designer.
InitializeComponent()
InitializeChart()
' Add any initialization after the InitializeComponent() call.
End Sub
Dim pie As Steema.TeeChart.Styles.Pie
Dim ch1 As Steema.TeeChart.TChart
Private Sub Initializechart()
ch1 = New Steema.TeeChart.TChart()
Me.Controls.Add(ch1)
pie = New Pie(ch1.Chart)
pie.FillSampleValues(10)
ch1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom
ch1.Legend.MaxNumRows = 5
End Sub
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 |