Page 1 of 1

Area Series and Color Fill

Posted: Fri May 24, 2013 12:48 pm
by 10047857
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 20533 times
The attachment Capture3.jpg is no longer available

Re: Area Series and Color Fill

Posted: Fri May 24, 2013 2:44 pm
by narcis
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.

Re: Area Series and Color Fill

Posted: Fri May 24, 2013 4:07 pm
by 10047857
Thanks Narcis
It's not what you know it's who you know that counts!!

Re: Area Series and Color Fill

Posted: Fri May 24, 2013 4:30 pm
by 10047857
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 20531 times
I am using Delphi 2007 with TChart 8.08

Bruce.

Re: Area Series and Color Fill

Posted: Fri May 24, 2013 4:34 pm
by 10047857
Sorry I should have sent this screen shot...
Capture6.jpg
Capture6.jpg (52.71 KiB) Viewed 20513 times

Re: Area Series and Color Fill

Posted: Mon May 27, 2013 1:52 pm
by yeray
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 20496 times

Re: Area Series and Color Fill

Posted: Mon May 27, 2013 4:14 pm
by 10047857
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 20495 times

Re: Area Series and Color Fill

Posted: Tue May 28, 2013 8:26 am
by yeray
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?

Re: Area Series and Color Fill

Posted: Tue May 28, 2013 9:16 am
by 10047857
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.

Re: Area Series and Color Fill

Posted: Tue May 28, 2013 2:18 pm
by yeray
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.

Re: Area Series and Color Fill

Posted: Tue May 28, 2013 4:46 pm
by 10047857
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 20463 times
after.png
After
after.png (61.06 KiB) Viewed 20461 times

Re: Area Series and Color Fill

Posted: Wed May 29, 2013 9:41 am
by yeray
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?

Re: Area Series and Color Fill

Posted: Wed May 29, 2013 9:55 am
by 10047857
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 20498 times

Re: Area Series and Color Fill

Posted: Wed May 29, 2013 10:10 am
by yeray
Hi Bruce,

Great! :D