File tree Expand file tree Collapse file tree 2 files changed +0
-27
lines changed
scout-ui/src/minicharts/d3fns Expand file tree Collapse file tree 2 files changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,6 @@ module.exports = function(opts) {
25
25
} )
26
26
. value ( ) ;
27
27
28
- // var sumY = d3.sum(_.pluck(data, 'value'));
29
- // debug(data, sumY);
30
- // in a second pass, add tooltips
31
- // _.each(data, function(d) {
32
- // d.percent = Math.round(d.value / sumY * 100);
33
- // d.tooltip = tooltipHtml({
34
- // label: d.label,
35
- // value: Math.round(d.percent)
36
- // });
37
- // });
38
-
39
28
} else {
40
29
// use the linear scale just to get nice binning values
41
30
var x = d3 . scale . linear ( )
@@ -62,10 +51,6 @@ module.exports = function(opts) {
62
51
// remapping keys to conform with all other types
63
52
d . value = d . y ;
64
53
d . label = label ;
65
- // d.tooltip = tooltipHtml({
66
- // label: label,
67
- // value: Math.round(d.value / sumY * 100)
68
- // });
69
54
} ) ;
70
55
}
71
56
Original file line number Diff line number Diff line change @@ -27,18 +27,6 @@ module.exports = function(opts) {
27
27
. sortByOrder ( 'value' , [ false ] ) // descending on value
28
28
. value ( ) ;
29
29
30
- // var sumY = d3.sum(_.pluck(data, 'value'));
31
-
32
- // in a second pass, add tooltips
33
- // _.each(data, function(d) {
34
- // d.percent = Math.round(d.value / sumY * 100);
35
- // d.tooltip = tooltipHtml({
36
- // label: d.label,
37
- // value: Math.round(d.percent)
38
- // });
39
- // });
40
-
41
-
42
30
// clear element first
43
31
d3 . select ( el ) . selectAll ( '*' ) . remove ( ) ;
44
32
You can’t perform that action at this time.
0 commit comments