Move column label outside (Horizontal Bar Chart)

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
Posts: 1
Joined: Fri Mar 22, 2019 6:33 am
antibot: No, of course not.

Move column label outside (Horizontal Bar Chart)

Post by bassamch » Fri Mar 22, 2019 7:13 am

I need to move labels outside from bars, towards right. Image link is given above.

Bar chart label code:

Code: Select all

BarRenderer br = (BarRenderer) plot.getRenderer();
br.setSeriesPaint(0, new java.awt.Color(227, 110, 37));
br.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator());
br.setBasePositiveItemLabelPosition(new ItemLabelPosition(ItemLabelAnchor.INSIDE3, TextAnchor.CENTER_RIGHT, TextAnchor.CENTER, 0.0));

John Matthews
Posts: 482
Joined: Wed Sep 12, 2007 3:18 pm

Re: Move column label outside (Horizontal Bar Chart)

Post by John Matthews » Sat Mar 30, 2019 12:01 pm

Cross-posted here.

Post Reply