Commit a43aed94 authored by Choi Ga Young's avatar Choi Ga Young
Browse files

원화표시

parent 81d004bc
...@@ -43,7 +43,7 @@ const ChartY = ({ resDataY, year, setYear }) => { ...@@ -43,7 +43,7 @@ const ChartY = ({ resDataY, year, setYear }) => {
} type='clear' /> } type='clear' />
</View> </View>
<View> <View>
<Text style={style.Font}>수입: {totalYI}</Text> <Text style={style.Font}>수입: {(totalYI).toLocaleString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}</Text>
<BarChart <BarChart
style={{ marginBottom: "2%", marginTop: "2%" }} style={{ marginBottom: "2%", marginTop: "2%" }}
data={resDataY.temp1[0]} data={resDataY.temp1[0]}
...@@ -52,7 +52,7 @@ const ChartY = ({ resDataY, year, setYear }) => { ...@@ -52,7 +52,7 @@ const ChartY = ({ resDataY, year, setYear }) => {
chartConfig={{ ...chartConfig, fillShadowGradient: '#1E90FF' }} chartConfig={{ ...chartConfig, fillShadowGradient: '#1E90FF' }}
fromZero={true} fromZero={true}
/> />
<Text style={style.Font}>지출: {totalYO} </Text> <Text style={style.Font}>지출: {(totalYO).toLocaleString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")} </Text>
<BarChart <BarChart
style={{ marginTop: "2%" }} style={{ marginTop: "2%" }}
data={resDataY.temp2[0]} data={resDataY.temp2[0]}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment