• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Cewolf - Vertical Bar Graph - Reduce Bar Width

 
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
[Thumbnail for Graph1.jpg]
Graph1
Graph2.jpg
[Thumbnail for Graph2.jpg]
Graph2
 
Rancher
Posts: 43016
76
  • 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]
 
It's a beautiful day in this neighborhood - Fred Rogers. Tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic