在 Android 演示文稿中管理图表数据系列
概述
图表可以将绘制的值存储在工作簿单元格中,或直接作为数值文字。一个IChartSeries 表示一组相关值,每个IChartDataPoint 表示该系列中的一个点。IChartCategory 对象提供系列共享的标签或分组值。在使用默认数据创建的图表中,系列名称、类别和点值使用来自图表工作簿的IChartDataCell 对象。
对于典型的分类图表,默认工作簿使用第 0 行存放系列名称,第 0 列存放类别名称,剩余单元格存放系列数值。传递给IChartDataWorkbook.getCell 的工作表、行和列索引采用零基计数。此布局在创建带默认数据的图表时很有用,但不要假设每个已有图表都采用此布局。对于已加载的演示文稿,在更改工作簿数值之前,应检查系列、类别和数据点引用的单元格。
图表设置有三种不同的作用范围:
- 系列级别的设置,例如IChartSeries.getFormat,提供该系列中所有点的默认外观。
- 数据点级别的设置,例如IChartDataPoint.getFormat,覆盖该点的系列外观。
- 组设置适用于属于同一IChartSeriesGroup 的兼容系列。当需要设置如重叠度或间隙宽度等选项时,通过IChartSeries.getParentSeriesGroup 访问该组。
当未设置显式的点或系列填充时,图表样式和主题决定自动外观。当系列和点的格式均存在时,点的格式优先于系列。

对于簇状圆柱图,请参阅更改 3D 系列类型或条形形状 如何影响第一系列。
使用数值文字设置系列值
当系列值来源于应用数据或计算且不需要工作表单元格引用时,使用数值文字。在通过setAsLiteralDouble 为每个点的getValue 结果赋值之前,先使用DataSourceType.DoubleLiterals 调用setDataSourceTypeForValues。
集合设置控制该系列中所有点值的来源类型。每个点值的getDataSourceType 方法报告所选类型;通过集合设置进行更改。使用 Worksheet 时,调用getAsCell 访问引用的单元格。使用 DoubleLiterals 时,调用getAsLiteralDouble 或 setAsLiteralDouble 直接读取或写入数字。
下面示例创建一个带默认系列和类别的柱形图,然后为其第一系列的现有点分配计算得到的 10、20 等数值。它保存演示文稿,重新打开,并打印存储的数值。
import com.aspose.slides.*;
Presentation presentation = new Presentation();
try {
ISlide slide = presentation.getSlides().get_Item(0);
IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 20, 500, 300);
IChartSeries series = chart.getChartData().getSeries().get_Item(0);
series.getDataPoints().setDataSourceTypeForValues(DataSourceType.DoubleLiterals);
for (int i = 0; i < series.getDataPoints().size(); i++) {
series.getDataPoints().get_Item(i).getValue().setAsLiteralDouble((i + 1) * 10);
}
presentation.save("numeric_literals.pptx", SaveFormat.Pptx);
} finally {
presentation.dispose();
}
Presentation reopenedPresentation = new Presentation("numeric_literals.pptx");
try {
ISlide reopenedSlide = reopenedPresentation.getSlides().get_Item(0);
IChart reopenedChart = (IChart) reopenedSlide.getShapes().get_Item(0);
IChartSeries reopenedSeries = reopenedChart.getChartData().getSeries().get_Item(0);
for (IChartDataPoint point : reopenedSeries.getDataPoints()) {
System.out.println(point.getValue().getAsLiteralDouble());
}
} finally {
reopenedPresentation.dispose();
}
点值来源类型独立于IChartData.getDataSourceType,后者标识图表的内部或外部工作簿配置。使用数值文字本身并不会删除嵌入的工作簿。在本示例中,工作簿仍可用于类别标签、系列名称及其他系列。有关工作簿管理,请参阅Chart Workbook。
对于散点图和气泡图,使用setDataSourceTypeForXValues 和 setDataSourceTypeForYValues 选择getXValue 和 getYValue 的来源。气泡图还使用setDataSourceTypeForBubbleSizes 为getBubbleSize 设置来源。在通过该值的 setAsLiteralDouble 方法赋值之前,将每个适用的来源设为 DoubleLiterals。
设置图表系列重叠度
IChartSeries.getOverlap 报告 2D 图表中条形或柱形的重叠程度,范围为 -100% 到 100%。它是父系列组设置的只读投影。使用IChartSeriesGroup.setOverlap 可更新该组中所有兼容系列。此选项适用于显示分组条形或柱形的图表类型;在组合图表中不会影响不相关的系列组。
下面示例为包含第一系列的组设置重叠度:
import com.aspose.slides.*;
final int firstSlideIndex = 0;
final int firstSeriesIndex = 0;
final byte overlapPercent = 30;
Presentation presentation = new Presentation();
try {
ISlide slide = presentation.getSlides().get_Item(firstSlideIndex);
// 新图表包含示例系列、类别和数值。
IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 20, 500, 200);
IChartSeries series = chart.getChartData().getSeries().get_Item(firstSeriesIndex);
series.getParentSeriesGroup().setOverlap(overlapPercent);
presentation.save("series_overlap.pptx", SaveFormat.Pptx);
} finally {
presentation.dispose();
}
结果:

