diff --git a/src/xlsx/conversion/figure_conversion.ts b/src/xlsx/conversion/figure_conversion.ts index 2256ce2f6..ef85977c6 100644 --- a/src/xlsx/conversion/figure_conversion.ts +++ b/src/xlsx/conversion/figure_conversion.ts @@ -63,7 +63,7 @@ function convertFigure( } function isChartData(data: ExcelChartDefinition | ExcelImage): data is ExcelChartDefinition { - return "dataSets" in data; + return "dataSets" in data && data.dataSets.length > 0; } function isImageData(data: ExcelChartDefinition | ExcelImage): data is ExcelImage {