Page 1 of 1
Inverting chart / series colors automatically
Posted: Wed May 13, 2015 6:57 pm
by 16470144
I am displaying a chart (FastLine Series) in 2 different modes, one that is updated in real time, and one that shows past data. When real time mode is selected, I would like to invert the colors of the Chart, Axes, Titles, Series, automatically. Is there any easy way to do this?
Thank you.
M Weingarden
Re: Inverting chart / series colors automatically
Posted: Thu May 14, 2015 9:31 am
by yeray
Hello Weingarden,
You could use Themes feature for this. You can create two custom themes, one for each mode, and set them when needed.
Take a look at this article on the blog:
http://steema.com/wp/blog/2014/03/17/te ... nd-themes/
Re: Inverting chart / series colors automatically
Posted: Tue Jun 02, 2015 2:57 pm
by 16470144
The themes certainly will help out. Are there any examples in C++? When I try to compile ApplyChartTheme using one of the TXxxthemes as a parameter, I am getting an error. What is the correct way to call the routine in C++ (Rad Studio XE7)?
Thank you
Re: Inverting chart / series colors automatically
Posted: Mon Jun 08, 2015 7:37 am
by narcis
Hello,
Apologies for the delayed reply here.
You can call
ApplyChartTheme in C++ Builder like this:
Code: Select all
TFlatTheme * flat = new TFlatTheme(Chart1);
ApplyChartTheme(flat->ClassType(),Chart1);