I have this data array holding repetitive item in the component:
data () {
datasets: [ {
text: "",
value:[ {
x: "",
y: "",
type: 'bar'
}]
},
{
text: "",
value: [{
x: "",
y: "",
type: 'bar'
}]
},
{
text: "",
value: [{
x: "",
y: "",
type: 'bar'
}]
}
]
}
As you can see those are the same items. Is it possible to set this data like
datasets:[ {
text: "",
value:[ {
x: "",
y: "",
type: 'bar'
}]
} * 3 ]
Instead of hardcoding it several times?