Page 1 of 1

Line Graph Widget - Axis and Label colours?

Posted: Tue Jan 03, 2023 3:31 pm
by j9v6
Hi everyone, I'm in the process of adding dark mode to my App and have run into a wall with setting axis and label colours for the Line Graph widget. The default colour for these elements is black, which works on a light background, however that doesn't work when you have a black background. I've looked through the Dictionary and the forums and have drawn a blank so far. It appears the only colours I can set or query are the Graph Colors and the Hilited Coordinates Colours. :/

Anyone got any ideas or workarounds?

Thanks, Al.

Re: Line Graph Widget - Axis and Label colours?

Posted: Tue Jan 03, 2023 8:21 pm
by bn
j9v6 wrote:
Tue Jan 03, 2023 3:31 pm
Hi everyone, I'm in the process of adding dark mode to my App and have run into a wall with setting axis and label colours for the Line Graph widget. The default colour for these elements is black, which works on a light background, however that doesn't work when you have a black background.
Hi Al,

You could try to put a graphic with a light gray (180,180,180) behind the Line Graph widget. Other than variations of this technique would involve changing the source code of the Line Graph widget which is a major undertaking.


LineGraphWithBackground.jpg
LineGraphWithBackground.jpg (22.97 KiB) Viewed 2589 times

Kind regards
Bernd

Re: Line Graph Widget - Axis and Label colours?

Posted: Wed Jan 04, 2023 11:59 am
by j9v6
Hi Bernd,

Thanks for your suggestion. I was mulling that over this morning as a possible way forward and your screen-shots do make it look quite nice too. The alternative is as you said to try changing the widget source code which is not something I want to get in to right now as it looks like quite a task!!!! :O.

Cheers,

Al. :)