This is an automated email from the ASF dual-hosted git repository. sushuang pushed a commit to branch gh-pages in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
commit 621ce6c20414f2b28cf6d374f9c25a0bf728c643 Author: 100pah <sushuang0...@gmail.com> AuthorDate: Sat Sep 10 16:56:43 2022 +0800 fix: fix ts type. --- public/examples/ts/mix-line-bar.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/examples/ts/mix-line-bar.ts b/public/examples/ts/mix-line-bar.ts index 423c33fa..9bb8f3dc 100644 --- a/public/examples/ts/mix-line-bar.ts +++ b/public/examples/ts/mix-line-bar.ts @@ -62,8 +62,8 @@ option = { name: 'Evaporation', type: 'bar', tooltip: { - valueFormatter: function (value: number) { - return value + ' ml'; + valueFormatter: function (value) { + return value as number + ' ml'; } }, data: [ @@ -74,8 +74,8 @@ option = { name: 'Precipitation', type: 'bar', tooltip: { - valueFormatter: function (value: number) { - return value + ' ml'; + valueFormatter: function (value) { + return value as number + ' ml'; } }, data: [ @@ -87,8 +87,8 @@ option = { type: 'line', yAxisIndex: 1, tooltip: { - valueFormatter: function (value: number) { - return value + ' °C'; + valueFormatter: function (value) { + return value as number + ' °C'; } }, data: [2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2] --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org