title: Is there a way to use NumberFormat() formatter (Google Charts) in vue-google-charts vue.js wrapper
body: <p>I have been tasked with formatting some columns in charts using vue-google-charts, a vue.js wrapper for Google Charts and I am not sure that 'NumberFormat()' is even supported in vue-google-charts.</p>
  
  <p>First, if somebody knows if it is or isn't, I would like to know so I don't waste much time pursuing something that isn't possible. But if it is, I sure would love an example of how to do it.</p>
  
  <p>What we are doing is returning our chart data from the database and passing it into this vue.js wrapper. We are creating several charts but there are columns that have commas in them we want to remove.</p>
  
  <p>Please review the existing code. I am trying to implement this using @ready as documented in the docs for vue-google-charts.</p>
  
  <p>vue-google-charts docs -> <a href="https://www.npmjs.com/package/vue-google-charts" rel="nofollow noreferrer">https://www.npmjs.com/package/vue-google-charts</a></p>
  
  <p>Here is our existing code with a little framework of the onChartReady method already in place.</p>
  
  <pre><code>&lt;GChart
                      v-if="chart.data"
                      id="gchart"
                      :key="index"
                      :options="{
                          pieSliceText: chart.dropDownPie,
                          allowHtml: true
                      }"
                      :type="chart.ChartType"
                      :data="filtered(chart.data, chart.query, chart.query_type)"
                      :class="[
                      {'pieChart': chart.ChartType == 'PieChart'},
                      {'tableChart': chart.ChartType == 'Table'}
                      ]"
                      @ready = "onChartReady"
              /&gt;    
  </code></pre>
  
  <p>And then ...</p>
  
  <pre><code>&lt;script&gt;
  import { GChart } from 'vue-google-charts';
  import fuzzy from 'fuzzy';
  import 'vue-awesome/icons';
  import Icon from 'vue-awesome/components/Icon';
  
  export default {
      components: {
          GChart,
          Icon
      },
      props: {
  
      },
      data() {
          return {
              charts: window.template_data,
              selected: 'null',
              selects: [],
              chartToSearch: false,
              directDownloads: {
                  'Inactive Phones' : {
                      'slug' : 'phones_by_status',
                      'search_by' : 2,
                      'search' : '/Inactive/'
                  },
                  'Active Phones' : {
                      'slug' : 'phones_by_status',
                      'search_by' : 2,
                      'search' : '/Active/'
                  },
  
              }
          }
      },
      created(){
          for (let i in this.charts){
              if( !this.charts[i].slug ) continue;
              $.post(ajaxurl, {
                  action: 'insights_' + this.charts[i].slug,
              }, (res) =&gt; {
                  console.log(res.data);
                  if (res.success) {
                      this.$set(this.charts[i], 'data', res.data);
                  }
              });
          }
          // console.log(this.charts);
      },
      methods: {
          onChartReady(chart,google) {
              let formatter = new.target.visualization.NumberFormat({
                  pattern: '0'
              });
              formatter.format(data, 0);
              chart.draw(data)
          },
          toggleChart(chart) {
              jQuery.post(ajaxurl, {
                  'action': 'update_insight_chart_type',
                  'chartType': chart.ChartType,
                  'chartSlug': chart.slug
              }, (res) =&gt; {
                  chart.ChartType = res.data
              })
          },
          csvHREF(chart) {
              return window.location.href + '&amp;rr_download_csv=' + chart.slug + '&amp;rr_download_csv_search_by=' + chart.query_type + '&amp;rr_download_csv_search=' + chart.query.trim()
          },
          filtered(data, query, column) {
              query = query.trim();
              if (query){
                  let localData = JSON.parse(JSON.stringify(data));
                  let column_Headers = localData.shift();
  
                  localData = localData.filter((row)=&gt;{
                      if( query.endsWith('/') &amp;&amp; query.startsWith('/') ){
                          return new RegExp(query.replace(/\//g, '')).test(String(row[column]));
                      }
                      return String(row[column]).toLowerCase().indexOf(query.toLowerCase()) &gt; -1;
                  });
                  localData.unshift(column_Headers);
                  return localData;
              }
              return data;
          },
          filterIcon(chart) {
              chart.searchVisible = !chart.searchVisible;
              chart.query = "";
              setTimeout(()=&gt;{
                  document.querySelector(`#chart-${chart.slug} .insightSearch`).focus();
              }, 1);
          }
      }
  }
  document.getElementsByClassName('google-visualization-table')
  </code></pre>
  
  <p>    </p>
  
  <p>If anybody can help in ANY way, I am all ears.</p>
  
  <p>Thanks!</p>