google charts in ember

141 views
Skip to first unread message

lahar...@gmail.com

unread,
Aug 26, 2016, 3:49:06 AM8/26/16
to Google Visualization API
 I am trying to get charts in my ember-cli project using google charts.I included the addon  with the  below command.
ember install ember-google-charts

app/templates/application.hbs

{{pie-chart data=data }}

app/routes/application.js

import Ember from 'ember';

export default Ember.Route.extend({

  model() {
    return [
      ['Task', 'Hours per Day'],
      ['Work', 11],
      ['Eat', 2],
      ['Commute', 2],
      ['Watch TV', 2],
      ['Sleep', 7],
    ];
  },

});
 but in the browser no chart is displayed is that i have to include any other files???
please help me.......

Message has been deleted

lahar...@gmail.com

unread,
Aug 29, 2016, 5:55:42 AM8/29/16
to Google Visualization API


On Monday, August 29, 2016 at 3:25:21 PM UTC+5:30, lahar...@gmail.com wrote:
I have done  a mistake while accessing data in templates it should be like this
 {{pie-chart data=model }}
Reply all
Reply to author
Forward
0 new messages