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"
}
}
}
Source:stackexchange.com