更改系列填充颜色
使用IChartSeries.getFormat 为整个系列设置默认填充。如果某点已具有显式填充,则其IChartDataPoint.getFormat 设置会覆盖该点的系列填充。
下面示例为第一系列应用实心蓝色填充:
import com.aspose.slides.*;
import android.graphics.Color;
final int firstSlideIndex = 0;
final int firstSeriesIndex = 0;
Presentation presentation = new Presentation();
try {
ISlide slide = presentation.getSlides().get_Item(firstSlideIndex);
IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 20, 500, 200);
IChartSeries series = chart.getChartData().getSeries().get_Item(firstSeriesIndex);
series.getFormat().getFill().setFillType(FillType.Solid);
series.getFormat().getFill().getSolidFillColor().setColor(Color.BLUE);
presentation.save("series_color.pptx", SaveFormat.Pptx);
} finally {
presentation.dispose();
}
结果:

更改系列名称
系列名称存储在图表数据工作簿中,通常显示在图例中。在为簇状柱形图创建的默认工作簿中,单元格 B1 位于第 0 行第 1 列,包含第一系列的名称。下面示例中的命名常量明确了该结构:
import com.aspose.slides.*;
final int firstSlideIndex = 0;
final int worksheetIndex = 0;
final int seriesNameRowIndex = 0;
final int firstSeriesColumnIndex = 1;
Presentation presentation = new Presentation();
try {
ISlide slide = presentation.getSlides().get_Item(firstSlideIndex);
IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 20, 500, 200);
IChartDataWorkbook workbook = chart.getChartData().getChartDataWorkbook();
IChartDataCell seriesNameCell = workbook.getCell(worksheetIndex, seriesNameRowIndex, firstSeriesColumnIndex);
seriesNameCell.setValue("Revenue");
presentation.save("series_name.pptx", SaveFormat.Pptx);
} finally {
presentation.dispose();
}
您也可以更新IChartSeries.getName 已引用的单元格。这种方式避免了对现有图表中特定行列的假设:
import com.aspose.slides.*;
final int firstSlideIndex = 0;
final int firstSeriesIndex = 0;
final int firstNameCellIndex = 0;
Presentation presentation = new Presentation();
try {
ISlide slide = presentation.getSlides().get_Item(firstSlideIndex);
IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 20, 500, 200);
IChartSeries series = chart.getChartData().getSeries().get_Item(firstSeriesIndex);
IChartDataCell seriesNameCell = series.getName().getAsCells().get_Item(firstNameCellIndex);
seriesNameCell.setValue("Revenue");
presentation.save("series_name.pptx", SaveFormat.Pptx);
} finally {
presentation.dispose();
}
结果:

