adopted-ember-addons / adopted-ember-addons/ember-cli-chart

Documentation update?

オープン
#94 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
138
フォーク
76
PR マージ指標
30日以内にマージされた PR はありません

説明

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*
```handlebars
{{ember-chart type="line" data=model.chartdata options=model.chartoptions}}
```
*Does work*
```handlebars


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

```
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.

```javascript
let options = { responsive: false };
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。