Contour plot based on SQL-query

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
llnck
Newbie
Newbie
Posts: 7
Joined: Thu Sep 20, 2012 12:00 am

Contour plot based on SQL-query

Post by llnck » Mon Dec 15, 2014 9:39 am

Hi all,

I want to create a contour plot which is linked to an SQL-query.
I'm wondering what will happen, if the query yields multiple values for a given x and y coordinate?
Will only the first or last value be plotted or is an average calculated?

Thanks for a hint

Norbert

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Contour plot based on SQL-query

Post by Yeray » Mon Dec 15, 2014 2:22 pm

Hi Norbert,

You should avoid adding repeated values, they aren't allowed as you can read in the procedure SearchXValue at TeeSurfa.pas:

Code: Select all

    // Adds unique values of "AValue" to "Values" array.
    // Repeated values aren't allowed.
    Procedure SearchXValue(const Value:TChartValue);
    begin
      if SearchSorted(Value,XCount,XVals)=-1 then
      begin
        XVals[XCount]:=Value;
        Inc(XCount);
      end;
    end;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply