0
I have:
var options = {
    title: 'Titulo',
    width: largura,
    height: altura,
    vAxis: {
        title:"Porcentagem % em vendas",
        format: 'decimal'
    },
    hAxis: {
        title: "Seleção de clientes - Comutativa",
    }
}
However after some time, in order to generate a new view, I need to move to the variable options the following value:
vAxis:{
    ticks:[0,10,20,30,40,50,60,70,80,90,100]
}
but do not know the correct operator to give a push in options, because many times I don’t know what’s inside options then I need add up(+=) inside the object vAxis
I’m not sure I understood the doubt, it would be
options.vAxis.ticks = [0,10,20,30,40,50,60,70,80,90,100]?– Costamilam
That’s right, I’m so used to using push and += that sometimes I forget to try the simple, but I don’t understand, how can it assign a value to a variable that doesn’t exist? your answer is right, would be happy to mark it as correct
– Leonardo da Silva