What Properties must I set to get this result? (Palette)

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
wschrabi
Newbie
Newbie
Posts: 12
Joined: Mon Jan 17, 2005 5:00 am

What Properties must I set to get this result? (Palette)

Post by wschrabi » Wed Jul 23, 2008 7:30 pm

Dear friend,
Can someone tell me, what Palette Properties must I set to get this Result. I tried the UsePalette but I always get not this Rainbow style but a graduating color style. Here is the wanted result - captured from the demo.
http://festplatte.aon.at/a/filemanager. ... ellung.png

Ok, friends I found it out. But when you see my pic ()you can see that the legend shows the wanted rainbow-style pallete but the data dont look like in the first pic. It loks aweful. How must I define the data, that I can get an result like in the wanted first example?

Here my wrong result.
http://festplatte.aon.at/a/filemanager. ... /wrong.png

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jul 24, 2008 8:40 am

Hi wschrabi,

It seems to me that you need to add more values to your series, try something like this:

Code: Select all

  Series1.FillSampleValues(50);
  Series1.Pen.Visible:=false;

  Chart1.Chart3DPercent:=100;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

wschrabi
Newbie
Newbie
Posts: 12
Joined: Mon Jan 17, 2005 5:00 am

Why is in the chart red color there where the arrow pointsto

Post by wschrabi » Thu Jul 24, 2008 11:08 am

Hi Narcis,
thanks yes now I can see it as wanted. But I do not understand why the color is red on that points where I draw the green arrow?
It does not fit to the legend.
HAve you an idea?
Thanks

http://festplatte.aon.at/a/filemanager. ... edhere.png

PS: I think it has something to do with PaletteSteps := 40; because when I use PaletteSteps := 20; then the color fits to the legend. Can you explain this?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jul 24, 2008 1:28 pm

Hi wschrabi,

Yes, exactly. RainbowPalette has 25 colours. If NumSteps is set to a bigger number it repeats colours as you have experienced.

You can avoid this enabling "Use palette minimum" checkbox:

Code: Select all

  Series1.UsePaletteMin:=true;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

wschrabi
Newbie
Newbie
Posts: 12
Joined: Mon Jan 17, 2005 5:00 am

thank you

Post by wschrabi » Thu Jul 24, 2008 3:06 pm

Thanks a lot, now the secret is disclosed. :D

Post Reply