You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by wac <ra...@infosys.com> on 2009/12/17 10:59:43 UTC

Creating editable bar/line graphs/charts using HSLF (POI)

hi,

I want to generate editable bar graphs, line charts, pie charts in ppt using
JAVA. I came to know that it is only possible to insert these as images but
not as editable datasheets on to ppt.

Can somebody please help me identify if there is a way to do so. If possible
please share snippets of the code.

Many thanks,
Wac
-- 
View this message in context: http://old.nabble.com/Creating-editable-bar-line-graphs-charts-using-HSLF-%28POI%29-tp26825681p26825681.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: Creating editable bar/line graphs/charts using HSLF (POI)

Posted by Yegor Kozlov <ye...@dinom.ru>.
Native PPT charts (MS Chart control) are not supported. However, you can draw charts using a PPT Graphics2D driver 
included in HSLF. See slides 9-10 on  http://people.apache.org/~yegor/apachecon_eu08/apachecon.ppt

This source code is in svn:
http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/hslf/examples/ApacheconEU08.java

With this approach you can use a third-party chart library that supports rendering via java.awt.Graphics2D and translate 
AWT calls into PowerPoint primitives.


Yegor

> hi,
> 
> I want to generate editable bar graphs, line charts, pie charts in ppt using
> JAVA. I came to know that it is only possible to insert these as images but
> not as editable datasheets on to ppt.
> 
> Can somebody please help me identify if there is a way to do so. If possible
> please share snippets of the code.
> 
> Many thanks,
> Wac


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org