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:
Родитель
280a687a4c
Коммит
9aac534435
|
@ -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),
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче