ankane / react-chartkick

Create beautiful JavaScript charts with one line of React
https://chartkick.com/react
MIT License
1.2k stars 58 forks source link

Can't get this working in CodeSandbox #15

Closed jikkujose closed 6 years ago

jikkujose commented 6 years ago

Complains: 'No adapter found'

https://codesandbox.io/s/l26p4r5qjq

ankane commented 6 years ago

Hey @JikkuJose, you need to select a charting library and make sure it's installed correctly. Instructions are here: https://github.com/ankane/react-chartkick#installation

jikkujose commented 6 years ago

Adding it as a dependency won't work? I should have the charting library as a link tag in head?

ankane commented 6 years ago

@JikkuJose No, simply adding it as a dependency won't work. You need to follow the complete instructions as laid out in the readme.

jikkujose commented 6 years ago

@ankane excuse me, but adding the dependency via window seems to be a hack? Or perhaps its my mental model thats wrong?

ankane commented 6 years ago

@JikkuJose Happy to take suggestions for a better approach, but that's what you'll need to do for now.