Create excel chart using Apache POI

前端 未结 6 934
小蘑菇
小蘑菇 2020-12-09 17:49

I need to create excel sheet from my Java code which contains charts like Bar chart, Line Chart etc using the Apache POI library. Is it possible? I am not able to find any u

6条回答
  •  感动是毒
    2020-12-09 18:13

    You can only use Excel template to preserve chart with POI. It mean you create an Excel template file with chart in it and link the chart's datasource to one definedName,then you can load the template file from POI and using code to change the definedName. Current POI does not support to create Chart from scratch.

提交回复
热议问题