[Vuejs]-Accessing dynamic variable from within data array

0👍

histogramOptions should be a computed property, considering dynamicValue. Like:

computed: {
  histogramOptions() {
    histogram: {
      bucketSize: this.dynamicValue,
    },
  },
},

So you will be able to access this.histogramOptions, which is reactive to this.dynamicValue.

Leave a comment