We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e255d2 commit 05d76eeCopy full SHA for 05d76ee
1 file changed
resources/js/dashboard/components/widgets/graph/useXYChart.ts
@@ -80,7 +80,7 @@ export function useXYChart(props: DashboardWidgetProps<LineGraphWidgetData | Bar
80
const nearestDate = new Date(
81
getNearest(
82
props.value.labels.map((label) => new Date(label).getTime()),
83
- (x as Date).getTime(),
+ x as number, // timestamp
84
v => v
85
)
86
);
0 commit comments