Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-flot

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-flot

ReactFlot - A react component for using Flot

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

ReactFlot

ReactFlot - A react component for using Flot

For information about Flot library go here.

Requirements

It is required to have jQuery available. If you are using webpack, it is possible to provide jQuery using a plugin.

module.exports = {
  ...
  plugins: [
    new webpack.ProvidePlugin({
      $: 'jquery',
      jQuery: 'jquery',
    }),
  ],
  ...
}

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

Using other plugins

If you want other plugins it is possible to import them.

require('../node_modules/react-flot/flot/jquery.flot.time.min');
// OR
import '../node_modules/react-flot/flot/jquery.flot.time.min';

Contributors

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

Keywords

FAQs

Package last updated on 31 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc