How can I replace the series name with other text in the legend of a webchart using vb.net?
cheers, Paul
specific text for series in legend
-
- Newbie
- Posts: 24
- Joined: Wed Feb 22, 2006 12:00 am
- Location: Flagstaff, Arizona, USA
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 24
- Joined: Wed Feb 22, 2006 12:00 am
- Location: Flagstaff, Arizona, USA
legend text control
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"
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"