Skip to content

Commit fcd15b7

Browse files
committed
cleanup and remove dead code.
1 parent ffe8b2c commit fcd15b7

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

scout-ui/src/minicharts/d3fns/number.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,6 @@ module.exports = function(opts) {
2525
})
2626
.value();
2727

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-
3928
} else {
4029
// use the linear scale just to get nice binning values
4130
var x = d3.scale.linear()
@@ -62,10 +51,6 @@ module.exports = function(opts) {
6251
// remapping keys to conform with all other types
6352
d.value = d.y;
6453
d.label = label;
65-
// d.tooltip = tooltipHtml({
66-
// label: label,
67-
// value: Math.round(d.value / sumY * 100)
68-
// });
6954
});
7055
}
7156

scout-ui/src/minicharts/d3fns/string.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,6 @@ module.exports = function(opts) {
2727
.sortByOrder('value', [false]) // descending on value
2828
.value();
2929

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-
4230
// clear element first
4331
d3.select(el).selectAll('*').remove();
4432

0 commit comments

Comments
 (0)