File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ function TraceManager(graphDiv, highlight) {
522
522
// avoid doing this over and over
523
523
this . origOpacity = [ ] ;
524
524
for ( var i = 0 ; i < this . origData . length ; i ++ ) {
525
- this . origOpacity [ i ] = this . origData [ i ] . opacity || 1 ;
525
+ this . origOpacity [ i ] = this . origData [ i ] . opacity === 0 ? 0 : ( this . origData [ i ] . opacity || 1 ) ;
526
526
}
527
527
528
528
// key: group name, value: null or array of keys representing the
@@ -603,7 +603,7 @@ TraceManager.prototype.updateSelection = function(group, keys) {
603
603
604
604
if ( keys === null ) {
605
605
606
- Plotly . restyle ( this . gd , { "opacity" : this . origOpacity } ) ;
606
+ Plotly . restyle ( this . gd , { "opacity" : this . acity } ) ;
607
607
608
608
} else if ( keys . length >= 1 ) {
609
609
@@ -741,7 +741,7 @@ TraceManager.prototype.updateSelection = function(group, keys) {
741
741
n = this . origData . length ;
742
742
743
743
for ( var i = 0 ; i < n ; i ++ ) {
744
- var opacity = this . origOpacity [ i ] || 1 ;
744
+ var opacity = this . acity [ i ] || 1 ;
745
745
// have we already dimmed this trace? Or is this even worth doing?
746
746
if ( opacity !== this . gd . _fullData [ i ] . opacity || this . highlight . opacityDim === 1 ) {
747
747
continue ;
You can’t perform that action at this time.
0 commit comments