1
I have an array with objects similar to this:
[{
name: '2015',
data: [...]
color: 'orange'
},
{
name: '2016',
data: [...]
color: 'red'
}
]
I’d like to change the value of name
for another name, like MarketShare
, then instead of the year, I would have a name. This I have to do in Javascript
The result I expect is
[{
name: 'marketshare',
data: [...]
color: 'orange'
},
{
name: 'marketshare',
data: [...]
color: 'red'
}
]
@Lucascosta I edited the question
– Alisson Acioli