![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | [TV52015600] TLineSeries Color, Pen.Color, LinePen.Color and OutLine.Color need a ... | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | IN_PROGRESS --- | ||
| Severity: | major | CC: | david |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
In order to fix/improve this, just a few notes:
1) LinePen and Pen properties are exactly the same.
("LinePen" is just an alias to "Pen" for Line series.)
So, changing any Pen property modifies LinePen and vice-versa as they are exactly the same object.
2) This test code (Green pen, Red series) should paint the legend symbol in red (2D and 3D). This is a bug to be fixed.
3) With Outline visible, switching from 3D to 2D to 3D changes the series color. This is also a bug to be fixed.
|
TLineSeries Color, Pen.Color, LinePen.Color and OutLine.Color need a quite deep revision. The following code, tried in v8.08 and v2011.03: uses Series; procedure TForm1.FormCreate(Sender: TObject); begin Chart1.Legend.LegendStyle:=lsSeries; with Chart1.AddSeries(TLineSeries) as TLineSeries do begin FillSampleValues(); Color:=clRed; LinePen.Color:=clYellow; Pen.Color:=clGreen; Pen.Width:=2; end; end; v2011, 3D: Red surfaces with green borders. Totally green shape in legend. v2011, 2D: Red line. Geen line in legend symbol. v8, 3D: Red surfaces with green borders. Red shape with green border in legend. v8, 2D: Red line. Geen line in legend symbol. In .NET v4.1.2011 there isn't a Series.Pen property so you can only set the Series.Color and the LinePen.Color: tChart1.Legend.LegendStyle=Steema.TeeChart.LegendStyles.Series; Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart); line1.FillSampleValues(); line1.Color = Color.Red; line1.LinePen.Color = Color.Yellow; line1.LinePen.Width = 2; The code above, in .NET v4.1.2011, shows: 3D: Red surfaces with yellow border. Red shape with yellow border in legend. 2D: Red line both in the chart and in the legend. There is also an OutLine property for both VCL and .NET. If we add the following to the code above: VCL: OutLine.Visible:=true; OutLine.Color:=clGray; OutLine.Width:=2; .NET: line1.OutLine.Visible = true; line1.OutLine.Color = Color.Gray; line1.OutLine.Width = 2; We have the following results: VCL v2011, 3D: Red surfaces with green and gray borders. Totally green shape in legend. VCL v2011, 2D: Red line with gray border. Geen line in legend symbol. If you go back to 3D you get geen surfaces with gray borders. Totally green shape in legend. VCL v8, 3D: Red surfaces with green and gray borders. Red shape with green border in legend. VCL v8, 2D: Green line with gray border. Red line in legend symbol. If you go back to 3D you get geen surfaces with gray borders. Totally green shape in legend. .NET 3D: Red surfaces with yellow and gray border. Red shape with yellow border in legend. .NET 2D: Red line with gray border. Red line in legend symbol. [created:2011-06-02T11:13:08.000+01:00 reported by:yeray@steema.com reported in version:2011.03.30407 (TeeChart VCL)]