TChart Numeric Gauge

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Mobics
Newbie
Newbie
Posts: 4
Joined: Wed Apr 11, 2012 12:00 am

TChart Numeric Gauge

Post by Mobics » Tue Sep 25, 2012 1:41 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TChart Numeric Gauge

Post by Yeray » Tue Sep 25, 2012 2:14 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Mobics
Newbie
Newbie
Posts: 4
Joined: Wed Apr 11, 2012 12:00 am

Re: TChart Numeric Gauge

Post by Mobics » Wed Sep 26, 2012 8:09 am

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 6518 times
Left is compiled, right is designer.

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TChart Numeric Gauge

Post by Yeray » Wed Sep 26, 2012 12:34 pm

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;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Mobics
Newbie
Newbie
Posts: 4
Joined: Wed Apr 11, 2012 12:00 am

Re: TChart Numeric Gauge

Post by Mobics » Wed Sep 26, 2012 12:39 pm

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.

Mobics
Newbie
Newbie
Posts: 4
Joined: Wed Apr 11, 2012 12:00 am

Re: TChart Numeric Gauge

Post by Mobics » Wed Sep 26, 2012 3:06 pm

Working correctly with your solution.
I'm also doing this with the text in de LinearGauge

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TChart Numeric Gauge

Post by Yeray » Thu Sep 27, 2012 9:46 am

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply