0

How I can export a chartmodel to jpeg, gif, png, or pdf

asked 2014-12-02 16:43:51 +0800

carpen gravatar image carpen
1

Hi, I would like to know how I can export a chartmodel as SimplePie to a jpeg, gif, png or pdf , thanks. Best regards,

delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
0

answered 2014-12-03 11:38:32 +0800

carpen gravatar image carpen
1

My piece of code is that, I want to make a button to sabe as jpg,png...

Chart grafica = (Chart) this.getFellow("GrafPie").getFellow("chartPieCondu");

PieModel piemodel = new SimplePieModel();

for (Iterator<conduccion> i = someconducciones.iterator(); i.hasNext();) {

Conduccion tmp = i.next();

campo = tmp.getEstado();

piemodel.setValue(campo, tmp.getLongitud());

}

grafica.setModel(piemodel)

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-12-02 16:43:51 +0800

Seen: 8 times

Last updated: Dec 03 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More