![]() | 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: | [TV52016059] If you add the points with color to your TSurfaceSeries, the surface ... | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Series | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | CONFIRMED --- | ||
| Severity: | enhancement | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
If you add the points with color to your TSurfaceSeries, the surface is drawn correctly but not the legend. If you set UseColorRange to false, then the legend shows the colors and values you set, but the surface has changed to one uniform color. uses TeeSurfa; procedure TForm1.FormCreate(Sender: TObject); var col: TColor; x, z, m, n: Integer; y, range: Double; begin m:=5; n:=5; range:=255 / (m * n); with Chart1.AddSeries(TSurfaceSeries) as TSurfaceSeries do begin for x:=1 to m do begin for z:=1 to n do begin y:=x*z; col:=RGB(Round(y*range), Round(y*range), 0); AddXYZ(x, y, z, '', col); end; end; //UseColorRange:=false; end; end; [created:2012-03-01T14:07:58.000+01:00 reported by:yeray@steema.com reported in version:2011.04.41118 (TeeChart VCL)]