Teechart.Net (1.1 framework) version:
2.0.2586.24038
Visual Studio 2003
ASP.Net 1.1
The problem occurs when we set a certain point as transparent, then the next point(which has a color) and it's corresponding line will not be drawn.
However, if we set the color of the line to System.drawing.color.fromargb(0,0,0,0) rather than system.drawing.color.Transparent, then the behaviour is as it should be, although we need to set the previous point to have the same value as the next point.
I have prepared a small demo to show the problem:
Code: Select all
Dim aSeries As New Steema.TeeChart.Styles.Line
Dim workingDate As Date
aSeries.Stairs = True
aSeries.InvertedStairs = True
aSeries.XValues.DateTime = True
aSeries.Title = ""
aSeries.Color = System.Drawing.Color.Red
workingDate = workingDate.AddMinutes(15)
aSeries.Add(workingDate, 3000, System.Drawing.Color.Transparent)
workingDate = workingDate.AddMinutes(15)
aSeries.Add(workingDate, 3000, System.Drawing.Color.Transparent)
workingDate = workingDate.AddMinutes(15)
aSeries.Add(workingDate, 3000, System.Drawing.Color.Red)
workingDate = workingDate.AddMinutes(15)
aSeries.Add(workingDate, 3000, System.Drawing.Color.Transparent)
workingDate = workingDate.AddMinutes(15)
aSeries.Add(workingDate, 3000, System.Drawing.Color.Transparent)
mForecastChart.Chart.Series.Add(aSeries)
mForecastChart.Chart.Axes.Left.SetMinMax(0, 5000)