2.0.1 • Published 3 years ago

react-jsgraph v2.0.1

Weekly downloads
64
License
MIT
Repository
github
Last release
3 years ago

react-jsgraph

NPM version

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.