Page 1 of 1
specific text for series in legend
Posted: Wed Aug 29, 2007 9:12 pm
by 9640386
How can I replace the series name with other text in the legend of a webchart using vb.net?
cheers, Paul
Posted: Thu Aug 30, 2007 7:45 am
by narcis
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.
legend text control
Posted: Tue Sep 11, 2007 9:10 pm
by 9640386
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"