从多个单元格创建具有名称的系列
复合系列名称在产品名称和报告期间分别存储在不同工作簿单元格时很有用。例如,您可以将 B1 中的 Product A 与 C1 中的 2026 合并为单个系列名称,同时保持两部分链接到其来源单元格。
使用IChartDataWorkbook.getCellCollection 检索名称范围,然后将该集合传递给IChartSeriesCollection.add。skipHiddenCells 参数决定是否包含隐藏单元格:true 排除,false 包含。本示例使用 false 包含名称范围中的所有单元格。
下面示例创建一个包含一个系列和两个数据点的演示文稿。单元格 B1:C1 仅提供系列名称;A2:A3 提供类别标签,B2:B3 提供数值。
import com.aspose.slides.*;
Presentation presentation = new Presentation();
try {
ISlide slide = presentation.getSlides().get_Item(0);
IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 50, 50, 620, 180);
chart.getChartData().getSeries().clear();
chart.getChartData().getCategories().clear();
chart.setLegend(true);
IChartDataWorkbook workbook = chart.getChartData().getChartDataWorkbook();
workbook.clear(0);
// 这两个单元格提供系列名称。
workbook.getCell(0, 0, 1, "Product A");
workbook.getCell(0, 0, 2, "2026");
IChartCellCollection nameCells = workbook.getCellCollection("Sheet1!$B$1:$C$1", false);
IChartSeries series = chart.getChartData().getSeries().add(nameCells, ChartType.ClusteredColumn);
// 单独的单元格提供类别和数值数据点。
IChartDataCell northCategory = workbook.getCell(0, 1, 0, "North");
IChartDataCell southCategory = workbook.getCell(0, 2, 0, "South");
chart.getChartData().getCategories().add(northCategory);
chart.getChartData().getCategories().add(southCategory);
IChartDataCell northValue = workbook.getCell(0, 1, 1, 120);
IChartDataCell southValue = workbook.getCell(0, 2, 1, 150);
series.getDataPoints().addDataPointForBarSeries(northValue);
series.getDataPoints().addDataPointForBarSeries(southValue);
presentation.save("composite_series_name.pptx", SaveFormat.Pptx);
} finally {
presentation.dispose();
}
结果系列名称为 Product A 2026,两个单元格值之间有空格。图例将其显示为两列的单个条目。下图展示了结果:

获取自动系列填充颜色
IChartSeries.getAutomaticSeriesColor 返回根据系列索引和图表样式计算的 Android ARGB 颜色整数。当系列填充未明确定义时使用此颜色。调用该方法读取计算出的颜色;不会分配新的填充。
下面示例打印每个默认系列的自动颜色整数:
import com.aspose.slides.*;
final int firstSlideIndex = 0;
Presentation presentation = new Presentation();
try {
ISlide slide = presentation.getSlides().get_Item(firstSlideIndex);
IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 20, 500, 200);
int seriesCount = chart.getChartData().getSeries().size();
for (int seriesIndex = 0; seriesIndex < seriesCount; seriesIndex++) {
IChartSeries series = chart.getChartData().getSeries().get_Item(seriesIndex);
int automaticColor = series.getAutomaticSeriesColor();
System.out.println("Series " + seriesIndex + ": " + automaticColor);
}
} finally {
presentation.dispose();
}
确切的整数值取决于图表样式和主题。
为图表系列设置负数时的填充颜色翻转
对于条形、柱形和气泡系列,使用IChartSeries.setInvertIfNegative 可在负值时显示不同的填充。将常规系列填充设为实心,启用翻转,并通过IChartSeries.getInvertedSolidFillColor 分配负值颜色。负数在工作簿中保持不变,仅更改其显示颜色。
下面示例用单个系列替换默认图表数据。工作表第 0 行包含系列名称,第 0 列包含类别名称,第 1 列包含数值:
import com.aspose.slides.*;
import android.graphics.Color;
final int firstSlideIndex = 0;
final int worksheetIndex = 0;
final int headerRowIndex = 0;
final int categoryColumnIndex = 0;
final int firstSeriesColumnIndex = 1;
final int firstDataRowIndex = 1;
String[] categoryNames = { "Category 1", "Category 2", "Category 3" };
int[] seriesValues = { -20, 50, -30 };
Presentation presentation = new Presentation();
try {
ISlide slide = presentation.getSlides().get_Item(firstSlideIndex);
IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 20, 500, 200);
IChartData chartData = chart.getChartData();
IChartDataWorkbook workbook = chartData.getChartDataWorkbook();
chartData.getSeries().clear();
chartData.getCategories().clear();
IChartDataCell seriesNameCell = workbook.getCell(worksheetIndex, headerRowIndex, firstSeriesColumnIndex, "Series 1");
int chartType = chart.getType();
IChartSeries series = chartData.getSeries().add(seriesNameCell, chartType);
for (int categoryIndex = 0; categoryIndex < categoryNames.length; categoryIndex++) {
int dataRowIndex = firstDataRowIndex + categoryIndex;
String categoryName = categoryNames[categoryIndex];
int seriesValue = seriesValues[categoryIndex];
IChartDataCell categoryCell = workbook.getCell(worksheetIndex, dataRowIndex, categoryColumnIndex, categoryName);
chartData.getCategories().add(categoryCell);
IChartDataCell valueCell = workbook.getCell(worksheetIndex, dataRowIndex, firstSeriesColumnIndex, seriesValue);
series.getDataPoints().addDataPointForBarSeries(valueCell);
}
int automaticSeriesColor = series.getAutomaticSeriesColor();
series.getFormat().getFill().setFillType(FillType.Solid);
series.getFormat().getFill().getSolidFillColor().setColor(automaticSeriesColor);
series.setInvertIfNegative(true);
series.getInvertedSolidFillColor().setColor(Color.RED);
presentation.save("inverted_solid_fill_color.pptx", SaveFormat.Pptx);
} finally {
presentation.dispose();
}
结果:

