1
I am creating an Array in Javascript in the following format:
series = [{
name: 'Tokyo',
data: [7.0, 6.9, 9.5]
}, {
name: 'New York',
data: [-0.2, 0.8, 5.7]
}]
But in some cases, I have to add new values data
:
data: [-0.2, 0.8, 5.7, 2.7, 8.9, ...]
someone knows how to do this?
You want to enter more values in one of these arrays
data
existing, or insert a new city into the outermost array?– bfavaretto
Insert more values into the array
data
– Lugarini
Which one? In your example there are 2.
– bfavaretto
whatever, I want to know how you do to insert more values in any one..
– Lugarini
@Thiago if your question is more complete will have more complete and exact answers. How do you want to change the array? One by one? or as a consequence of another code?
– Sergio