wrapper: d3pie doesn't need precomputed %ges

It can work just fine with counts. For the mouseover, it actually needs them.

Issue #214
This commit is contained in:
Chris H-C 2016-01-12 10:55:30 -05:00
Родитель 280a687a4c
Коммит 9aac534435
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -248,7 +248,8 @@ window.TelemetryWrapper.go = function (params, element) {
// but no one'd see them but us.
return {
date: i,
value: count / hist.count * 100
value: count / hist.count * 100,
count: count,
};
}));
@ -585,7 +586,7 @@ window.TelemetryWrapper.go = function (params, element) {
content: data.map((count, i) => {
return {
label: BUCKET_NAMES[i] || starts[i],
value: count.value,
value: count.count,
}
}).filter(datum => datum.value > 0),
},