File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ var attributeInsideTextFont = attributes.insidetextfont;
20
20
var attributeOutsideTextFont = attributes . outsidetextfont ;
21
21
var helpers = require ( './helpers' ) ;
22
22
23
- function style ( gd , cd ) {
24
- var s = cd ? cd [ 0 ] . node3 : d3 . select ( gd ) . selectAll ( 'g.barlayer' ) . selectAll ( 'g.trace' ) ;
23
+ function style ( gd ) {
24
+ var s = d3 . select ( gd ) . selectAll ( 'g.barlayer' ) . selectAll ( 'g.trace' ) ;
25
25
var barcount = s . size ( ) ;
26
26
var fullLayout = gd . _fullLayout ;
27
27
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ var d3 = require('d3');
13
13
var Drawing = require ( '../../components/drawing' ) ;
14
14
var Registry = require ( '../../registry' ) ;
15
15
16
- function style ( gd , cd ) {
17
- var s = cd ? cd [ 0 ] . node3 : d3 . select ( gd ) . selectAll ( 'g.trace.scatter' ) ;
16
+ function style ( gd ) {
17
+ var s = d3 . select ( gd ) . selectAll ( 'g.trace.scatter' ) ;
18
18
19
19
s . style ( 'opacity' , function ( d ) {
20
20
return d [ 0 ] . trace . opacity ;
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ var d3 = require('d3');
12
12
var Color = require ( '../../components/color' ) ;
13
13
var stylePoints = require ( '../scatter/style' ) . stylePoints ;
14
14
15
- module . exports = function style ( gd , cd ) {
16
- var s = cd ? cd [ 0 ] . node3 : d3 . select ( gd ) . selectAll ( 'g.trace.violins' ) ;
15
+ module . exports = function style ( gd ) {
16
+ var s = d3 . select ( gd ) . selectAll ( 'g.trace.violins' ) ;
17
17
18
18
s . style ( 'opacity' , function ( d ) { return d [ 0 ] . trace . opacity ; } ) ;
19
19
You can’t perform that action at this time.
0 commit comments