File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
apps/studio/components/ui/Charts Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ const CustomTooltip = ({
140140 isActiveHoveredChart,
141141} : TooltipProps ) => {
142142 if ( active && payload && payload . length ) {
143+ const timestamp = payload [ 0 ] . payload . timestamp
143144 const maxValueAttribute = isMaxAttribute ( attributes )
144145 const maxValueData =
145146 maxValueAttribute && payload ?. find ( ( p : any ) => p . dataKey === maxValueAttribute . attribute )
@@ -205,7 +206,7 @@ const CustomTooltip = ({
205206 ! isActiveHoveredChart && 'opacity-0'
206207 ) }
207208 >
208- < p className = "font-medium" > { label } </ p >
209+ < p className = "font-medium" > { dayjs ( timestamp ) . format ( DateTimeFormats . FULL_SECONDS ) } </ p >
209210 < div className = "grid gap-0" >
210211 { payload
211212 . reverse ( )
You can’t perform that action at this time.
0 commit comments