Steema Issues Database

Note: 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.



Bug 267 - [TV52016059] If you add the points with color to your TSurfaceSeries, the surface ...
Summary: [TV52016059] If you add the points with color to your TSurfaceSeries, the sur...
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: unspecified
Hardware: All All
: Normal enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-01 14:07 EST by yeray alonso
Modified: 2013-11-20 10:35 EST (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2013-11-20 10:35:28 EST
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)]