在word文档中使用java中的Aspose.Words绘制集群条形图有任何方法吗?请为成簇条形图找到下面的图像。

发布于 2022-09-23 05:49:30
您可以使用DocumentBuilder.insertChart方法使用Aspose.Words创建图表。还请参阅Aspose.Words文档以了解有关创建图表的更多信息。在您的情况下,您应该使用ChartType.BAR。
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape chartShape = builder.insertChart(ChartType.BAR, 200, 300);
// Chart is created with default data
// here you can modify the chart data
// .....
doc.save("C:\\Temp\\out.docx");https://stackoverflow.com/questions/73818612
复制相似问题