Offset in Renderers

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Tharban
Posts: 2
Joined: Thu Apr 22, 2004 9:39 am

Offset in Renderers

Post by Tharban » Thu May 27, 2004 9:52 am

I want to display multiple datasets with BarRenderers. But if i add secondary Renderers (BarRenderers) I encountered the problem, that the Bars overlap each other. So, if i have a bar in the main dataset which goes all up to the top of the chart, it hides all the other bars. They are there, cause if i use a linerenderer i see them all.
I have to use multiple renderers, cause i want to have multiple axis, so i need multiple datasets, so i need multiple renderers.

So the simplest solution would be to set an offset in the renderer, so it starts perhaps 50px right of the other. But how can i do that ?? Or am I missing smth. ??

Thx in advance, Nils

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu May 27, 2004 10:47 am

This is a problem that hasn't been dealt with yet. Suggestions for how to handle it are welcome...
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Guest

Post by Guest » Thu May 27, 2004 7:55 pm

How about setting the first renderer Graphics2D's alpha to < 1.0? Then the bars from second renderer can be saw through bars from first renderer.

Stacey
Posts: 15
Joined: Tue Jan 27, 2004 5:09 pm

Post by Stacey » Wed Jun 23, 2004 5:15 pm

I too am having the same probelm of bars overlapping each other. Has their been any improvements to the multiple axes rendering of bars?
Thanks!

Locked