@@ -9,31 +9,18 @@ module.exports = function styleOne(s, pt, trace, gd) {
9
9
var lineColor = castOption ( line . color , pt . pts ) || Color . defaultLine ;
10
10
var lineWidth = castOption ( line . width , pt . pts ) || 0 ;
11
11
12
- // some temporary console statements, for later debugging, needs to be removed once the assembler below gets clean
13
- // console.log('styleOne - s0', s[0], s[0][0], '__data__', s[0][0].__data__);
14
- // console.log( 's0 iiiiiiiii pie : ', (s[0][0].__data__.i !== undefined ? s[0][0].__data__.i : 'nope'));
15
- // console.log( 's0 iiiiiiiii legend : ', (s[0][0].__data__[0] !== undefined ? s[0][0].__data__[0].i : 'nope'));
16
- // console.log( 'pie style_one: s', s, 'trace', trace, 'gd', gd);
17
-
18
- // to do: rework this assembler code in a next iteration.
19
- var gibberish = s [ 0 ] [ 0 ] . __data__ ;
20
- if ( gibberish . i === undefined ) {
21
- // coming from a legend
22
- gibberish . i = gibberish [ 0 ] . i ;
23
- }
24
- // console.log( 's0 - i : ', s[0][0].__data__['i'], 'pt.color', pt.color, 'trace', trace);
25
-
26
12
// enforce the point color, when colors (with s) & the pattern shape are missing.
27
13
// 'abuse' the color attribute, used in the Drawing component for bar trace type.
28
- // alternative could be to pass the point color as an extra parameter in pointStyle
14
+ // alternative: could be to pass the point color as an extra parameter in pointStyle
15
+ // alternative: could be to activate pattern also for funnelarea
29
16
var marker = trace . marker ;
30
17
if ( marker . pattern ) {
31
18
if ( ! marker . colors || ! marker . pattern . shape ) marker . color = pt . color ;
32
19
} else {
33
20
marker . color = pt . color ;
34
21
}
35
22
36
- Drawing . pointStyle ( s , trace , gd ) ;
23
+ Drawing . pointStyle ( s , trace , gd , pt ) ;
37
24
// to do : push into s.style d3 logic
38
25
39
26
s . style ( 'stroke-width' , lineWidth )
0 commit comments