Being new to Angular, I'm currently working on incorporating FusionCharts to display a chart for my data. To do this, FusionCharts requires a specific format for the data.
const chartData = [{
label: "2021-09-26T00:01:00",
value: "250"
},
{
label: "2021-09-26T00:02:00",
value: "251"
},
{
label: "2021-09-26T00:03:00",
value: "245"
},
{
label: "2021-09-26T00:04:00",
value: "248"
},
{
label: "2021-09-26T00:05:00",
value: "251"
},];
I have my data separated into two arrays, one for values and the other for labels. But I'm unsure how to convert these arrays into the required format.
I attempted using dictionaries, but they are in {label: value} format which is not compatible with FusionCharts.