Changing pie series color in TChart 8 to TChart 2010

TeeChart Beta versions
Post Reply
TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Changing pie series color in TChart 8 to TChart 2010

Post by TestAlways » Wed Apr 14, 2010 12:35 am

[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

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

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

Post by Narcís » Wed Apr 14, 2010 7:16 am

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!
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

TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

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

Post by TestAlways » Wed Apr 14, 2010 10:28 pm

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

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

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

Post by Narcís » Thu Apr 15, 2010 8:10 am

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.
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

Post Reply