![]() | 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: | Duplicated series with Color=clTeeColor | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | Bert Kreisel <bert.kreisel> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | david, sandra |
| Priority: | Low | ||
| Version: | 150901 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | RAD XE5 |
| Attachments: | small test project | ||
|
Description
Bert Kreisel
2015-11-24 06:06:55 EST
The code below reproduce the problem: uses TeeExport,TeeStore,TeCanvas,TeeJPEG,TeePNG; var Series1,Series2:TLineSeries; procedure TForm1.FormCreate(Sender: TObject); begin Series1 :=TLineSeries.Create(self); Chart1.AddSeries(Series1); Series1.FillSampleValues(10); Chart1.AddSeries(CloneChartSeries(Chart1[0])); Chart1.Axes.Left.Title.Visible := true; Chart1.Axes.Left.Title.Text := 'Axis Left'; Chart1.Axes.Left.Title.TextAlignment := taLeftJustify; Chart1.Axes.Left.Title.Position := tpCenter; Chart1.Axes.Left.Texts.Position := lpBeforeTick; SaveChartToFile(TCustomChart(Chart1),ExtractFilePath(ParamStr(0))+'\ChartAxisPosition.tee'); end; procedure TForm1.Button1Click(Sender: TObject); begin LoadChartfromFile(TCustomChart(Chart1),ExtractFilePath(ParamStr(0))+'\ChartAxisPosition.tee'); end; >>One solution could be setting the color of the
>>duplicated series to the next FreeSeriesColor
>>after duplicating (I would suggest this).
This is what was already been done, but unfortunately a bug was doing it again, changing back the new free color to the original one, so that's why the two series appear red.
The correct output (before saving to *.tee file) is first series red and second series green. Saving and loading does not change the default colors.
Created attachment 1039 [details]
small test project
|