Skip to content

Commit e574dfb

Browse files
committed
fix: tooltip formatting
1 parent be5ac4a commit e574dfb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/routes/stats/npm/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,15 @@ function NpmStatsChart({
686686
: plotData.filter((d) => d.date < partialBinEnd),
687687
Plot.pointer({
688688
...baseOptions,
689+
stroke: 'name',
690+
format: {
691+
x: (d) =>
692+
d.toLocaleDateString('en-US', {
693+
month: 'long',
694+
day: 'numeric',
695+
year: 'numeric',
696+
}),
697+
},
689698
} as Plot.TipOptions)
690699
),
691700
].filter(Boolean),

0 commit comments

Comments
 (0)