[Vuejs]-How to display Json formated data from laravel backend into vue js GChart(vue-google-charts) using inertia js

0👍

The error was caused when returning data from the props.

 props:{
   pie:Object

  },

Instead of returning the object,an array had to be returned

props:{
   pie:Array

  },

Then in the rendering one has to use the this. property

  return {
      chartData:this.pie,
      options: {
        width: 1100,
        height: 450
      }
    };

Leave a comment