• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cewolf-labels

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

i am using cewolf to generate graphs..i tried to display labels on each series.but it not displaying for few series please find the attached screen shot and please help me out
Filename: first.bmp
File size: 405 Kbytes
Filename: second.bmp
File size: 405 Kbytes
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The areas in the bar are too small, and so the labels wouldn't fit - that's why they were omitted. If you're using my cewolf distribution (see my signature) then you can use the AnnotationProcessor chart postprocessor to add labels outside the bar; you'd have to do some experimentation to find out for which values the "internal" labels are not displayed, so that you can set annotations for those.

The example web app that comes with my distribution has an example of how to use the AnnotationProcessor.
 
krish hotha
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
thanks for your quick reply .for time being i want to sort out this issue in two ways.

1. to increase the bar size which the labels are not displaying.
2. increase the interval of the xaxix.

could you please help me out how can i increase the size of the bar and fix the interval of x axix.

 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
#1: The bars are sized according to the values they represent and the overall chart size. I assume you don't have any influence on the actual values, so increasing the chart size would be the only option.

#2: Again, the larger the chart, the bigger the space between the bars. You can also play with the itemMargin attribute of the BarRendererProcessor postprocessor in my distribution.
 
krish hotha
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ,

is there any way to fix the interval of yaxix.at present it is taking interval 10. want to make it as interval 5 .coule you please help me out
 
krish hotha
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

please find the attachement.for few bars it not displaying the labels though the space is available to display the numbers. please help me out.
Filename: third.bmp
File size: 315 Kbytes
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

is there any way to fix the interval of yaxix.


What do you mean by "the interval"? The difference between adjacent label values? That, too, is dependent on the actual values so that they appear neither too cramped nor too sparse. You could write a postprocessor that sets a different TickUnitSource for the range axis, though.

for few bars it not displaying the labels though the space is available to display the numbers.


It would seem that the library has a different idea of what "enough available space" is, so the answer in my previous post applies.

By the way, you can make things easier for anyone reading this post by using an image format that is displayed in browsers, like GIF, JPEG or PNG.
reply
    Bookmark Topic Watch Topic
  • New Topic