|
|
|
|
@ -243,7 +243,7 @@ const Chart: React.FC<IChartProps> = ({
|
|
|
|
|
? ''
|
|
|
|
|
: <span>{t('appOverview.analysis.tokenUsage.consumed')} Tokens<span className='text-sm'>
|
|
|
|
|
<span className='ml-1 text-gray-500'>(</span>
|
|
|
|
|
<span className='text-orange-400'>~{sum(statistics.map(item => parseFloat(get(item, 'total_price', '0')))).toLocaleString('en-US', { style: 'currency', currency: 'USD', minimumFractionDigits: 4 })}</span>
|
|
|
|
|
<span className='text-orange-400'>~{sum(statistics.map(item => Number.parseFloat(get(item, 'total_price', '0')))).toLocaleString('en-US', { style: 'currency', currency: 'USD', minimumFractionDigits: 4 })}</span>
|
|
|
|
|
<span className='text-gray-500'>)</span>
|
|
|
|
|
</span></span>}
|
|
|
|
|
textStyle={{ main: `!text-3xl !font-normal ${sumData === 0 ? '!text-gray-300' : ''}` }} />
|
|
|
|
|
|