specific text for series in legend

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
LordWhorfin
Newbie
Newbie
Posts: 24
Joined: Wed Feb 22, 2006 12:00 am
Location: Flagstaff, Arizona, USA

specific text for series in legend

Post by LordWhorfin » Wed Aug 29, 2007 9:12 pm

How can I replace the series name with other text in the legend of a webchart using vb.net?

cheers, Paul

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Aug 30, 2007 7:45 am

Hi Paul,

Try using WebChart's GetLegendText event. You'll find more information about this event in Tutorial 5 - Legend design. Tutorials can be found at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

LordWhorfin
Newbie
Newbie
Posts: 24
Joined: Wed Feb 22, 2006 12:00 am
Location: Flagstaff, Arizona, USA

legend text control

Post by LordWhorfin » Tue Sep 11, 2007 9:10 pm

It was a lot easier to just use the series title property. Like below..

Dim Temperature As New Steema.TeeChart.Styles.Points(WebChart1.Chart)
Temperature.DataSource = dt
Temperature.YValues.DataMember = dt.Columns("measurement").ToString()
Temperature.XValues.DataMember = dt.Columns("TimeStamp").ToString()
Dim srt1 As String = dt.Columns("TimeStamp").ToString
Temperature.LabelMember = srt1
Temperature.Color = Drawing.Color.DarkBlue
Temperature.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Cross
Temperature.Title = "Temperature"

Post Reply