[Vuejs]-Object gets duplicated inside array

1👍

You have to map the values separately, if you dont want the seriesName to be Repeated..

const yearsMap = this.allYears.map((el) => { return { value: el } });

this.grphColumn.dataSource.dataset[0].dataset = {
        seriesname: "Planned",
        data: yearsMap
    }

Leave a comment