src/pages/right/components/task-charts.jsx
@@ -18,9 +18,8 @@ getTaskCharts().then(res => { setSeriesData(res.data); setWeek(res.week); console.log(res); }) }, 1000); }, 60000); return () => { clearInterval(timer); @@ -98,7 +97,7 @@ tooltip, legend, grid: { top: '15%', top: '20%', left: '3%', right: '4%', bottom: '5%', @@ -148,7 +147,7 @@ return ( <div> <ReactECharts style={{ height: '360px' }} option={option} /> <ReactECharts style={{ height: '320px' }} option={option} /> </div> ); };