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

Documentation update?

Aperta
#94 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
138
Fork
76
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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 };
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.