legend filled when it is not supposed to
Posted: Fri Dec 16, 2005 11:42 pm
Hello,
I have created an area series that has a no fill, and only the hatch marks from the fill are visible. This worked out just great.
Problem is that in the legend, a background color is coming up. So even though the series is red hatched lines on a clear background, in the legend it is coming up as black lines on a red background.
here is a picture
Is there a property I can set to make the legend symbol look like the plot?
The code for the form is below:
object Form1: TForm1
Left = 325
Top = 110
Width = 334
Height = 287
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object Chart1: TChart
Left = 8
Top = 8
Width = 313
Height = 233
Legend.Brush.Color = clWhite
Legend.Brush.Style = bsClear
Legend.LegendStyle = lsSeries
Title.Text.Strings = (
'TChart')
View3D = False
TabOrder = 0
object Series2: TAreaSeries
Marks.Callout.Brush.Color = clBlack
Marks.Visible = False
SeriesColor = clRed
AreaBrush = bsDiagCross
AreaChartBrush.Color = clNone
AreaChartBrush.Style = bsDiagCross
AreaColor = clRed
AreaLinesPen.Visible = False
DrawArea = True
Pointer.InflateMargins = True
Pointer.Style = psRectangle
Pointer.Visible = False
XValues.Name = 'X'
XValues.Order = loAscending
YValues.Name = 'Y'
YValues.Order = loNone
end
end
end
I have created an area series that has a no fill, and only the hatch marks from the fill are visible. This worked out just great.
Problem is that in the legend, a background color is coming up. So even though the series is red hatched lines on a clear background, in the legend it is coming up as black lines on a red background.
here is a picture
Is there a property I can set to make the legend symbol look like the plot?
The code for the form is below:
object Form1: TForm1
Left = 325
Top = 110
Width = 334
Height = 287
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object Chart1: TChart
Left = 8
Top = 8
Width = 313
Height = 233
Legend.Brush.Color = clWhite
Legend.Brush.Style = bsClear
Legend.LegendStyle = lsSeries
Title.Text.Strings = (
'TChart')
View3D = False
TabOrder = 0
object Series2: TAreaSeries
Marks.Callout.Brush.Color = clBlack
Marks.Visible = False
SeriesColor = clRed
AreaBrush = bsDiagCross
AreaChartBrush.Color = clNone
AreaChartBrush.Style = bsDiagCross
AreaColor = clRed
AreaLinesPen.Visible = False
DrawArea = True
Pointer.InflateMargins = True
Pointer.Style = psRectangle
Pointer.Visible = False
XValues.Name = 'X'
XValues.Order = loAscending
YValues.Name = 'Y'
YValues.Order = loNone
end
end
end