perf: beautify dashboard chart color

pull/100/head
moonrailgun 2 years ago
parent 6181cc0927
commit fd9787f77b

@ -231,8 +231,8 @@ const UserCountChart: React.FC = React.memo(() => {
>
<defs>
<linearGradient id="colorUv" x1="0" y1="0" x2="0" y2="1">
<stop offset="5%" stopColor="#8884d8" stopOpacity={0.8} />
<stop offset="95%" stopColor="#8884d8" stopOpacity={0} />
<stop offset="5%" stopColor="#82ca9d" stopOpacity={0.8} />
<stop offset="95%" stopColor="#82ca9d" stopOpacity={0} />
</linearGradient>
</defs>
<XAxis dataKey="date" />
@ -243,7 +243,7 @@ const UserCountChart: React.FC = React.memo(() => {
type="monotone"
dataKey="count"
label={t('custom.dashboard.newUserCount')}
stroke="#8884d8"
stroke="#82ca9d"
fillOpacity={1}
fill="url(#colorUv)"
/>

Loading…
Cancel
Save