react-jsgraph

React components integrating jsGraph

Usage no npm install needed!

<script type="module">
  import reactJsgraph from 'https://cdn.skypack.dev/react-jsgraph';
</script>

README

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.