Skip to content

heyfife/react-flot

 
 

Repository files navigation

ReactFlot

ReactFlot - A react component for using Flot

For information about Flot library go here.

Usage

import ReactFlot from 'react-flot';

render () {
  return (
    <ReactFlot id="product-chart" options={options} data={data} width="50%" height="100px" />
  );
}

Arguments

  • @id is the id of the chart. It is required and must be unique
  • @options is the options based on flot documentation
  • @data is the data based on flot documentation
  • @width is the width of the component (default to 100%)
  • @height is the height of the component (default to 400px)

Available plugins

Contributors

Would you like to contribute to this library? Don't be shy! Contact me if you are interested on it.

About

ReactFlot - A react component for using Flot

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 67.0%
  • HTML 32.5%
  • Other 0.5%