Page 1 of 1

TChart Numeric Gauge

Posted: Tue Sep 25, 2012 1:41 pm
by 16562167
I have a question about TCharts Numeric Gauge.
No matter what theme or pallete I choose, after compiling and running the program, the gradient on the back is always returned to his standard 'green'-white gradient.
The GUI designer in delphi does show the gradient correctly.

Re: TChart Numeric Gauge

Posted: Tue Sep 25, 2012 2:14 pm
by yeray
Hi,
Mobics wrote:No matter what theme or pallete I choose, after compiling and running the program, the gradient on the back is always returned to his standard 'green'-white gradient.
The gauges are quite special series that don't use the regular axes or walls. That's why the themes don't work as with the other series types.
Mobics wrote:The GUI designer in delphi does show the gradient correctly.
I don't see it and I'm not sure the themes/palettes ever applied to the numeric gauge.
What version are you using? Could you please explain what exact steps we could follow to reproduce it here?
A screenshot could help here.

Re: TChart Numeric Gauge

Posted: Wed Sep 26, 2012 8:09 am
by 16562167
I'm using version TeeChart Pro v2012.06.120613 32bit VCL.
Create like this:
Add TChart -> Add Series: gauges: 'Numeric Gauge' -> then open the gauge.
Tab 'Format' -> there tab 'Back' -> there tab 'Gradient' and there I create a different Gradient.

Knipsel.PNG
Difference
Knipsel.PNG (49.96 KiB) Viewed 6560 times
Left is compiled, right is designer.

Re: TChart Numeric Gauge

Posted: Wed Sep 26, 2012 12:34 pm
by yeray
Hi,

You're right. It seems the properties set at designtime in the Gradient tab aren't correctly serialized.
I've added it to the wish list to be revised for future releases (TV52016362). In the meanwhile, you could set them at runtime. Ie:

Code: Select all

    Series1.Face.Gradient.Visible:=false;
Or:

Code: Select all

    Series1.Face.Gradient.StartColor:=clBlack;
    Series1.Face.Gradient.MidColor:=clGrayText;
    Series1.Face.Gradient.EndColor:=clBlack;

Re: TChart Numeric Gauge

Posted: Wed Sep 26, 2012 12:39 pm
by 16562167
I will try this later.

I also found a problem for the linear gauge. It looks like it doesn't save the Bottom Axis Title (at least: after compiling it stil says 'Axis Title %') and on the other moment it is even changed back to this in designer mode.

Re: TChart Numeric Gauge

Posted: Wed Sep 26, 2012 3:06 pm
by 16562167
Working correctly with your solution.
I'm also doing this with the text in de LinearGauge

Re: TChart Numeric Gauge

Posted: Thu Sep 27, 2012 9:46 am
by yeray
Hi Mobics,
Mobics wrote:I also found a problem for the linear gauge. It looks like it doesn't save the Bottom Axis Title (at least: after compiling it stil says 'Axis Title %') and on the other moment it is even changed back to this in designer mode.
I've added this to the wish list too (TV52016365).
Mobics wrote:Working correctly with your solution.
I'm also doing this with the text in de LinearGauge
I'm glad to hear the workaround works fine for you