ui
This commit is contained in:
@@ -110,8 +110,6 @@ const TokenUsage = ({ appId }: { appId: string }) => {
|
||||
},
|
||||
yAxis: {
|
||||
type: 'value',
|
||||
boundaryGap: false,
|
||||
splitNumber: 5,
|
||||
max: Math.max(...data.map((item) => item.tokenLen)),
|
||||
min: 0
|
||||
},
|
||||
@@ -180,12 +178,6 @@ const TokenUsage = ({ appId }: { appId: string }) => {
|
||||
myChart.current.setOption(option);
|
||||
}, [data, option]);
|
||||
|
||||
// limit changed, update
|
||||
useEffect(() => {
|
||||
if (!myChart.current || !myChart?.current?.getOption()) return;
|
||||
myChart.current.setOption(option);
|
||||
}, [option]);
|
||||
|
||||
// resize chart
|
||||
useEffect(() => {
|
||||
if (!myChart.current || !myChart.current.getOption()) return;
|
||||
|
||||
Reference in New Issue
Block a user