Fixed dates

This commit is contained in:
Simon Pocrnjič
2026-04-14 17:41:05 +02:00
parent 821985469e
commit 7881508a7b
6 changed files with 52 additions and 23 deletions
@@ -32,7 +32,7 @@ const chartData = computed(() => {
}
return props.trends.labels.map((label, i) => ({
date: new Date(label),
date: new Date(label + "T00:00:00"),
dateLabel: label,
completed: props.trends.field_jobs_completed[i] || 0,
assigned: props.trends.field_jobs[i] || 0,
@@ -140,7 +140,7 @@ const crosshairLabelFormatter = (value) => {
type="x"
:tick-line="false"
:grid-line="false"
:num-ticks="7"
:tick-values="chartData.map((d) => d.date)"
:tick-format="
(d) => {
const date = new Date(d);