Jump to content

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Posted

You should create a barchart customizer class to control width of bar chart and use the setMaximumBarWidth attribute


CategoryPlot categoryPlot=chart.getCategoryPlot();
BarRenderer renderer=(BarRenderer)categoryPlot.getRenderer();
renderer.setMaximumBarWidth(.30);  //Set maximum width of barchart to 30 percent

  • 3 years later...
Posted

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

 

 

 

  • 4 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...