Skip to content

Instantly share code, notes, and snippets.

@adamhenson
Created February 14, 2019 14:48
Show Gist options
  • Save adamhenson/6e885c41138221a9feaea2afb4c6d3db to your computer and use it in GitHub Desktop.
Save adamhenson/6e885c41138221a9feaea2afb4c6d3db to your computer and use it in GitHub Desktop.
An example chart component using 'react-chartkick' and 'chart.js'.
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