This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one for details.
Please excuse me if this question has been asked before. I could see similar posts , but those were posted sometime back.
Is there a way to reduce the width of bars in a bar graph.
I am using a vertical 3d bar graph with item labels. Below is the code
The Graph generated is attached as Graph1.jpg.
If I reduce the width of "img" to 500 i.e.
the bar width gets reduced, but the ItemLabels are not displayed and period values on x-axis get truncated(as shown in attachment Graph2.jpg). Is there a work around to reduce the width of bars and still display labels and complete x-axis period values(Eg: Mar 07 in my case).
Have you played with the itemMargin value of the BarRenderer postprocessor?
Joined: Jul 11, 2008
Thanks for a prompt reply. Yes,I was playing with itemMargin. After your response , I restored to the default itemMargin The item labels did appear, but they seem to come only if there is a reasonable space between bars(See two attachments) which would depend on the bar length(y axis value). In Graph 1, the labels were not displayed. In Graph 2, the labels were displayed.
It did not help with the Months on x-axis as they still got truncated. Thanks for your help again.
subject: Cewolf - Vertical Bar Graph - Reduce Bar Width