Recent

Author Topic: [resolved] how to change background color of DataPointMarksClickTool  (Read 866 times)

Muso

  • Sr. Member
  • ****
  • Posts: 356
I use the new https://wiki.freepascal.org/TAChart_documentation#Datapoint_marks_click_tool and have a simple issue I cannot resolve yet:
- when a mark is inserted to a TLineSeries, the mark's background color is by default the SeriesColor of the TLineSeries
- when the user changes now on runtime the color, I need to change the background color of all marks of this series as well

How can this be achieved?

Lazarus 2.3.0 (rev main-2_3-3055-g96291eb9a5) FPC 3.2.2 x86_64-win64-win32/win64
« Last Edit: January 09, 2023, 11:24:29 pm by Muso »

Muso

  • Sr. Member
  • ****
  • Posts: 356
Re: how to change background color of DataPointMarksClickTool
« Reply #1 on: January 09, 2023, 11:12:58 pm »
How can this be achieved?

Oh, I found it now, I have to simply change the property "Color" of the LabelBrush of the LineSeries.

 

TinyPortal © 2005-2018