File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 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;
1717var cancelEeaseColumn = require ( '../../lib' ) . cancelTransition ;
1818var prepareData = require ( './data_preparation_helper' ) ;
1919var splitData = require ( './data_split_helpers' ) ;
20+ var Color = require ( '../../components/color' ) ;
2021
2122module . exports = function plot ( gd , wrappedTraceHolders ) {
2223
@@ -477,11 +478,10 @@ function sizeAndStyleRect(cellRect) {
477478 cellRect
478479 . attr ( 'width' , function ( d ) { return d . column . columnWidth ; } )
479480 . 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 ) ) ;
485485 } ) ;
486486}
487487
You can’t perform that action at this time.
0 commit comments