sarojkumar.silicon Posted September 9, 2014 Share Posted September 9, 2014 I had one bar chart. When i am categorizing the bar chart by Category Expression, then the width of chart truncated. Can you please tell me how to get rid of this. Thanks in Advance. Link to comment Share on other sites More sharing options...
aamitt06 Posted September 9, 2014 Share Posted September 9, 2014 You should create a barchart customizer class to control width of bar chart and use the setMaximumBarWidth attributeCategoryPlot categoryPlot=chart.getCategoryPlot();BarRenderer renderer=(BarRenderer)categoryPlot.getRenderer();renderer.setMaximumBarWidth(.30); //Set maximum width of barchart to 30 percent Link to comment Share on other sites More sharing options...
sarojkumar.silicon Posted September 9, 2014 Author Share Posted September 9, 2014 How to create Customizer class for this bar chart. Can you please tell me about briefly. Thnk you so much for quick reply. Link to comment Share on other sites More sharing options...
aamitt06 Posted September 10, 2014 Share Posted September 10, 2014 Go through this link you will get idea how to create customizer class and integrate it with charts Link to comment Share on other sites More sharing options...
omer.etrog Posted March 19, 2018 Share Posted March 19, 2018 I had the same issue when I categorizing the bar.It too me a while and I also tried the above anser that didn't help me.I found out that you can put empty string in the Series and that solve the issue Link to comment Share on other sites More sharing options...
Hugo Mota Posted July 24, 2018 Share Posted July 24, 2018 omer.etrog, problem with this solution is the color, you can only use one color in all bars. 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