File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 1010'use strict' ;
1111
1212
13+ // remove opacity for any trace that has a fill or is filled to
1314module . exports = function cleanData ( fullData ) {
14- var i ,
15- tracei ,
16- filli ,
17- j ,
18- tracej ;
15+ for ( var i = 0 ; i < fullData . length ; i ++ ) {
16+ var tracei = fullData [ i ] ;
17+ var filli = tracei . fill ;
1918
20- // remove opacity for any trace that has a fill or is filled to
21- for ( i = 0 ; i < fullData . length ; i ++ ) {
22- tracei = fullData [ i ] ;
23- filli = tracei . fill ;
2419 if ( ( filli === 'none' ) || ( tracei . type !== 'scatter' ) ) continue ;
2520 tracei . opacity = undefined ;
2621
2722 if ( filli === 'tonexty' || filli === 'tonextx' ) {
28- for ( j = i - 1 ; j >= 0 ; j -- ) {
29- tracej = fullData [ j ] ;
23+ for ( var j = i - 1 ; j >= 0 ; j -- ) {
24+ var tracej = fullData [ j ] ;
25+
3026 if ( ( tracej . type === 'scatter' ) &&
3127 ( tracej . xaxis === tracei . xaxis ) &&
3228 ( tracej . yaxis === tracei . yaxis ) ) {
You can’t perform that action at this time.
0 commit comments