I am trying to put a value to an array that is inside another I have tried to use the push method but without success my code is as follows
var data = [
{
x: [resultado[0][0],resultado[1][0]],
y: [resultado[0][1],resultado[1][1]],
type: 'bar'
}
];
the question is that I want to introduce the next value inside X or Y with push I have tried this
data.push.x(resultado[2][0])
But without any success
If someone can help me I would really appreciate it......