diff --git a/src/gen-charts.ts b/src/gen-charts.ts
index c0d7930af..94be3e7c9 100644
--- a/src/gen-charts.ts
+++ b/src/gen-charts.ts
@@ -1456,7 +1456,7 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar
strXml += ' '
strXml += ' '
strXml += ' '
- if (chartType === CHART_TYPE.PIE) ``
+ if (chartType === CHART_TYPE.PIE) strXml += ``
strXml += ' '
strXml += ' '
strXml += ' '