Discussion:
[visualization-api] google charts in ember
l***@gmail.com
2016-08-26 07:49:05 UTC
Permalink
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.......
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+***@googlegroups.com.
To post to this group, send email to google-visualization-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/6b94f373-063b-43d3-9c94-fcca71b0e259%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
l***@gmail.com
2016-08-29 09:55:20 UTC
Permalink
I have done a mistake while accessing data in templates i should be like
this
{{pie-chart data=model }}
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+***@googlegroups.com.
To post to this group, send email to google-visualization-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/4b8aea33-f43e-4940-a254-1740063c7e77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
l***@gmail.com
2016-08-29 09:55:41 UTC
Permalink
I have done a mistake while accessing data in templates it should be like
this
{{pie-chart data=model }}
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+***@googlegroups.com.
To post to this group, send email to google-visualization-***@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/302a64e6-45b2-459e-b216-1b7fa999bc33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...