basis, oops (#325)

This commit is contained in:
Michael Quigley 2023-05-11 15:22:21 -04:00
parent bb2b7c3da7
commit 4341f60ce6
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -46,8 +46,8 @@ const SharesTab = (props) => {
cell: row => { cell: row => {
return <ResponsiveContainer width={"100%"} height={"100%"}> return <ResponsiveContainer width={"100%"} height={"100%"}>
<AreaChart data={row.sparkData}> <AreaChart data={row.sparkData}>
<Area type={"linear"} dataKey={(v) => v.rx ? v.rx : 0} stroke={"#231069"} fill={"#04adef"} isAnimationActive={false} dot={false} /> <Area type={"basis"} dataKey={(v) => v.rx ? v.rx : 0} stroke={"#231069"} fill={"#04adef"} isAnimationActive={false} dot={false} />
<Area type={"linear"} dataKey={(v) => v.tx ? v.tx * -1 : 0} stroke={"#231069"} fill={"#9BF316"} isAnimationActive={false} dot={false} /> <Area type={"basis"} dataKey={(v) => v.tx ? v.tx * -1 : 0} stroke={"#231069"} fill={"#9BF316"} isAnimationActive={false} dot={false} />
</AreaChart> </AreaChart>
</ResponsiveContainer> </ResponsiveContainer>
} }