From e159458eea3b08399c4e4cdac47d47550c8f324c Mon Sep 17 00:00:00 2001 From: jpliu Date: Mon, 12 Jun 2023 16:29:02 +0800 Subject: [PATCH] doc: fixed appendData parameter types --- en/api/echarts-instance.md | 2 +- zh/api/echarts-instance.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/en/api/echarts-instance.md b/en/api/echarts-instance.md index 670537e4..0b408944 100644 --- a/en/api/echarts-instance.md +++ b/en/api/echarts-instance.md @@ -737,7 +737,7 @@ Exports connected chart image; returns a base64 url; can be set to `src` of `Ima ```ts (opts: { // Specify which series the data will be appended to. - seriesIndex?: string, + seriesIndex?: number, // The data to be appended. data?: Array|TypedArray }) => string diff --git a/zh/api/echarts-instance.md b/zh/api/echarts-instance.md index 769886b1..91843261 100644 --- a/zh/api/echarts-instance.md +++ b/zh/api/echarts-instance.md @@ -724,7 +724,7 @@ img.src = myChart.getDataURL({ ```ts (opts: { // 要增加数据的系列序号。 - seriesIndex?: string, + seriesIndex?: number, // 增加的数据。 data?: Array|TypedArray }) => string