problem with not showing point in line series
Posted: Fri Mar 13, 2009 10:04 am
Hi there
I am using teechart net 2.0.2306.26232 and VB net 2005
I have a problem with the line series, which I hope you can help me with
The problem is a bit special.
If I add a line series that has exactly two points and those points both have the same value (eg. x=3 and Y=10 and X=3 and Y=10) the point is not displayed on the graph. This means that the graph is completely wrong and the end user will not know it.
Is there some kind of work-around?
See code example below.
Thanks in advance
Lars Iversen
Private Sub CreateGraph()
Dim myLineSeries As Steema.TeeChart.Styles.Line
TChart1.Chart.Aspect.View3D = False
'This creates a fine looking line series with 3 points
myLineSeries = New Steema.TeeChart.Styles.Line
myLineSeries.Pointer.Visible = True
myLineSeries.Add(1, 1)
myLineSeries.Add(2, 2)
myLineSeries.Add(3, 5)
TChart1.Series.Add(myLineSeries)
'This creates a line series where one point is added and the line series is displayed fine as one point
myLineSeries = New Steema.TeeChart.Styles.Line
myLineSeries.Pointer.Visible = True
myLineSeries.Add(1, 7)
myLineSeries.Add(3, 9)
TChart1.Series.Add(myLineSeries)
'This creates a line series where I add two points with the exact same values(duplicate)
'The point 3,10 is NOT displayed in the graph at all
myLineSeries = New Steema.TeeChart.Styles.Line
myLineSeries.Pointer.Visible = True
myLineSeries.Add(3, 10)
myLineSeries.Add(3, 10)
TChart1.Series.Add(myLineSeries)
End Sub
I am using teechart net 2.0.2306.26232 and VB net 2005
I have a problem with the line series, which I hope you can help me with
The problem is a bit special.
If I add a line series that has exactly two points and those points both have the same value (eg. x=3 and Y=10 and X=3 and Y=10) the point is not displayed on the graph. This means that the graph is completely wrong and the end user will not know it.
Is there some kind of work-around?
See code example below.
Thanks in advance
Lars Iversen
Private Sub CreateGraph()
Dim myLineSeries As Steema.TeeChart.Styles.Line
TChart1.Chart.Aspect.View3D = False
'This creates a fine looking line series with 3 points
myLineSeries = New Steema.TeeChart.Styles.Line
myLineSeries.Pointer.Visible = True
myLineSeries.Add(1, 1)
myLineSeries.Add(2, 2)
myLineSeries.Add(3, 5)
TChart1.Series.Add(myLineSeries)
'This creates a line series where one point is added and the line series is displayed fine as one point
myLineSeries = New Steema.TeeChart.Styles.Line
myLineSeries.Pointer.Visible = True
myLineSeries.Add(1, 7)
myLineSeries.Add(3, 9)
TChart1.Series.Add(myLineSeries)
'This creates a line series where I add two points with the exact same values(duplicate)
'The point 3,10 is NOT displayed in the graph at all
myLineSeries = New Steema.TeeChart.Styles.Line
myLineSeries.Pointer.Visible = True
myLineSeries.Add(3, 10)
myLineSeries.Add(3, 10)
TChart1.Series.Add(myLineSeries)
End Sub