[Vuejs]-How to dynamically change the chart series # in google charts comboChart

0👍

Doh! Finally got it, I had to put the variable containing the series between []

return {
...this.chartOptions,
seriesType: 'bars',
series: {
    [variable]: {
        type: "line", 
        curveType: "function"
    }
}

}

Leave a comment