TLineSeries not showing on TChart
Posted: Tue Aug 16, 2005 9:44 am
I have a problem with a TLineSeries not showing on my Chart. This particular series consists of several X-values incidentally all having the same Y-value, which also happens to be MaxYValue. TFastLineSeries with this data shows fine on my Chart, TLineSeries doesn't. I need to use TLineSeries in my actual code to enable TSeriesPointer.
The dfm-extract below reproduces the problem. If you uncheck Series3 and check Series1 no line shows on Y=100. However if you uncheck Series1 and check Series3, Series 3 shows fine.
Any clues how to fix this without turning off automatic axis-scaling?
Version is VCL TeeChart Pro v7.
Regards,
Christiaan ten Pas
object Chart1: TChart
Left = 40
Top = 16
Width = 400
Height = 250
Legend.CheckBoxes = True
Title.Text.Strings = ('TChart')
RightAxis.Visible = False
TopAxis.Visible = False
View3D = False
View3DWalls = False
TabOrder = 0
PrintMargins = (
15
19
15
19)
object Series1: TLineSeries
Marks.Callout.Brush.Color = clBlack
Marks.Visible = False
LinePen.Color = clRed
Pointer.InflateMargins = True
Pointer.Style = psRectangle
Pointer.Visible = False
XValues.Name = 'X'
XValues.Order = loAscending
YValues.Name = 'Y'
YValues.Order = loNone
Data = { 0005000000000000000000594000000000000059400000000000005940000000
00000059400000000000005940}
end
object Series2: TLineSeries
Marks.Callout.Brush.Color = clBlack
Marks.Visible = False
Pointer.InflateMargins = True
Pointer.Style = psRectangle
Pointer.Visible = False
XValues.Name = 'X'
XValues.Order = loAscending
YValues.Name = 'Y'
YValues.Order = loNone
Data = { 0005000000000000000000244000000000000034400000000000003E40000000
00000044400000000000005940}
end
object Series3: TFastLineSeries
Marks.Callout.Brush.Color = clBlack
Marks.Visible = False
LinePen.Color = clYellow
XValues.Name = 'X'
XValues.Order = loAscending
YValues.Name = 'Y'
YValues.Order = loNone
Data = { 0005000000000000000000594000000000000059400000000000005940000000
00000059400000000000005940}
end
end
The dfm-extract below reproduces the problem. If you uncheck Series3 and check Series1 no line shows on Y=100. However if you uncheck Series1 and check Series3, Series 3 shows fine.
Any clues how to fix this without turning off automatic axis-scaling?
Version is VCL TeeChart Pro v7.
Regards,
Christiaan ten Pas
object Chart1: TChart
Left = 40
Top = 16
Width = 400
Height = 250
Legend.CheckBoxes = True
Title.Text.Strings = ('TChart')
RightAxis.Visible = False
TopAxis.Visible = False
View3D = False
View3DWalls = False
TabOrder = 0
PrintMargins = (
15
19
15
19)
object Series1: TLineSeries
Marks.Callout.Brush.Color = clBlack
Marks.Visible = False
LinePen.Color = clRed
Pointer.InflateMargins = True
Pointer.Style = psRectangle
Pointer.Visible = False
XValues.Name = 'X'
XValues.Order = loAscending
YValues.Name = 'Y'
YValues.Order = loNone
Data = { 0005000000000000000000594000000000000059400000000000005940000000
00000059400000000000005940}
end
object Series2: TLineSeries
Marks.Callout.Brush.Color = clBlack
Marks.Visible = False
Pointer.InflateMargins = True
Pointer.Style = psRectangle
Pointer.Visible = False
XValues.Name = 'X'
XValues.Order = loAscending
YValues.Name = 'Y'
YValues.Order = loNone
Data = { 0005000000000000000000244000000000000034400000000000003E40000000
00000044400000000000005940}
end
object Series3: TFastLineSeries
Marks.Callout.Brush.Color = clBlack
Marks.Visible = False
LinePen.Color = clYellow
XValues.Name = 'X'
XValues.Order = loAscending
YValues.Name = 'Y'
YValues.Order = loNone
Data = { 0005000000000000000000594000000000000059400000000000005940000000
00000059400000000000005940}
end
end