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

[ERROR] Uncaught Error: No adapter found #17

Closed hamdibayhan closed 6 years ago

hamdibayhan commented 6 years ago

Hi,

I am doing following steps:

npx create-react-app my-app
npm install chartkick react-chartkick --save

Then I added codes like the below;

./my-app/src/App.js

import React, { Component } from 'react';
import { LineChart, PieChart } from 'react-chartkick';

class App extends Component {
  render() {
    return (
      <div className="App">
        <LineChart data={{"2017-01-01": 11, "2017-01-02": 6}} />
      </div>
    );
  }
}

export default App;

./my-app/src/index.js


import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';

ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();

Then I am getting this error, Why I am getting this error:

screen shot 2018-01-12 at 18 14 57

ankane commented 6 years ago

Hey @hamdibayhan, see #15