Possible Duplicate:
Create excel chart using Apache POI
My project requires Chart to be created in Excel. How can I create Chart using Apache POI??
please reply as soon as possible
Possible Duplicate:
Create excel chart using Apache POI
My project requires Chart to be created in Excel. How can I create Chart using Apache POI??
please reply as soon as possible
You cannot create charts using Apache POI. What you can do is to create an excel template and create the graph and bind the data. Limitaitons in POI
See the POI SpreadSheet Limitations page - adding charts is not yet supported.
There's the possibility for a GSOC student to work on adding more chart support to POI this summer, if accepted, but for the mean time you can't.
The workaround for now is to load up excel, create named ranges for each series required, then create the chart to look as you want. Save this as a template file. As needed, open the template in POI, write in your data, then update the named range to refer to the new data. When you open in Excel, you'll then see the new data in the chart