mirror of
https://github.com/bendtherules/react-vis-gridarea.git
synced 2026-08-18 13:51:59 +00:00
Put green color on most grid area examples
This commit is contained in:
@@ -33,6 +33,7 @@ export default class GridAreaWithPopupOnValueClick extends React.Component {
|
||||
<VerticalGridLines />
|
||||
<GridArea
|
||||
direction={'horizontal'}
|
||||
style={{fill:"rgba(0,255,0,0.4)"}}
|
||||
highlightRegion={[[4, 5.76], [8.5, 11.25]]}
|
||||
onValueClick={(ev, value) => {
|
||||
console.log(ev);
|
||||
|
||||
@@ -33,6 +33,7 @@ export default class GridAreaWithPopupOnValueHover extends React.Component {
|
||||
<VerticalGridLines />
|
||||
<GridArea
|
||||
direction={'horizontal'}
|
||||
style={{fill:"rgba(0,255,0,0.4)"}}
|
||||
highlightRegion={[[4, 5.76], [8.5, 11.25]]}
|
||||
onValueMouseOver={(ev, value) => {
|
||||
console.log(ev);
|
||||
|
||||
@@ -25,6 +25,7 @@ export default class GridAreaWithSeriesEvt extends React.Component {
|
||||
<VerticalGridLines />
|
||||
<GridArea
|
||||
direction={'horizontal'}
|
||||
style={{fill:"rgba(0,255,0,0.4)"}}
|
||||
highlightRegion={[[4, 5.76], [8.5, 11.25]]}
|
||||
onSeriesClick={() => console.log('Clicked on series')}
|
||||
onSeriesMouseOver={() => console.log('Mouse over on series')}
|
||||
|
||||
@@ -25,6 +25,7 @@ export default class BasicChartWithGridArea extends React.Component {
|
||||
<VerticalGridLines />
|
||||
<GridArea
|
||||
direction={'horizontal'}
|
||||
style={{fill:"rgba(0,255,0,0.4)"}}
|
||||
highlightRegion={[[4, 5.76], [8.5, 11.25]]}
|
||||
onValueClick={(ev, value) => console.log(`Clicked on value ${value}`)}
|
||||
onValueMouseOver={(ev, value) => console.log(`Mouse over on value ${value}`)}
|
||||
|
||||
Reference in New Issue
Block a user