File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ vizuly2.viz.LineAreaChart = function (parent) {
498
498
499
499
// Set our accessors so the d3.area can generate our area path data
500
500
area . curve ( scope . curve )
501
- . defined ( function ( d ) { return ( d . data ) ? d : null ; } )
501
+ . defined ( function ( d , i ) { return ( scope . y ( d . data ) != null ) } )
502
502
. x ( function ( d , i ) {
503
503
return scope . xScale ( scope . x ( d . data , i ) ) ;
504
504
} )
@@ -511,7 +511,7 @@ vizuly2.viz.LineAreaChart = function (parent) {
511
511
512
512
// Set our accessors so the d3.line can generate our line path data
513
513
line . curve ( scope . curve )
514
- . defined ( function ( d ) { return ( d . data ) ? d : null ; } )
514
+ . defined ( function ( d , i ) { return ( scope . y ( d . data ) != null ) } )
515
515
. x ( function ( d , i ) {
516
516
return scope . xScale ( scope . x ( d . data , i ) ) ;
517
517
} )
You can’t perform that action at this time.
0 commit comments