Skip to content

Commit 05d76ee

Browse files
committed
Fix tooltip when chart timeline
1 parent 0e255d2 commit 05d76ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/js/dashboard/components/widgets/graph/useXYChart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export function useXYChart(props: DashboardWidgetProps<LineGraphWidgetData | Bar
8080
const nearestDate = new Date(
8181
getNearest(
8282
props.value.labels.map((label) => new Date(label).getTime()),
83-
(x as Date).getTime(),
83+
x as number, // timestamp
8484
v => v
8585
)
8686
);

0 commit comments

Comments
 (0)