Skip to content

Commit

Permalink
feat(plugin-chart-echarts): remove loading from timeseries tooltip (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro authored and zhaoyongjie committed Nov 25, 2021
1 parent 8554f98 commit 5fe15f5
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default function transformProps(chartProps: ChartProps): EchartsTimeserie
tooltip: {
trigger: 'axis',
confine: true,
formatter: (params, ticket, callback) => {
formatter: params => {
// @ts-ignore
const rows = [`${smartDateVerboseFormatter(params[0].value[0])}`];
// @ts-ignore
Expand All @@ -144,10 +144,7 @@ export default function transformProps(chartProps: ChartProps): EchartsTimeserie
}),
);
});
setTimeout(() => {
callback(ticket, rows.join('<br />'));
}, 50);
return 'loading';
return rows.join('<br />');
},
},
legend: {
Expand Down

0 comments on commit 5fe15f5

Please sign in to comment.