Created
February 14, 2019 14:48
-
-
Save adamhenson/6e885c41138221a9feaea2afb4c6d3db to your computer and use it in GitHub Desktop.
An example chart component using 'react-chartkick' and 'chart.js'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactChartkick, { LineChart } from 'react-chartkick'; | |
import Chart from 'chart.js'; | |
ReactChartkick.addAdapter(Chart); | |
export default props => (<LineChart {...props} />); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment