1.3.0 • Published 8 years ago
react-flot v1.3.0
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
@idis the id of the chart. It is required and must be unique@optionsis the options based on flot documentation@datais the data based on flot documentation@widthis the width of the component (default to 100%)@heightis the height of the component (default to 400px)
Available plugins
Pie Chartfrom http://www.flotcharts.org/flot/examples/series-pieTooltipfrom https://github.com/krzysu/flot.tooltipResizefrom http://www.flotcharts.org/flot/examples/resize/index.html
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.
1.3.0
8 years ago
1.2.0
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.0
9 years ago
0.6.0
9 years ago
0.5.1
9 years ago
0.5.0
9 years ago
0.4.1
9 years ago
0.4.0
9 years ago
0.3.2
9 years ago
0.3.1
9 years ago
0.3.0
9 years ago
0.2.0
9 years ago
0.1.0
9 years ago
0.0.7
9 years ago
0.0.6
9 years ago
0.0.5
9 years ago
0.0.4
9 years ago
0.0.3
9 years ago
0.0.1
9 years ago