Hi,
On a series legend:
- How do I change the text?
- How do I move the legends to the bottom of the graph?
- What can I keep the legend box to show the Points instead of the series name when there is only one series? (See image)
Series Legend
Re: Series Legend
Hello n84_All,
Also is possible achieve show the series points in legend if you have multiple series, You only need add a extra legend. You can find an example in TeeChartActivex Demo project All features\Miscellaneous\Legend\Multiple Legends .
I hope will helps.
Thanks,
I think you can use OnGetLegend text to modify the items as you want as do in next lines of code:- How do I change the text?
Code: Select all
Private Sub TChart1_OnGetLegendText(ByVal LegendStyle As Long, ByVal ValueIndex As Long, LegendText As String)
If ValueIndex = 2 Then
LegendText = "Hello"
End If
End Sub
To change position of Legend you must use the property Alignment as do in next line of code:- How do I move the legends to the bottom of the graph?
Code: Select all
TChart1.Legend.Alignment = laBottom
To see the points you only need change the legend style as do in next line of code:- What can I keep the legend box to show the Points instead of the series name when there is only one series? (See image)
Code: Select all
TChart1.Legend.LegendStyle = lsValues
I hope will helps.
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 |