• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

cewolf shadow and label

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello.
I have 3 questions for you. I have attached a file that is the img of my chart. I would delete the grey shadow in the pie, change the style of title "Numenro movimenti" and change the style of label "SGRAVIO".
Is it possible?
thank you very much for your attention.

Immagine.png
[Thumbnail for Immagine.png]
the chart
 
Rancher
Posts: 43045
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The style of the title and the legend can be altered using a TitleEnhancer and LegendEnhancer chart postprocessor, repectively. Both postprocessors are shown in action in the example web app.

I don't think it's currently possible to hide the shadow of the chart. JFreeChart (the graphics library used by cewolf) can do that, though - I'll look into what's involved in making that setting available to cewolf.
 
Carmen Lagana'
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:The style of the title and the legend can be altered using a TitleEnhancer and LegendEnhancer chart postprocessor, repectively. Both postprocessors are shown in action in the example web app.

I don't think it's currently possible to hide the shadow of the chart. JFreeChart (the graphics library used by cewolf) can do that, though - I'll look into what's involved in making that setting available to cewolf.


Thank you very much!!!
 
Ulf Dittmer
Rancher
Posts: 43045
77
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have released a new version of cewolf (1.2.3) with the following change:

A new boolean attribute "showShadow" for the PieEnhancer chart postprocessor makes it possible to turn off the drop shadow in pie charts. (It was always on until now, and is still shown by default for backwards compatibility). If you don't use pie charts, or are happy with how they look, then you don't need to upgrade.

The example web app is at https://sourceforge.net/projects/cewolf/files/example%20web-app/cewolf-1.2.3/
 
Carmen Lagana'
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:I have released a new version of cewolf (1.2.3) with the following change:

A new boolean attribute "showShadow" for the PieEnhancer chart postprocessor makes it possible to turn off the drop shadow in pie charts. (It was always on until now, and is still shown by default for backwards compatibility). If you don't use pie charts, or are happy with how they look, then you don't need to upgrade.

The example web app is at https://sourceforge.net/projects/cewolf/files/example%20web-app/cewolf-1.2.3/



Thank you very much for your release!!!

For the label, instead, I don't find the solution. I didn't refer to the north-positioned legend but to the label in the chart (the ones in the img that I have attached now)

Thank you for your attention
Immagine.png
[Thumbnail for Immagine.png]
 
Carmen Lagana'
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Excuse me, but I have another question (it's not my fault ).
Can we put in the sectionLabel the value of the section instead of the legend?
For example, I have 2 apples and 3 bananas, I want to write apples and banana in the legend and 2 and3 in the sectionLabel, is it possible?
Thank you very very much
 
Ulf Dittmer
Rancher
Posts: 43045
77
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

For the label, instead, I don't find the solution. I didn't refer to the north-positioned legend but to the label in the chart (the ones in the img that I have attached now)


You could write a postprocessor (possibly building upon the PieEnhancer class) that calls PiePlot.setLabelFont to do this.

Can we put in the sectionLabel the value of the section instead of the legend? For example, I have 2 apples and 3 bananas, I want to write apples and banana in the legend and 2 and3 in the sectionLabel, is it possible?


You would need to create a PieSectionLabelGenerator, and then put it to use (again, in a postprocessor) via PiePlot.setLabelGenerator.
 
reply
    Bookmark Topic Watch Topic
  • New Topic