File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -476,12 +476,13 @@ module.exports = function(Chart) {
476
476
var dataset = me . getDataset ( ) ;
477
477
var index = rectangle . _index ;
478
478
var custom = rectangle . custom || { } ;
479
+ var model = rectangle . _model ;
479
480
options = options ? options : this . getElementOptions ( ) ;
480
481
481
- rectangle . _model . borderSkipped = custom . borderSkipped ? custom . borderSkipped : options . borderSkipped ;
482
- rectangle . _model . backgroundColor = custom . backgroundColor ? custom . backgroundColor : helpers . valueAtIndexOrDefault ( dataset . backgroundColor , index , options . backgroundColor ) ;
483
- rectangle . _model . borderColor = custom . borderColor ? custom . borderColor : helpers . valueAtIndexOrDefault ( dataset . borderColor , index , options . borderColor ) ;
484
- rectangle . _model . borderWidth = custom . borderWidth ? custom . borderWidth : helpers . valueAtIndexOrDefault ( dataset . borderWidth , index , options . borderWidth ) ;
482
+ model . borderSkipped = custom . borderSkipped ? custom . borderSkipped : options . borderSkipped ;
483
+ model . backgroundColor = custom . backgroundColor ? custom . backgroundColor : helpers . valueAtIndexOrDefault ( dataset . backgroundColor , index , options . backgroundColor ) ;
484
+ model . borderColor = custom . borderColor ? custom . borderColor : helpers . valueAtIndexOrDefault ( dataset . borderColor , index , options . borderColor ) ;
485
+ model . borderWidth = custom . borderWidth ? custom . borderWidth : helpers . valueAtIndexOrDefault ( dataset . borderWidth , index , options . borderWidth ) ;
485
486
} ,
486
487
487
488
getElementOptions : function ( ) {
You can’t perform that action at this time.
0 commit comments