Working with vue-chartjs data objects

I am trying to dynamically populate a chart component with a link from the parent data object + mixins

Is there a way to pass a data object to methods, for example. Shortcuts to list my existing object object or do I need to create my own solution to pass an array?

eg,

getDataLabels(){
  var array = [];
  for (var i=0; i < this.items.length; i++) {
      array.push(i);
  }
  return array;
}

edit: tag added

+1
source share

Source: https://habr.com/ru/post/1016581/


All Articles