您可以通过IChartDataPoint.setInvertIfNegative 为单个点启用翻转。在下面示例中,系列的翻转被禁用,仅为选定的点启用翻转。该点还被赋予负值,以便显示效果:
import com.aspose.slides.*;
import android.graphics.Color;
final int firstSlideIndex = 0;
final int firstSeriesIndex = 0;
final int targetDataPointIndex = 2;
final int negativeValue = -30;
Presentation presentation = new Presentation();
try {
ISlide slide = presentation.getSlides().get_Item(firstSlideIndex);
IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 20, 500, 200);
IChartSeries series = chart.getChartData().getSeries().get_Item(firstSeriesIndex);
int automaticSeriesColor = series.getAutomaticSeriesColor();
series.getFormat().getFill().setFillType(FillType.Solid);
series.getFormat().getFill().getSolidFillColor().setColor(automaticSeriesColor);
series.getInvertedSolidFillColor().setColor(Color.RED);
series.setInvertIfNegative(false);
IChartDataPoint dataPoint = series.getDataPoints().get_Item(targetDataPointIndex);
dataPoint.getValue().getAsCell().setValue(negativeValue);
dataPoint.setInvertIfNegative(true);
presentation.save("data_point_invert_color_if_negative.pptx", SaveFormat.Pptx);
} finally {
presentation.dispose();
}
清除特定数据点的值
要使某一点为空而不删除其他点,请将其对应的工作簿单元格设为 null。对于柱形图,可通过IChartDataPoint.getValue 获取绘制的值。数据点仍保持在相同的类别位置,但图表会根据空值设置将其视为空白。
下面示例仅清除第一系列的第二个点:
import com.aspose.slides.*;
final int firstSlideIndex = 0;
final int firstSeriesIndex = 0;
final int targetDataPointIndex = 1;
Presentation presentation = new Presentation();
try {
ISlide slide = presentation.getSlides().get_Item(firstSlideIndex);
IChart chart = slide.getShapes().addChart(ChartType.ClusteredColumn, 20, 20, 500, 200);
IChartSeries series = chart.getChartData().getSeries().get_Item(firstSeriesIndex);
IChartDataPoint dataPoint = series.getDataPoints().get_Item(targetDataPointIndex);
dataPoint.getValue().getAsCell().setValue(null);
presentation.save("clear_data_point_value.pptx", SaveFormat.Pptx);
} finally {
presentation.dispose();
}
散点图使用独立的 X 与 Y 单元格,气泡图还使用大小单元格。仅清除代表您要移除的数值的单元格。若想保留其他点,请勿调用IChartDataPointCollection.clear,因为该方法会删除集合中的所有数据点。
控制空单元格的显示
包含数值的隐藏单元格与空单元格是不同的情况。如需包含或排除隐藏工作表行列中的数据,请参阅Include Data from Hidden Rows and Columns。
空工作簿单元格表示缺失数据;包含 0 的单元格表示已知数值。使用null 调用IChartDataCell.setValue 可使单元格为空。无论空单元格设置如何,数值零仍保持为零。
使用IChart.setDisplayBlanksAs 选择图表如何显示空单元格。此设置适用于整个图表。它改变空白的绘制方式,而不会用零或插值填充空工作簿单元格。
下面的独立示例创建一个包含一个系列的折线图,清除第 3 天的数值,并以每种模式保存相同的图表。无需输入文件。IChartDataWorkbook 使用工作表 0,列 0 作为类别标签,列 1 作为数值;第 0 行保存系列名称。最终数据为 10, 20, empty, 30, 40。
import com.aspose.slides.*;
Presentation presentation = new Presentation();
try {
ISlide slide = presentation.getSlides().get_Item(0);
IChart chart = slide.getShapes().addChart(ChartType.LineWithMarkers, 40, 40, 640, 400);
IChartData chartData = chart.getChartData();
IChartDataWorkbook workbook = chartData.getChartDataWorkbook();
chartData.getSeries().clear();
chartData.getCategories().clear();
IChartDataCell seriesNameCell = workbook.getCell(0, 0, 1, "Measurements");
IChartSeries series = chartData.getSeries().add(seriesNameCell, chart.getType());
int[] values = { 10, 20, 25, 30, 40 };
for (int i = 0; i < values.length; i++) {
IChartDataCell categoryCell = workbook.getCell(0, i + 1, 0, "Day " + (i + 1));
chartData.getCategories().add(categoryCell);
IChartDataCell valueCell = workbook.getCell(0, i + 1, 1, values[i]);
series.getDataPoints().addDataPointForLineSeries(valueCell);
}
// 将第 3 天真正留空,同时保留其类别和数据点。
workbook.getCell(0, 3, 1).setValue(null);
int[] modes = { DisplayBlanksAsType.Gap, DisplayBlanksAsType.Zero, DisplayBlanksAsType.Span };
String[] modeNames = { "Gap", "Zero", "Span" };
for (int i = 0; i < modes.length; i++) {
chart.setDisplayBlanksAs(modes[i]);
presentation.save("empty_cells_" + modeNames[i] + ".pptx", SaveFormat.Pptx);
}
} finally {
presentation.dispose();
}
每个输出文件在保存前存储相应的模式:empty_cells_Gap.pptx、empty_cells_Zero.pptx 和 empty_cells_Span.pptx。若只需保存一个版本,可在保存演示文稿前设置所需模式,而无需遍历所有模式。
下面的比较展示了三个文件中相同的数据。无论哪种情况,第 3 天在工作簿中均为空:

