tnSkip & TLineSeries, first val=null => Paint Artifac
Posted: Fri Jul 04, 2008 1:34 am
Hi,
Hopefully somebody can help me shed some light on this...
I have a DBChart (Actually it really doesn't matter I have same problem with TChart).
In this chart I have a TLineSeries beginning with a couple of null values - I dont want to show/paint these null values so I am using "LineSeries.TreatNulls := tnSkip;"
This works ok - Except for the beginning op the graph which is random! This gives a random straight line on my chart
To narrow down my problem and reproduce it, I tried to save to a tee file and loading it in a standard TChart = same problem. (Maybe not at initial load - but do a resize and the error reproduces consistently!).
I have included the .tee in the bottom of post if someone wants to see for them selves...
Any help on this matter would be greatly appreciated.
Regards
Christian
object TDBChart
Left = 2
Top = 48
Width = 1050
Height = 599
Title.Font.Style = [fsItalic]
Title.Text.Strings = (
'OLSEN')
BottomAxis.Automatic = False
BottomAxis.AutomaticMaximum = False
BottomAxis.AutomaticMinimum = False
BottomAxis.Maximum = 39388.000000000000000000
BottomAxis.Minimum = 39387.041666666660000000
LeftAxis.Automatic = False
LeftAxis.AutomaticMaximum = False
LeftAxis.AutomaticMinimum = False
LeftAxis.Maximum = 1.155000000000000000
LeftAxis.Minimum = -0.521666666666666600
Legend.CurrentPage = False
Pages.ScaleLastPage = False
View3D = False
Zoom.Pen.Mode = pmNotXor
Align = alClient
BevelOuter = bvNone
TabOrder = 0
ExplicitWidth = 608
ExplicitHeight = 403
object Series1: TLineSeries
Tag = 1
Marks.Arrow.Visible = True
Marks.Callout.Brush.Color = clBlack
Marks.Callout.Arrow.Visible = True
Marks.Visible = False
DataSource = DATA
ClickableLine = False
Pointer.InflateMargins = True
Pointer.Style = psRectangle
Pointer.Visible = False
TreatNulls = tnSkip
XValues.DateTime = True
XValues.Name = 'X'
XValues.Order = loNone
XValues.ValueSource = 'DateTimeRef'
YValues.Name = 'Y'
YValues.Order = loNone
YValues.ValueSource = 'ESBJwl11a'
Data = {
032700000000000000603BE3400000000000000000FFFFFF1F398EE338603BE3
400000000000000000FFFFFF1F721CC771603BE3400000000000000000FFFFFF
1FABAAAAAA603BE3400000000000000000FFFFFF1FE4388EE3603BE340000000
0000000000FFFFFF1F1CC7711C613BE3400000000000000000FFFFFF1F555555
55613BE3403096FC62C92FC6BF000000208EE3388E613BE34000000000000000
00FFFFFF1FC7711CC7613BE3400000000000000000FFFFFF1F00000000623BE3
400000000000000000FFFFFF1F398EE338623BE3400000000000000000FFFFFF
1F721CC771623BE3400000000000000000FFFFFF1FABAAAAAA623BE3407B14AE
47E17AC43F00000020E4388EE3623BE3400000000000000000FFFFFF1F1CC771
1C633BE3400000000000000000FFFFFF1F55555555633BE34000000000000000
00FFFFFF1F8EE3388E633BE3400000000000000000FFFFFF1FC7711CC7633BE3
400000000000000000FFFFFF1F00000000643BE340898888888888E03F000000
20398EE338643BE3400000000000000000FFFFFF1F721CC771643BE340000000
0000000000FFFFFF1FABAAAAAA643BE3400000000000000000FFFFFF1FE4388E
E3643BE3400000000000000000FFFFFF1F1CC7711C653BE34000000000000000
00FFFFFF1F50FAA44F653BE3400000000000000000FFFFFF1F55555555653BE3
40ABAAAAAAAAAAEA3F000000208EE3388E653BE3400000000000000000FFFFFF
1FC7711CC7653BE3400000000000000000FFFFFF1F00000000663BE340000000
0000000000FFFFFF1F398EE338663BE3400000000000000000FFFFFF1F721CC7
71663BE3400000000000000000FFFFFF1FA54FFAA4663BE34000000000000000
00FFFFFF1FABAAAAAA663BE34041A70D74DA40F13F00000020E4388EE3663BE3
400000000000000000FFFFFF1F1CC7711C673BE3400000000000000000FFFFFF
1F55555555673BE3400000000000000000FFFFFF1F8EE3388E673BE340000000
0000000000FFFFFF1FC7711CC7673BE3400000000000000000FFFFFF1F000000
00683BE3407B14AE47E17AF23F00000020}
end
end
Hopefully somebody can help me shed some light on this...
I have a DBChart (Actually it really doesn't matter I have same problem with TChart).
In this chart I have a TLineSeries beginning with a couple of null values - I dont want to show/paint these null values so I am using "LineSeries.TreatNulls := tnSkip;"
This works ok - Except for the beginning op the graph which is random! This gives a random straight line on my chart
To narrow down my problem and reproduce it, I tried to save to a tee file and loading it in a standard TChart = same problem. (Maybe not at initial load - but do a resize and the error reproduces consistently!).
I have included the .tee in the bottom of post if someone wants to see for them selves...
Any help on this matter would be greatly appreciated.
Regards
Christian
object TDBChart
Left = 2
Top = 48
Width = 1050
Height = 599
Title.Font.Style = [fsItalic]
Title.Text.Strings = (
'OLSEN')
BottomAxis.Automatic = False
BottomAxis.AutomaticMaximum = False
BottomAxis.AutomaticMinimum = False
BottomAxis.Maximum = 39388.000000000000000000
BottomAxis.Minimum = 39387.041666666660000000
LeftAxis.Automatic = False
LeftAxis.AutomaticMaximum = False
LeftAxis.AutomaticMinimum = False
LeftAxis.Maximum = 1.155000000000000000
LeftAxis.Minimum = -0.521666666666666600
Legend.CurrentPage = False
Pages.ScaleLastPage = False
View3D = False
Zoom.Pen.Mode = pmNotXor
Align = alClient
BevelOuter = bvNone
TabOrder = 0
ExplicitWidth = 608
ExplicitHeight = 403
object Series1: TLineSeries
Tag = 1
Marks.Arrow.Visible = True
Marks.Callout.Brush.Color = clBlack
Marks.Callout.Arrow.Visible = True
Marks.Visible = False
DataSource = DATA
ClickableLine = False
Pointer.InflateMargins = True
Pointer.Style = psRectangle
Pointer.Visible = False
TreatNulls = tnSkip
XValues.DateTime = True
XValues.Name = 'X'
XValues.Order = loNone
XValues.ValueSource = 'DateTimeRef'
YValues.Name = 'Y'
YValues.Order = loNone
YValues.ValueSource = 'ESBJwl11a'
Data = {
032700000000000000603BE3400000000000000000FFFFFF1F398EE338603BE3
400000000000000000FFFFFF1F721CC771603BE3400000000000000000FFFFFF
1FABAAAAAA603BE3400000000000000000FFFFFF1FE4388EE3603BE340000000
0000000000FFFFFF1F1CC7711C613BE3400000000000000000FFFFFF1F555555
55613BE3403096FC62C92FC6BF000000208EE3388E613BE34000000000000000
00FFFFFF1FC7711CC7613BE3400000000000000000FFFFFF1F00000000623BE3
400000000000000000FFFFFF1F398EE338623BE3400000000000000000FFFFFF
1F721CC771623BE3400000000000000000FFFFFF1FABAAAAAA623BE3407B14AE
47E17AC43F00000020E4388EE3623BE3400000000000000000FFFFFF1F1CC771
1C633BE3400000000000000000FFFFFF1F55555555633BE34000000000000000
00FFFFFF1F8EE3388E633BE3400000000000000000FFFFFF1FC7711CC7633BE3
400000000000000000FFFFFF1F00000000643BE340898888888888E03F000000
20398EE338643BE3400000000000000000FFFFFF1F721CC771643BE340000000
0000000000FFFFFF1FABAAAAAA643BE3400000000000000000FFFFFF1FE4388E
E3643BE3400000000000000000FFFFFF1F1CC7711C653BE34000000000000000
00FFFFFF1F50FAA44F653BE3400000000000000000FFFFFF1F55555555653BE3
40ABAAAAAAAAAAEA3F000000208EE3388E653BE3400000000000000000FFFFFF
1FC7711CC7653BE3400000000000000000FFFFFF1F00000000663BE340000000
0000000000FFFFFF1F398EE338663BE3400000000000000000FFFFFF1F721CC7
71663BE3400000000000000000FFFFFF1FA54FFAA4663BE34000000000000000
00FFFFFF1FABAAAAAA663BE34041A70D74DA40F13F00000020E4388EE3663BE3
400000000000000000FFFFFF1F1CC7711C673BE3400000000000000000FFFFFF
1F55555555673BE3400000000000000000FFFFFF1F8EE3388E673BE340000000
0000000000FFFFFF1FC7711CC7673BE3400000000000000000FFFFFF1F000000
00683BE3407B14AE47E17AF23F00000020}
end
end