Page 1 of 1

Area graph overlapping problem

Posted: Thu Jul 05, 2007 3:13 pm
by 9078925
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?

Posted: Thu Jul 05, 2007 3:17 pm
by narcis
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.

Posted: Wed Jul 11, 2007 9:14 am
by 4210060
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

Posted: Wed Jul 11, 2007 1:13 pm
by 4210060
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.

Posted: Wed Jul 11, 2007 4:49 pm
by 9078925
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?

Posted: Thu Jul 12, 2007 7:02 am
by 4210060
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.

Posted: Thu Jul 12, 2007 2:29 pm
by 9078925
But the stacked option completely changes the way the graph looks, it does not give the desired effect.

Posted: Thu Jul 12, 2007 2:34 pm
by 4210060
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.

Posted: Fri Jul 13, 2007 2:59 pm
by 9078925
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.