Page 1 of 1

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

Posted: Wed Jul 23, 2008 7:30 pm
by 9340622
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

Posted: Thu Jul 24, 2008 8:40 am
by narcis
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;

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

Posted: Thu Jul 24, 2008 11:08 am
by 9340622
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?

Posted: Thu Jul 24, 2008 1:28 pm
by narcis
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;

thank you

Posted: Thu Jul 24, 2008 3:06 pm
by 9340622
Thanks a lot, now the secret is disclosed. :D