README
react-jsgraph
Installation
npm install --save react-jsgraph
Usage
import { Chart } from 'react-jsgraph';
const json = {
title: 'My chart',
data: [
{
x: [1, 2, 3, 4, 5],
y: [1, 2, 3, 2, 1]
}
]
};
function App() {
return <Chart chart={json} style={{ height: 500 }} />;
}
Documentation
See https://zakodium.github.io/react-jsgraph/ for detailed usage examples.