Search found 3 matches

by greydad
Mon Apr 06, 2015 4:20 pm
Forum: JFreeChart
Topic: Legend alignment
Replies: 3
Views: 4341

Re: Legend alignment

Hi David, I have been having the same problem as has many other developers with long legend text and having it centered as a default alignment. The patch to the LabelBlock class works as expected and will place the label text with left alignment within the block. The company I work for, CA Technolog...
by greydad
Fri Aug 10, 2007 5:44 pm
Forum: JFreeChart
Topic: change the width of the bar in barchart rendered as a .png
Replies: 7
Views: 12154

If you are using the XYBarRenderer for the bar chart, the bar width can be set in the constructor:

XYBarRenderer r = new XYBarRenderer(0.4)

will create bars with 40% width. Check the API for the XYBarRenderer
by greydad
Thu Aug 09, 2007 10:19 pm
Forum: JFreeChart
Topic: Center moviing average points on date axis points
Replies: 0
Views: 1661

Center moviing average points on date axis points

I have a combination chart with a bar chart and a moving average chart. I can plot both on a DateAxis and ValueAxis. I use the setTickMarkPositions(DateTickMarkPosition.MIDDLE) to center the bar chart on the date ticks but the moving average does not move. Also I cannot change the parameters of the ...