Area Series and Color Fill

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Metman
Advanced
Posts: 113
Joined: Fri Dec 21, 2007 12:00 am

Area Series and Color Fill

Post by Metman » Fri May 24, 2013 12:48 pm

Hi

When I use an area a series and set an origin the colors are set out perfect (see 1st screen shot).
When I make the gradient visible the area above the origin is filled but the area below the origin is not filled with the gradient colors (see second screen shot).

Is there anyway round this problem or is this just how it is?

Bruce.
Capture4.jpg
1st screen shot
Capture4.jpg (270.86 KiB) Viewed 20325 times
The attachment Capture3.jpg is no longer available
Attachments
Capture3.jpg
2nd screen shot
Capture3.jpg (288.41 KiB) Viewed 20350 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Area Series and Color Fill

Post by Narcís » Fri May 24, 2013 2:44 pm

Hi Bruce,

I'm not able to reproduce the problem here using the code snippet below with the latest release (build 2013.08.130521). Can you please check if this version solves the problem at your end and, if necessary, modify the code below so that we can reproduce the issue?

Code: Select all

uses Series;

procedure TForm1.FormCreate(Sender: TObject);
var Series1 : TAreaSeries;
    i       : Integer;
begin

  Series1:=TAreaSeries.Create(Self);
  Series1.UseYOrigin:=True;
  Series1.YOrigin:=5;
  Series1.Gradient.Visible:=True;

  for i:=0 to 10 do
    Series1.Add(i);


  Chart1.View3D:=False;
  Chart1.AddSeries(Series1);
end;
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Metman
Advanced
Posts: 113
Joined: Fri Dec 21, 2007 12:00 am

Re: Area Series and Color Fill

Post by Metman » Fri May 24, 2013 4:07 pm

Thanks Narcis
It's not what you know it's who you know that counts!!

Metman
Advanced
Posts: 113
Joined: Fri Dec 21, 2007 12:00 am

Re: Area Series and Color Fill

Post by Metman » Fri May 24, 2013 4:30 pm

Narcis

Setting the origin works fine but...
Using the exact code you gave me illustrates the problem I reported about there being no gradient color fill below the origin...
Capture5.jpg
Example
Capture5.jpg (48.47 KiB) Viewed 20323 times
I am using Delphi 2007 with TChart 8.08

Bruce.

Metman
Advanced
Posts: 113
Joined: Fri Dec 21, 2007 12:00 am

Re: Area Series and Color Fill

Post by Metman » Fri May 24, 2013 4:34 pm

Sorry I should have sent this screen shot...
Capture6.jpg
Capture6.jpg (52.71 KiB) Viewed 20305 times

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

Re: Area Series and Color Fill

Post by Yeray » Mon May 27, 2013 1:52 pm

Hi,

This seems to work fine as Narcís says with the actual version. Give it a try to it, please.
test.png
test.png (12.38 KiB) Viewed 20288 times
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

Metman
Advanced
Posts: 113
Joined: Fri Dec 21, 2007 12:00 am

Re: Area Series and Color Fill

Post by Metman » Mon May 27, 2013 4:14 pm

Hi Yeray

I've now created a brand new form added a TChart component and then added the code in the OnCreate and the results are the same!

Bruce.
Capture1.jpg
Capture1.jpg (106.11 KiB) Viewed 20287 times

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

Re: Area Series and Color Fill

Post by Yeray » Tue May 28, 2013 8:26 am

Hi Bruce,
Narcís wrote:I'm not able to reproduce the problem here using the code snippet below with the latest release (build 2013.08.130521)
Bruce wrote:I am using Delphi 2007 with TChart 8.08
Yeray wrote:This seems to work fine as Narcís says with the actual version
Have you tried with the latest version, v2013.08, Bruce?
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

Metman
Advanced
Posts: 113
Joined: Fri Dec 21, 2007 12:00 am

Re: Area Series and Color Fill

Post by Metman » Tue May 28, 2013 9:16 am

Hi Yeray

Do you mean the latest trial version?

If you remember I did try that after you advised me both versions could co-exist, but when I when I came to uninstall it again, it screwed up my 8.08 version and I spent some time trying to get things up and running again.

This may have something to do with my problems that I have now, I would like to try the latest version but I don't think you do an upgrade offer for people who bought previous versions.

Bruce.

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

Re: Area Series and Color Fill

Post by Yeray » Tue May 28, 2013 2:18 pm

Hi Bruce,
Metman wrote:Do you mean the latest trial version?
Yes, the latest version is v2013.08 and the code Narcís posted gives correct gradients for us here with it.
Metman wrote:If you remember I did try that after you advised me both versions could co-exist, but when I when I came to uninstall it again, it screwed up my 8.08 version and I spent some time trying to get things up and running again.
I did? Excuse me if I did! It's quite easy to go from a version to another, thanks to TeeInstall utility shipped with the installation. I'm continuously using it to uninstall a version from an IDE and installing another one. It does most part of the job and I just have to check the paths in the IDE after using it.
However, having other components that may depend on TeeChart could make things a bit more complicate than this. I'm not sure if this was your case.
Metman wrote:This may have something to do with my problems that I have now, I would like to try the latest version but I don't think you do an upgrade offer for people who bought previous versions.
We do:
http://www.steema.com/order/vcl-pro/u

Of course I'd suggest you to try the evaluation version before proceeding.
Contact the sales department at "sales at steema dot com", if you are interested in it.
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

Metman
Advanced
Posts: 113
Joined: Fri Dec 21, 2007 12:00 am

Re: Area Series and Color Fill

Post by Metman » Tue May 28, 2013 4:46 pm

Hi Yeray

I've just installed the latest version as you suggested and rebuilt an application that uses a lot of charts and immediately noticed that any fonts that I use for titles and axis labels are not as clear as they were in v8.0.8.
Is there a setting I've missed or is this a known problem because the quality is substantially poorer now?
I do tend to use a lot of small 7 and 8 pt font sizes but it's like I just turned off the "use clear type fonts" option!

I'll let you know if it fixes the area series problem I've been getting, but I'm all ready regretting installing the trial version again, and I certainly wouldn't be very pleased with the way my charts are looking if I'd just stumped up 304 euros for this upgrade.

Bruce.
before.png
Before
before.png (46.27 KiB) Viewed 20255 times
after.png
After
after.png (61.06 KiB) Viewed 20253 times

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

Re: Area Series and Color Fill

Post by Yeray » Wed May 29, 2013 9:41 am

Hi,

Try adding the TeCanvas unit at the uses clause and setting the TeeFontAntiAlias as follows:

Code: Select all

TeeFontAntiAlias:=DEFAULT_QUALITY;
Does it fix the problem 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

Metman
Advanced
Posts: 113
Joined: Fri Dec 21, 2007 12:00 am

Re: Area Series and Color Fill

Post by Metman » Wed May 29, 2013 9:55 am

Hi Yeray

That fixes the font's they are nice and sharp now!

As for the original problem see screenshot!

Thanks again for all your help - because I don't distribute any of the software I develop I may just use the trial version and put up with the nag screen.

Bruce.
Capture1.jpg
Capture1.jpg (103.73 KiB) Viewed 20290 times

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

Re: Area Series and Color Fill

Post by Yeray » Wed May 29, 2013 10:10 am

Hi Bruce,

Great! :D
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