I need to fit 2 horizontal barchart plots right next to each other, in one chart.
The 2 charts show the percents of different entitities, so CombinedRangeCategoryPlot can do the job.
What I dont want is to have these 2 charts on top of the other, sharing the range axis. For aesthetic and presentation reasons, I want them next to each other.
Is that possible is some way?
Can jfree put arbitrary type plots in one chart?
-
- Posts: 844
- Joined: Fri Oct 13, 2006 9:29 pm
- Location: Sunnyvale, CA
Re: Can jfree put arbitrary type plots in one chart?
CombinedRange*Plots always place the subplots side-by-side.indio wrote:For aesthetic and presentation reasons, I want them next to each other.
Richard West
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
Design Engineer II
Advanced Micro Devices
Sunnyvale, CA
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I can't think of an easy way to do this in JFreeChart. It is one of the weaknesses in JFreeChart that it is hard to get a nice alignment between two charts in two different chart panels (because of the layout approach that JFreeChart uses). The CombinedXXX plots use various hacks to get axis alignment, but there isn't a general CombinedPlot that doesn't involve sharing axes. It would probably make a nice addition to JFreeChart, although I suspect it would be hard to get it to work well for every combination of charts /axes that could be thrown at it.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