可见效果取决于图表类型。折线图能够直观比较三种模式。条形图和柱形图没有跨越缺失类别的连线,因此 Span 无法产生上述连接段;缺失的柱形和零高的柱形也可能看起来相似。同样,仅有标记的散点图没有连线。不要指望每种图表类型都有三种不同的结果;请检查所使用类型的输出。
设置系列间隙宽度
间隙宽度是相邻条形或柱形簇之间的空间,以条形或柱形宽度的百分比表示。与重叠度类似,它属于父系列组而非单个系列。对该组调用一次IChartSeriesGroup.setGapWidth。较大的数值会在簇之间留出更多空间,较小的数值则使其更密集。
下面示例更改间隙宽度并仅保存最终的演示文稿:
import com.aspose.slides.*;
final int firstSlideIndex = 0;
final int firstSeriesIndex = 0;
final int gapWidthPercent = 30;
Presentation presentation = new Presentation();
try {
ISlide slide = presentation.getSlides().get_Item(firstSlideIndex);
IChart chart = slide.getShapes().addChart(ChartType.StackedColumn, 20, 20, 500, 200);
IChartSeries series = chart.getChartData().getSeries().get_Item(firstSeriesIndex);
series.getParentSeriesGroup().setGapWidth(gapWidthPercent);
presentation.save("gap_width_30.pptx", SaveFormat.Pptx);
} finally {
presentation.dispose();
}
结果:

