Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation update? #94

Open
queenvictoria opened this issue Dec 4, 2017 · 0 comments
Open

Documentation update? #94

queenvictoria opened this issue Dec 4, 2017 · 0 comments

Comments

@queenvictoria
Copy link

Hi there. I have spent a little while debugging why my chart wasn't working. I was tipped to the final solution but Stack Exchange.

It was to wrap my component in a div. The SE answer mentioned setting a height which I've found wasn't necessary.

period-graph.component.hbs
Doesn't work

{{ember-chart type="line" data=model.chartdata options=model.chartoptions}}

Does work

<div class="chart-wrapper">
{{ember-chart type="line" data=model.chartdata options=model.chartoptions}}
</div>

I know that this is probably outside the remit of this addon. And I'm not sure why this is the case. But it means that the README sample doesn't work out of the box for components.

The first thing that twigged me to it, which resulted in a productive Google search, was turning off responsive.

let options = { responsive: false };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant