0.1.0 • Published 8 years ago

react-webchart v0.1.0

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

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' } 
/>