daad.madhusudan Posted March 16, 2015 Share Posted March 16, 2015 I am working on a jasper report and I am generating a bar chart. What I generated using ireport designer and customizer(to show labels) is:Here I want to show the labels outside the bars. How can i do it? Is there any way using customizer?Also for second bar because of small size label is not visible, in this case what can I do? Link to comment Share on other sites More sharing options...
Solution daad.madhusudan Posted March 16, 2015 Author Solution Share Posted March 16, 2015 I got the solution :)In my customizer class I am adding following lines:CategoryPlot categoryPlot = (CategoryPlot) chart.getPlot();categoryPlot.getRenderer().setBasePositiveItemLabelPosition(new ItemLabelPosition(ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER));Its working :) Link to comment Share on other sites More sharing options...
steve.xin Posted July 13, 2016 Share Posted July 13, 2016 I have the other issue that in 2D bar chart which can not display negative value on top of the bar. Do you know what is the reason? How can I solve it?/sites/default/files/images/Capture(54).PNG Link to comment Share on other sites More sharing options...
lukas.graussam Posted March 16, 2021 Share Posted March 16, 2021 Hi,can anybody tell me how to achieve this in the jrxml File? That would really help me. Thanks in advance! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now