retention chart
This commit is contained in:
parent
2547c8c117
commit
8b73f215eb
5 changed files with 236 additions and 47 deletions
|
@ -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;
|
||||
},
|
||||
}],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue