Glavin001 / ember-c3

:chart_with_upwards_trend: Ember addon library for C3, a D3-based reusable chart library.
http://glavin001.github.io/ember-c3/
MIT License
81 stars 60 forks source link

Change chart style #70

Closed frcake closed 7 years ago

frcake commented 7 years ago

Hey there , great package this one.

I've set it up and it's playing nicely , but i can't change the chart style , for instance make the dots disappear and such.

While everything renders nicely , colors and spcific types and such , the options given outside the data :{},... are not rendered :( any ideas ?

I even tried it with your example controllers, still nothing!

Thanks tons!

here's my controller: https://gist.github.com/frcake/4746d54f17d2979527b24c1bc9185b52

frcake commented 7 years ago

Actually i just fixed it , What i did was to create a component called c3-chart.js (as there's one in the dummy app) and add this line: export { default } from 'ember-c3/components/c3-chart';

The name of the component should be equal to the {{c3-chart ...}} you are calling in your view. now the options render correctly.