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 10
10
'use strict' ;
11
11
12
12
13
+ // remove opacity for any trace that has a fill or is filled to
13
14
module . 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 ;
19
18
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 ;
24
19
if ( ( filli === 'none' ) || ( tracei . type !== 'scatter' ) ) continue ;
25
20
tracei . opacity = undefined ;
26
21
27
22
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
+
30
26
if ( ( tracej . type === 'scatter' ) &&
31
27
( tracej . xaxis === tracei . xaxis ) &&
32
28
( tracej . yaxis === tracei . yaxis ) ) {
You can’t perform that action at this time.
0 commit comments