File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ var raiseToTop = require('../../lib').raiseToTop;
17
17
var cancelEeaseColumn = require ( '../../lib' ) . cancelTransition ;
18
18
var prepareData = require ( './data_preparation_helper' ) ;
19
19
var splitData = require ( './data_split_helpers' ) ;
20
+ var Color = require ( '../../components/color' ) ;
20
21
21
22
module . exports = function plot ( gd , wrappedTraceHolders ) {
22
23
@@ -477,11 +478,10 @@ function sizeAndStyleRect(cellRect) {
477
478
cellRect
478
479
. attr ( 'width' , function ( d ) { return d . column . columnWidth ; } )
479
480
. attr ( 'stroke-width' , function ( d ) { return d . cellBorderWidth ; } )
480
- . attr ( 'stroke' , function ( d ) {
481
- return gridPick ( d . calcdata . cells . line . color , d . column . specIndex , d . rowNumber ) ;
482
- } )
483
- . attr ( 'fill' , function ( d ) {
484
- return gridPick ( d . calcdata . cells . fill . color , d . column . specIndex , d . rowNumber ) ;
481
+ . each ( function ( d ) {
482
+ var atomicSelection = d3 . select ( this ) ;
483
+ Color . stroke ( atomicSelection , gridPick ( d . calcdata . cells . line . color , d . column . specIndex , d . rowNumber ) ) ;
484
+ Color . fill ( atomicSelection , gridPick ( d . calcdata . cells . fill . color , d . column . specIndex , d . rowNumber ) ) ;
485
485
} ) ;
486
486
}
487
487
You can’t perform that action at this time.
0 commit comments