Page 1 of 1

Changing pie series color in TChart 8 to TChart 2010

Posted: Wed Apr 14, 2010 12:35 am
by 10546565
[I've already contact Steema to upgrade to TChart 2010--but cannot put in my release application without some testing.]

I would like to use the pie series colors in TChart 2010 in TChart 8, so that it --how can I do that. What is the color array, and how can I make it so that charts will use that as a default?

Thanks
Ed Dressel

Re: Changing pie series color in TChart 8 to TChart 2010

Posted: Wed Apr 14, 2010 7:16 am
by narcis
Hi Ed,

TeeChart v8 already uses Opera palette as default palette. This is the colour palette used in 2010 version along with some additional panel and walls settings. It may not be used at your end because you may have another palette hard coded in the registry key at HKEY_CURRENT_USER\Software\Steema Software\TeeChart Pro\Editor\DefaultPalette. Opera palette value is 13 in decimal or d in hexadecimal.

Hope this helps!

Re: Changing pie series color in TChart 8 to TChart 2010

Posted: Wed Apr 14, 2010 10:28 pm
by 10546565
HKEY_CURRENT_USER\Software\Steema Software\TeeChart Pro\Editor\DefaultPalette
I checked the value and there is nothing there (I removed it). Still the same problem.

I checked the .ColorPaletteIndex of the chart, and it is set to zero after the constructor's inherited is called.

I copied the chart's DFM code and pasted it on a new form and its color palette index is 13.

I stepped through the TChart source code on the development machine and right after calling the inherited of TCustomChart.Create, the value is 0 and is never changed (no break points are ever set).

I can set it to 13 for now, but I sure would like it to work correctly. Any ideas on what.where I should look?

Ed Dressel

Re: Changing pie series color in TChart 8 to TChart 2010

Posted: Thu Apr 15, 2010 8:10 am
by narcis
Hi Ed,

What about right-clicking on the chart at designtime, selecting "Options", going to tbe "New Chart" tab and select the default palette at the left-bottom combobox?

BTW: To get similar aspect to v2010 you can set "Opera" theme as well.