Area graph overlapping problem

TeeChart for ActiveX, COM and ASP
Post Reply
Craig
Newbie
Newbie
Posts: 25
Joined: Sat Aug 09, 2003 4:00 am
Location: Calgary, Alberta
Contact:

Area graph overlapping problem

Post by Craig » Thu Jul 05, 2007 3:13 pm

Using version 6.006. Starting with a line series graph (multiple horizontal lines), from graph control switch them to area graphs. Now the highest line color takes over the entire graph area below it, hiding all other series. Is this a bug, is there some way around it?. Setting the transparency can help, but another answer?

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

Post by Narcís » Thu Jul 05, 2007 3:17 pm

Hi Craig,

Could you please send us a simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

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

alain@work
Newbie
Newbie
Posts: 4
Joined: Fri Aug 10, 2001 4:00 am

Post by alain@work » Wed Jul 11, 2007 9:14 am

Hi Graig, I seem to have exactly the same problem you were describing here. But I'm still using version 5.02.

Setting transparancy to something like 80, clearly shows the different area's, but if i remove the transparancy I allways see the last area added in front of all others.

Did you find a way around this yet ?

Kind regards,
Alain

alain@work
Newbie
Newbie
Posts: 4
Joined: Fri Aug 10, 2001 4:00 am

Post by alain@work » Wed Jul 11, 2007 1:13 pm

I found the reason for my problems:
the routine that creates my area series on the fly included the line
areacharts[1].UseYOrigin := true;

Setting this to false (or in fact removing the line) solved it !

I hope this helps somebody, somewhere :)

A.

Craig
Newbie
Newbie
Posts: 25
Joined: Sat Aug 09, 2003 4:00 am
Location: Calgary, Alberta
Contact:

Post by Craig » Wed Jul 11, 2007 4:49 pm

Actually, you can see this problem in one the feature demos. The best example I found was under 'Previous version->New Chart Tools->Page Number Tool'. You may need to click on it a few times to get good random numbers where Series1 is higher than Series0. Then click Edit, select both series, then 'Change', then select Area graph, ok, close. You should see Series1 completely overlaps series0.

I have just noticed that if series0 was higher than series1, you will not see this problem. Does that tell you something?

alain@work
Newbie
Newbie
Posts: 4
Joined: Fri Aug 10, 2001 4:00 am

Post by alain@work » Thu Jul 12, 2007 7:02 am

Hi Graig,

I saw the problem in that demo... but then realized that you have to go to Edit and select the Series Tab, then set the series0 to stacked.
That solved the overlapping in this case. What i was seeing when i made my first post is that if the series are stacked, and you set the UseYOrigin checkbox, the series go to the bottom of the chart. Thus overlapping occurs.

anyhow, i did manage to find the reason for my little problem... although it had me bogged down for almost 2 days :(

cu,
Alain.

Craig
Newbie
Newbie
Posts: 25
Joined: Sat Aug 09, 2003 4:00 am
Location: Calgary, Alberta
Contact:

Post by Craig » Thu Jul 12, 2007 2:29 pm

But the stacked option completely changes the way the graph looks, it does not give the desired effect.

alain@work
Newbie
Newbie
Posts: 4
Joined: Fri Aug 10, 2001 4:00 am

Post by alain@work » Thu Jul 12, 2007 2:34 pm

I think you might find TChart.MoveSeriesUp / MoveSeriesDown interesting.
They allow you to change the order of the series.
I needed the stacked option, but i think you are looking for a different kind of chart. The other option i see for you, is using Transparancy or using a 3D look.

Craig
Newbie
Newbie
Posts: 25
Joined: Sat Aug 09, 2003 4:00 am
Location: Calgary, Alberta
Contact:

Post by Craig » Fri Jul 13, 2007 2:59 pm

Thanks, that is probably the answer. Although I think it would be rather difficult at design time to know which series should be first/last. I wish there was an option like that in the graph control somewhere. I also do not want to really add much programming for this since our product is designed around line graphs, and it is very very rare that someone switches it to area graph anyway.

Thanks for your help.

Post Reply