显示或隐藏系列连线
系列连线在视觉上连接图表的相关部分。使用IChartSeriesGroup.setSeriesLines 在受支持的堆叠条形图和 Pie of Pie 图表中显示或隐藏它们。在二维堆叠条形图和柱形图中,它们连接跨类别的对应堆叠边界。在 Pie of Pie 和 Bar of Pie 图表中,它们连接主图到次图。此设置并非用于其他图表类型的通用连接器。
通过IChartSeries.getParentSeriesGroup 访问该组。此设置适用于组内的每个系列。IChartSeries.hasSeriesLines 为只读属性,反映父组的设置;请调用组的设置器进行更新。
下面示例创建一个带默认数据的PieOfPie 图表。它分别以启用和禁用系列连线的方式保存相同的图表,生成两个用于比较的演示文稿。
import com.aspose.slides.*;
Presentation presentation = new Presentation();
try {
ISlide slide = presentation.getSlides().get_Item(0);
IChart chart = slide.getShapes().addChart(ChartType.PieOfPie, 50, 50, 600, 400);
IChartSeries series = chart.getChartData().getSeries().get_Item(0);
IChartSeriesGroup seriesGroup = series.getParentSeriesGroup();
seriesGroup.setSeriesLines(true);
presentation.save("series_lines_enabled.pptx", SaveFormat.Pptx);
seriesGroup.setSeriesLines(false);
presentation.save("series_lines_disabled.pptx", SaveFormat.Pptx);
} finally {
presentation.dispose();
}
| 启用系列连线 | 禁用系列连线 |
|---|---|
![]() |
![]() |
| 这两条连线将主饼图连接到次饼图。 | 两个饼图仍然可见,但连线被隐藏。 |
系列连线不同于数据标签指引线(将标签连接到数据点),网格线(标记图表坐标轴上的间隔),以及折线图中的线条(表示数据值)。此设置不控制这些元素。
FAQ
哪些图表类型支持数据系列?
由ChartType 枚举表示的所有图表类型都使用图表数据,但它们的系列并非具有相同的值结构或设置。例如,分类图表使用类别和数值,散点图使用 X 和 Y 值,气泡图则额外使用气泡大小。请使用与系列类型匹配的数据点创建方法。重叠度和间隙宽度等选项仅适用于兼容的条形或柱形组。
什么是图表系列组?
IChartSeriesGroup 包含共享组级绘图设置的兼容系列。组合图表可以包含多个组,因此通过某个系列访问的组的更改不一定会影响图表中的所有系列。
新创建的图表是否包含默认数据?
是的。默认情况下,IShapeCollection.addChart 会创建示例系列、类别和数值。您可以编辑这些单元格,或在添加完全自定义的数据集之前清除系列和类别集合。还有重载可以创建不带默认数据的图表。
图表对象如何与工作簿单元格关联?
系列名称、类别标签和数据点数值引用IChartDataWorkbook 中的单元格。更改被引用的单元格会更新相应的图表元素。构建自定义数据时,请保持类别行与系列值行对齐,以确保每个点绘制在预期的类别下。
如何仅清除一个点而不是整个系列?
将相关的数值单元格设为 null,即可保留该点的类别位置,使其为空点。仅在打算删除该系列所有点时才使用IChartDataPointCollection.clear。若同时删除了类别,请更新所有系列,使其数值仍与类别集合对齐。
空点如何显示?
结果取决于图表类型以及通过IChart.setDisplayBlanksAs 配置的值。受支持的图表可以将空白显示为间隙、零值或连接相邻点。请选择与演示文稿中缺失数据含义相匹配的设置。完整示例和可视化比较请参见控制空单元格的显示。
负值如何格式化?
对于受支持的条形、柱形和气泡系列,调用IChartSeries.setInvertIfNegative 并设置IChartSeries.getInvertedSolidFillColor 返回的颜色。您可以使用IChartDataPoint.setInvertIfNegative 为单独点覆盖此行为。这些方法影响的是格式,而非存储的数值。
当系列和点都已格式化时,哪种格式优先?
显式的数据点格式在该点上优先。其他点继续使用显式的系列格式,若系列格式未定义,则使用自动的图表样式和主题。重叠度和间隙宽度等组设置控制布局,不属于点级别的格式覆盖。
图表可以包含的系列数量有上限吗?
Aspose.Slides 并未设定单独的系列数量上限。实际使用中,演示文稿文件的限制、可用内存、渲染时间以及图表的可读性决定了实际可接受的上限。
当柱形之间过于靠近或过于分散时应如何调整?
在相应的父系列组上调用IChartSeriesGroup.setGapWidth。增大数值可扩展簇之间的间距,减小数值则使簇更靠近。

