File tree 1 file changed +10
-1
lines changed
frontend/src/lib/components/charts
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 81
81
{/if }
82
82
</svelte:fragment >
83
83
84
- <svelte:fragment slot =" tooltip" let:x let:y let:height let:visibleSeries >
84
+ <svelte:fragment
85
+ slot =" tooltip"
86
+ let:x
87
+ let:y
88
+ let:height
89
+ let:visibleSeries
90
+ let:setHighlightSeriesKey
91
+ >
85
92
<Tooltip .Root {...tooltipProps .root } x ="data" y ={height + 24 } pointerEvents let:data >
86
93
<Tooltip .Header {...tooltipProps .header }>
87
94
{formatDate (x (data ))}
96
103
<button
97
104
class =" col-span-full grid grid-cols-[1fr,auto] gap-6 hover:bg-neutral-400 py-2 px-3 rounded"
98
105
onclick ={() => onitemclick ?.({ series: s , data: seriesTooltipData , value })}
106
+ onmouseenter ={() => setHighlightSeriesKey (s .key )}
107
+ onmouseleave ={() => setHighlightSeriesKey (null )}
99
108
>
100
109
<Tooltip .Item
101
110
label ={s .label ?? (s .key !== ' default' ? s .key : ' value' )}
You can’t perform that action at this time.
0 commit comments