JPGraph bars overlapping lower values

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

JPGraph bars overlapping lower values

Post by impulse() »

I have a barchart which has overlapping data causing the lower values not to be seen. It's a year graph so there are 12 data points each with 3 types of data. At the start of the year the bar at the back has higher values that the bar at the front so all is seen OK. But near the end of the year the bar at the front has higher values so it blocks out the other bar.

I have tried transparency but this only seems to work with background images. Any ideas what I could try from here?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Stagger the bars so the entire y-axis of each bar can be seen.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply