I have the following data structure:
const data = [
{a: '12.03', b: '2.45', c: '24.12'},
{a: '12.03', b: '22.45', c: '44.12'},
{a: '15.03', b: '12.45', c: '24.12'},
.
.
.
n
]
And I want to convert the string into a float:
const data = [
{a: 12.03, b: 2.45, c: 24.12},
{a: 12.03, b: 22.45, c: 44.12},
{a: 15.03, b: 12.45, c: 24.12}
]
Any Idea on how to iterate over the object and just apply the format so I can use the data array in a line chart?