IsoSurface 3D Chart Palete Problem

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Luis
Newbie
Newbie
Posts: 2
Joined: Mon Jul 27, 2009 12:00 am

IsoSurface 3D Chart Palete Problem

Post by Luis » Tue Aug 31, 2010 6:24 pm

Hi,

Im trying to make a TIsoSurface serie in the chart using this kind of code below:

Code: Select all

...
with Series1 do
begin
    for i := 1 to 29 do
         for j := 1 to 29 do
             AddXYZ(i, MyMatrix[i, j], j);
    for k := 1 to 15 do
        AddPalette(MyScaleValues[k], MyColors[k]);
end;
And it did well, except for the colors of the palete works like each color is placed in chart below the value (in Y axis) because it obey the palete rule: palete(upToVale, color);.
But I need something that works with a rule like this: palete(FromStartValue, color);
If I give a next color, of my sequence colors, the chart match with what I want, but the Legend does not match the color with the correct value; and if I do like I'm doing the Legend gets OK, but the colors in chart does not match with my needs.

Is there some way, property or code, that do the trick?

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

Re: IsoSurface 3D Chart Palete Problem

Post by Yeray » Thu Sep 02, 2010 2:04 pm

Hi Luis,

The easier would be to modify the legend symbols or the legend texts. Take a look a the following examples in the "features demo" program:
- All features\Welcome !\Miscellaneous\Legend\Symbol OnDraw
- All features\Welcome !\Miscellaneous\Legend\Items property
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

Luis
Newbie
Newbie
Posts: 2
Joined: Mon Jul 27, 2009 12:00 am

Re: IsoSurface 3D Chart Palete Problem

Post by Luis » Thu Sep 09, 2010 9:27 pm

Hi Yeray,

Please give me the path to get this Features Demo program, I have searching im my Steema DVD and I do not found it.
If this sample is inside Steema website give me the link to download.

Thank you.

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

Re: IsoSurface 3D Chart Palete Problem

Post by Yeray » Fri Sep 10, 2010 3:24 pm

Hi Luis,

The Feature demo program is included with the installer. Once you install TeeChart, you should find a shortcut to it in the StartMenu, ina route similar to StartMenu/Programs/Steema TeeChart v2010 fo Delphi 2010/New Features Demo.
The exe should be in the installation path, something like C:\Program Files\Steema Software\TeeChart 2010 for Delphi 2010\Examples\Tee9New.exe
And the sources at C:\Program Files\Steema Software\TeeChart 2010 for Delphi 2010\Examples\Features\
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