Recent

Author Topic: [solved] color scheme - just for beauty  (Read 556 times)

Nicole

  • Hero Member
  • *****
  • Posts: 1095
[solved] color scheme - just for beauty
« on: March 29, 2025, 03:36:22 pm »
I use a TAChart, this time in the modus - how is it called in English? - cake shaped.
It does nicely, however I do not like the colors too much. Smother would be nicer.

I know a way to set each color one by one and hex-code by hex-code.
Is there a different way?
Something prefab?  A property for a theme?
A collection of colors in harmony?
« Last Edit: April 08, 2025, 11:10:42 am by Nicole »

wp

  • Hero Member
  • *****
  • Posts: 12793
Re: color scheme - just for beauty
« Reply #1 on: March 29, 2025, 04:19:04 pm »
I use a TAChart, this time in the modus - how is it called in English? - cake shaped.
PieSeries?

There are no pre-defined palettes. But you can always specify the color of a datapoint by the 4th parameter of the AddXY call:
Code: Pascal  [Select][+][-]
  1. procedure TForm1.FormCreate(Sender: TObject);
  2. begin
  3.   Chart1PieSeries1.AddXY(0, 30, '', $317DED);
  4.   Chart1PieSeries1.AddXY(0, 60, '', $A5A5A5);
  5.   Chart1PieSeries1.AddXY(0, 10, '', $00CCFF);
  6.   Chart1PieSeries1.AddXY(0, 120, '', $D59B5B);
  7.   Chart1PieSeries1.AddXY(0, 20, '', $47AD70);
  8. end;

Nicole

  • Hero Member
  • *****
  • Posts: 1095
Re: color scheme - just for beauty
« Reply #2 on: March 29, 2025, 08:34:37 pm »
danke, ist gesichert

 

TinyPortal © 2005-2018