Created
January 6, 2020 23:16
-
-
Save BetterProgramming/6765279f5c6a6d7ac170edafab086931 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<AreaChart data={dataArr} height={250} width={700}> | |
<XAxis dataKey={"date"} /> | |
<YAxis orientation={"left"} /> | |
<Tooltip | |
contentStyle={styles.tooltipWrapper} | |
labelStyle={styles.tooltip} | |
formatter={value => `$${round(value, 2)}`} | |
/> | |
<Area | |
type="linear" | |
dataKey="CoinAmount" | |
stroke="none" | |
fillOpacity={0.4} | |
fill="#55efc4" | |
activeDot={{ strokeWidth: 0 }} | |
/> | |
<Area | |
type="linear" | |
dataKey="Total" | |
stroke="none" | |
fillOpacity={0.6} | |
fill="#f7931a" | |
activeDot={{ strokeWidth: 0 }} | |
/> | |
<Area | |
type="linear" | |
dataKey="TotalInvested" | |
stroke="none" | |
fillOpacity={0.6} | |
fill="#3498db" | |
activeDot={{ strokeWidth: 0 }} | |
/> | |
<Area | |
type="linear" | |
dataKey="CoinPrice" | |
stroke="none" | |
fillOpacity={0.6} | |
fill="#e84393" | |
activeDot={{ strokeWidth: 0 }} | |
/> | |
</AreaChart> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment