Fixed dates
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user