mirror of
https://github.com/bendtherules/react-vis-gridarea.git
synced 2026-08-18 22:02:23 +00:00
41 lines
618 B
Markdown
41 lines
618 B
Markdown
# react-vis-gridarea
|
|
|
|
## Grid area for react-vis charts
|
|
|
|
Usage
|
|
-----
|
|
```
|
|
import GridArea from 'react-vis-gridarea';
|
|
|
|
|
|
class TestChart extends React.Component {
|
|
render() {
|
|
|
|
return (
|
|
<XYPlot
|
|
width={...}
|
|
height={...}>
|
|
|
|
// vvvvvv
|
|
|
|
<GridArea
|
|
direction={'horizontal'}
|
|
highlightRegion={[[4, 6], [8, 11.25]]}
|
|
/>
|
|
|
|
// ^^^^^^
|
|
|
|
<XAxis title="X Axis" />
|
|
<YAxis title="Y Axis" />
|
|
<LineSeries
|
|
data={...}/>
|
|
</XYPlot>
|
|
);
|
|
}
|
|
}
|
|
```
|
|
|
|
Looks like this:
|
|
|
|

|