|
@@ -82,12 +82,23 @@ const RawChart: FC = function() {
|
|
|
}}
|
|
|
/>
|
|
|
<Tooltip
|
|
|
+ labelClassName='123'
|
|
|
+ contentStyle={{
|
|
|
+ background: 'rgba(0,0,0,.4)',
|
|
|
+ color: 'white !important',
|
|
|
+ borderRadius: '12px',
|
|
|
+ border: 'unset',
|
|
|
+ padding: '12px 24px',
|
|
|
+ }}
|
|
|
formatter={function(value: string, name: string) {
|
|
|
return [value, name === 'value' ? '入库' : '出库'];
|
|
|
}}
|
|
|
itemSorter={payload => payload.name === 'value' ? 1 : -1}
|
|
|
/>
|
|
|
- <Bar dataKey='value' fill='#00a6ca' />
|
|
|
+ <Bar
|
|
|
+ dataKey='value'
|
|
|
+ fill='#00a6ca'
|
|
|
+ />
|
|
|
<Bar dataKey='data' fill='#FAC858' />
|
|
|
</BarChart>
|
|
|
</ResponsiveContainer>
|