react-webchart

0.1.0 • Public • Published

react-webchart

A simple wrapper for using a Webcharts chart as a React component

Use it like this:

<ReactWebchart
  //some array of objects representing your dataset
  data={ [ {x: 1, y: 1}, {x: 2, y: 2} ] }
  //standard webcharts chart configuration object - see webcharts docs
  settings={
    { 
      x: {},
      y: {},
      marks: []
    }
  }
  //inputs arry from a statndard webcharts controls configuration object - see webcharts docs
  controlInputs={ [] }
  //chart id (optional)
  id={ 'myNewChart' } 
/>

Readme

Keywords

Package Sidebar

Install

npm i react-webchart

Weekly Downloads

0

Version

0.1.0

License

ISC

Last publish

Collaborators

  • rhographics
  • samussiah
  • pburnsdata