import com.spire.pdf.tables.table.DataColumn;
import com.spire.pdf.tables.table.DataRow;
import com.spire.pdf.tables.table.DataTable;
import com.spire.pdf.tables.table.DataTypes;
import com.spire.presentation.FileFormat;
import com.spire.presentation.KnownColors;
import com.spire.presentation.Presentation;
import com.spire.presentation.charts.ChartType;
import com.spire.presentation.charts.IChart;
import com.spire.presentation.drawing.FillFormatType;import java.awt.geom.Rectangle2D;
public class CreateChart {
public static void main(String[] args) throws Exception {
//实例化一个Presentation对象
Presentation presentation = new Presentation();
//插入柱形图
Rectangle2D.Double rect = new Rectangle2D.Double(40, 100, 550, 320);
IChart chart = null;
chart = presentation.getSlides().get(0)