Remove useless lineseries + pass pointer events through line series

This commit is contained in:
2018-07-09 19:12:37 +05:30
parent 39212e638b
commit 2a9aaf172c
5 changed files with 9 additions and 10 deletions
+1 -2
View File
@@ -39,8 +39,7 @@ export default class BasicChartWithGridArea extends React.Component {
{x: timestamp + MSEC_DAILY * 3, y: 15},
{x: timestamp + MSEC_DAILY * 4, y: 12}
]}/>
<LineSeries
data={null}/>
<LineSeries
data={[
{x: timestamp + MSEC_DAILY, y: 10},
+1 -2
View File
@@ -39,8 +39,7 @@ export default class BasicChartWithGridArea extends React.Component {
{x: timestamp + MSEC_DAILY * 3, y: 15},
{x: timestamp + MSEC_DAILY * 4, y: 12}
]}/>
<LineSeries
data={null}/>
<LineSeries
data={[
{x: timestamp + MSEC_DAILY, y: 10},
+1 -2
View File
@@ -38,8 +38,7 @@ export default class BasicChartWithGridArea extends React.Component {
{x: timestamp + MSEC_DAILY * 3, y: 15},
{x: timestamp + MSEC_DAILY * 4, y: 12}
]}/>
<LineSeries
data={null}/>
<LineSeries
data={[
{x: timestamp + MSEC_DAILY, y: 10},
+3 -2
View File
@@ -35,15 +35,16 @@ export default class GridAreaWithSeriesEvt extends React.Component {
<YAxis title="Y Axis" />
<LineSeries
style={{ 'pointer-events': 'none' }}
data={[
{ x: timestamp + MSEC_DAILY, y: 3 },
{ x: timestamp + MSEC_DAILY * 2, y: 5 },
{ x: timestamp + MSEC_DAILY * 3, y: 15 },
{ x: timestamp + MSEC_DAILY * 4, y: 12 }
]} />
<LineSeries
data={null} />
<LineSeries
style={{ 'pointer-events': 'none' }}
data={[
{ x: timestamp + MSEC_DAILY, y: 10 },
{ x: timestamp + MSEC_DAILY * 2, y: 4 },
+3 -2
View File
@@ -35,15 +35,16 @@ export default class BasicChartWithGridArea extends React.Component {
<YAxis title="Y Axis" />
<LineSeries
style={{ 'pointer-events': 'none' }}
data={[
{ x: timestamp + MSEC_DAILY, y: 3 },
{ x: timestamp + MSEC_DAILY * 2, y: 5 },
{ x: timestamp + MSEC_DAILY * 3, y: 15 },
{ x: timestamp + MSEC_DAILY * 4, y: 12 }
]} />
<LineSeries
data={null} />
<LineSeries
style={{ 'pointer-events': 'none' }}
data={[
{ x: timestamp + MSEC_DAILY, y: 10 },
{ x: timestamp + MSEC_DAILY * 2, y: 4 },