retention chart

This commit is contained in:
syuilo 2022-12-28 14:13:47 +09:00
parent 2547c8c117
commit 8b73f215eb
5 changed files with 236 additions and 47 deletions

View file

@ -132,12 +132,10 @@ async function renderChart() {
fill: true,
width(c) {
const a = c.chart.chartArea ?? {};
// 20
return (a.right - a.left) / weeks - marginEachCell;
},
height(c) {
const a = c.chart.chartArea ?? {};
// 7
return (a.bottom - a.top) / 7 - marginEachCell;
},
}],