1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

Reverted test-chings

This commit is contained in:
Mawoka 2021-08-29 12:00:51 +02:00
parent 23f8a5cf7f
commit d1577fc6be

View File

@ -61,9 +61,7 @@ String.prototype.toHHMM = function () {
return `${hours}:${minutes}` return `${hours}:${minutes}`
} }
console.log(wakapiData.projects
.slice(0, Math.min(showTopN[0], wakapiData.projects.length))
.map(p => p.key))
function draw(subselection) { function draw(subselection) {
function getTooltipOptions(key) { function getTooltipOptions(key) {
@ -338,10 +336,9 @@ function getPresentDataMask() {
} }
function getContainer(chart) { function getContainer(chart) {
if ( chart.canvas != undefined) { // See https://github.com/muety/wakapi/issues/235#issuecomment-907762100
return chart.canvas.parentNode return chart.canvas.parentNode
} }
}
function onChartResize(chart) { function onChartResize(chart) {
let container = getContainer(chart) let container = getContainer(chart)