I want to convert this
const data = [
{
date: "2020-01",
pageviews: "1548"
},
{
date: "2020-01",
pageviews: "2000"
},
]
to
const data = [
{
date: "2020-01",
pageviews: 1548
},
{
date: "2020-01",
pageviews: 2000
},
]
but I can't find the a way. I want to use those data to Rechart and the pageviews need to be numbers not strings Can someone help me?