Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cewolf - Vertical Bar Graph - Reduce Bar Width

 
Amandeep Aggarwal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Experts,

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).

Any help will be appreciated. Thanks in advance.

Regards,
Aman




Graph1.jpg
Graph1
[Thumbnail for Graph1.jpg]
Graph2.jpg
Graph2
[Thumbnail for Graph2.jpg]
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you played with the itemMargin value of the BarRenderer postprocessor?
 
Amandeep Aggarwal
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Graph1.jpg
[Thumbnail for Graph1.jpg]
Graph2.jpg
[Thumbnail for Graph2.jpg]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic