mirror of
https://github.com/bendtherules/react-vis-gridarea.git
synced 2026-08-18 22:02:23 +00:00
Remove useless lineseries + pass pointer events through line series
This commit is contained in:
@@ -39,8 +39,7 @@ export default class BasicChartWithGridArea extends React.Component {
|
|||||||
{x: timestamp + MSEC_DAILY * 3, y: 15},
|
{x: timestamp + MSEC_DAILY * 3, y: 15},
|
||||||
{x: timestamp + MSEC_DAILY * 4, y: 12}
|
{x: timestamp + MSEC_DAILY * 4, y: 12}
|
||||||
]}/>
|
]}/>
|
||||||
<LineSeries
|
|
||||||
data={null}/>
|
|
||||||
<LineSeries
|
<LineSeries
|
||||||
data={[
|
data={[
|
||||||
{x: timestamp + MSEC_DAILY, y: 10},
|
{x: timestamp + MSEC_DAILY, y: 10},
|
||||||
|
|||||||
@@ -39,8 +39,7 @@ export default class BasicChartWithGridArea extends React.Component {
|
|||||||
{x: timestamp + MSEC_DAILY * 3, y: 15},
|
{x: timestamp + MSEC_DAILY * 3, y: 15},
|
||||||
{x: timestamp + MSEC_DAILY * 4, y: 12}
|
{x: timestamp + MSEC_DAILY * 4, y: 12}
|
||||||
]}/>
|
]}/>
|
||||||
<LineSeries
|
|
||||||
data={null}/>
|
|
||||||
<LineSeries
|
<LineSeries
|
||||||
data={[
|
data={[
|
||||||
{x: timestamp + MSEC_DAILY, y: 10},
|
{x: timestamp + MSEC_DAILY, y: 10},
|
||||||
|
|||||||
@@ -38,8 +38,7 @@ export default class BasicChartWithGridArea extends React.Component {
|
|||||||
{x: timestamp + MSEC_DAILY * 3, y: 15},
|
{x: timestamp + MSEC_DAILY * 3, y: 15},
|
||||||
{x: timestamp + MSEC_DAILY * 4, y: 12}
|
{x: timestamp + MSEC_DAILY * 4, y: 12}
|
||||||
]}/>
|
]}/>
|
||||||
<LineSeries
|
|
||||||
data={null}/>
|
|
||||||
<LineSeries
|
<LineSeries
|
||||||
data={[
|
data={[
|
||||||
{x: timestamp + MSEC_DAILY, y: 10},
|
{x: timestamp + MSEC_DAILY, y: 10},
|
||||||
|
|||||||
@@ -35,15 +35,16 @@ export default class GridAreaWithSeriesEvt extends React.Component {
|
|||||||
<YAxis title="Y Axis" />
|
<YAxis title="Y Axis" />
|
||||||
|
|
||||||
<LineSeries
|
<LineSeries
|
||||||
|
style={{ 'pointer-events': 'none' }}
|
||||||
data={[
|
data={[
|
||||||
{ x: timestamp + MSEC_DAILY, y: 3 },
|
{ x: timestamp + MSEC_DAILY, y: 3 },
|
||||||
{ x: timestamp + MSEC_DAILY * 2, y: 5 },
|
{ x: timestamp + MSEC_DAILY * 2, y: 5 },
|
||||||
{ x: timestamp + MSEC_DAILY * 3, y: 15 },
|
{ x: timestamp + MSEC_DAILY * 3, y: 15 },
|
||||||
{ x: timestamp + MSEC_DAILY * 4, y: 12 }
|
{ x: timestamp + MSEC_DAILY * 4, y: 12 }
|
||||||
]} />
|
]} />
|
||||||
|
|
||||||
<LineSeries
|
<LineSeries
|
||||||
data={null} />
|
style={{ 'pointer-events': 'none' }}
|
||||||
<LineSeries
|
|
||||||
data={[
|
data={[
|
||||||
{ x: timestamp + MSEC_DAILY, y: 10 },
|
{ x: timestamp + MSEC_DAILY, y: 10 },
|
||||||
{ x: timestamp + MSEC_DAILY * 2, y: 4 },
|
{ x: timestamp + MSEC_DAILY * 2, y: 4 },
|
||||||
|
|||||||
@@ -35,15 +35,16 @@ export default class BasicChartWithGridArea extends React.Component {
|
|||||||
<YAxis title="Y Axis" />
|
<YAxis title="Y Axis" />
|
||||||
|
|
||||||
<LineSeries
|
<LineSeries
|
||||||
|
style={{ 'pointer-events': 'none' }}
|
||||||
data={[
|
data={[
|
||||||
{ x: timestamp + MSEC_DAILY, y: 3 },
|
{ x: timestamp + MSEC_DAILY, y: 3 },
|
||||||
{ x: timestamp + MSEC_DAILY * 2, y: 5 },
|
{ x: timestamp + MSEC_DAILY * 2, y: 5 },
|
||||||
{ x: timestamp + MSEC_DAILY * 3, y: 15 },
|
{ x: timestamp + MSEC_DAILY * 3, y: 15 },
|
||||||
{ x: timestamp + MSEC_DAILY * 4, y: 12 }
|
{ x: timestamp + MSEC_DAILY * 4, y: 12 }
|
||||||
]} />
|
]} />
|
||||||
|
|
||||||
<LineSeries
|
<LineSeries
|
||||||
data={null} />
|
style={{ 'pointer-events': 'none' }}
|
||||||
<LineSeries
|
|
||||||
data={[
|
data={[
|
||||||
{ x: timestamp + MSEC_DAILY, y: 10 },
|
{ x: timestamp + MSEC_DAILY, y: 10 },
|
||||||
{ x: timestamp + MSEC_DAILY * 2, y: 4 },
|
{ x: timestamp + MSEC_DAILY * 2, y: 4 },
|
||||||
|
|||||||
Reference in New Issue
Block a user