My (x,y) data spans the interval [0,1] and at every point I need to draw the bars. While the bars work great when x-axis is made of integers, the bars always overlap each other in my case. I read a few posts that claim in it impossible to change the width of a bar. I almost gave up on this and then I saw example histogramdemo1.java where bars' width does render well on the plot for any interval and the return plot is XYPlot.
I tried playing with XYBarRenderer but no luck.
Is it possible to override some default methods in jfreechart to control the width of the bars for the (XYPlot, XYBarRenderer)? If so, can anyone post an example on how to do it?
Thanks,
Adjusting bar width of bars in jfreechart
-
- Posts: 513
- Joined: Wed Sep 12, 2007 3:18 pm
Re: Adjusting bar width of bars in jfreechart
Cross-posted here.