groceries stats: fix array/json params for the app client (live store filter 500), CPI axis, header spacing
All checks were successful
Deploy production / deploy (push) Successful in 1m11s
All checks were successful
Deploy production / deploy (push) Successful in 1m11s
This commit is contained in:
@@ -394,7 +394,12 @@
|
||||
tooltip: { trigger: 'axis', valueFormatter: (v: number) => (v == null ? '–' : v.toFixed(2)) },
|
||||
legend: legend(t),
|
||||
xAxis: { type: 'category', data: (s?.days ?? []).map(fmtDay), axisLabel: { color: t.muted } },
|
||||
yAxis: axisVal(t),
|
||||
yAxis: {
|
||||
...axisVal(t),
|
||||
scale: true,
|
||||
minInterval: 0.1,
|
||||
axisLabel: { color: t.muted, formatter: (v: number) => v.toFixed(1) }
|
||||
},
|
||||
series: ids.map((k) => ({
|
||||
name: sname(Number(k)),
|
||||
type: 'line',
|
||||
@@ -588,8 +593,8 @@
|
||||
<p class="mt-2 flex flex-wrap items-center gap-1.5 text-sm text-[var(--site-muted)]">
|
||||
<Lock size={14} aria-hidden="true" />
|
||||
{#if ready && meta}
|
||||
Snapshot of {fmtDay(ready.day)} · {historyDays} day{historyDays === 1 ? '' : 's'} of price history{#if ready.durationMs}
|
||||
· computed in {(ready.durationMs / 1000).toFixed(1)} s{/if}
|
||||
Snapshot of {fmtDay(ready.day)} · {historyDays} day{historyDays === 1 ? '' : 's'} of price history
|
||||
{#if ready.durationMs}· computed in {(ready.durationMs / 1000).toFixed(1)} s{/if}
|
||||
{:else}Who's cheapest, how often, and by how much.{/if}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user