You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "sfirke (via GitHub)" <gi...@apache.org> on 2026/09/10 19:20:51 UTC

[I] Mouseover tooltip on temporal chart should include year [superset]

sfirke opened a new issue, #44149:
URL: https://github.com/apache/superset/issues/44149

   ### Bug description
   
   On a scatterplot spanning multiple years, and presumably other temporal charts, only the day and month are visible in the tooltip when I mouseover a point. I have to look down to the x-axis to see what year I'm in. This chart spans 2014-2026 so it's not obvious what year I'm in when I mouse over a point.
   
   <img width="988" height="934" alt="Image" src="https://github.com/user-attachments/assets/ed81aa6b-487f-4e15-8ace-c2b5ada89451" />
   
   I would like to see "Thu Mar 20 2016".
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   6.1.0
   
   ### Python version
   
   I don't know
   
   ### Node version
   
   I don't know
   
   ### Browser
   
   Firefox
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Mouseover tooltip on temporal chart should include year [superset]

Posted by "abhinav-phi (via GitHub)" <gi...@apache.org>.
abhinav-phi commented on issue #44149:
URL: https://github.com/apache/superset/issues/44149#issuecomment-5632734153

   I dug into where this comes from: the tooltip's temporal x value renders through the `smart_date_verbose` formatter (`superset-frontend/packages/superset-ui-core/src/time-format/formatters/smartDateVerbose.ts`), whose day/week tiers are `'%a %b %-e'` — that's the "Thu Mar 20" (missing year) on this chart. Because the multi-formatter picks its tier from the date's own granularity (a midnight timestamp hits the `day` tier), a 2014–2026 scatter still drops the year.
   Before opening a PR I'd like a steer on the intended fix, since `smart_date_verbose` is shared ("Verbose Adaptative Formatting"): should the day/week tiers become e.g. `'%a %b %-e %Y'` globally — simple, but it also lengthens every surface using that preset — or should the year be range-aware (include `%Y` when the x-domain spans multiple years) and scoped to chart tooltips only, which needs the chart range plumbed into the tooltip formatter? The reporter's example ("Thu Mar 20 2016") suggests the global tier change, but I don't want to churn a widely-used formatter without a maintainer weighing in. Happy to implement either direction with a small unit test on the formatter.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Mouseover tooltip on temporal chart should include year [superset]

Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on issue #44149:
URL: https://github.com/apache/superset/issues/44149#issuecomment-5633444500

   Good question. What is the list of charts that would be affected if we made
   the change globally?
   
   On Fri, Sep 11, 2026, 5:55 AM Abhinav ***@***.***> wrote:
   
   > *abhinav-phi* left a comment (apache/superset#44149)
   > <https://github.com/apache/superset/issues/44149#issuecomment-5632734153>
   >
   > I dug into where this comes from: the tooltip's temporal x value renders
   > through the smart_date_verbose formatter (
   > superset-frontend/packages/superset-ui-core/src/time-format/formatters/smartDateVerbose.ts),
   > whose day/week tiers are '%a %b %-e' — that's the "Thu Mar 20" (missing
   > year) on this chart. Because the multi-formatter picks its tier from the
   > date's own granularity (a midnight timestamp hits the day tier), a
   > 2014–2026 scatter still drops the year.
   > Before opening a PR I'd like a steer on the intended fix, since
   > smart_date_verbose is shared ("Verbose Adaptative Formatting"): should
   > the day/week tiers become e.g. '%a %b %-e %Y' globally — simple, but it
   > also lengthens every surface using that preset — or should the year be
   > range-aware (include %Y when the x-domain spans multiple years) and
   > scoped to chart tooltips only, which needs the chart range plumbed into the
   > tooltip formatter? The reporter's example ("Thu Mar 20 2016") suggests the
   > global tier change, but I don't want to churn a widely-used formatter
   > without a maintainer weighing in. Happy to implement either direction with
   > a small unit test on the formatter.
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/superset/issues/44149?email_source=notifications&email_token=ABZYDECZ6ZSDG5IEZTPI7M35OPD2DA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRTGI3TGNBRGUZ2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5632734153>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/ABZYDEC6SOWOW457QTMKHRT5OPD2DAVCNFSNUABEKJSXA33TNF2G64TZHMZTSNBWGQYDCOB3JFZXG5LFHM2TIMJWGM4DMNZVG6QXMAQ>
   > .
   > You are receiving this because you authored the thread.Message ID:
   > ***@***.***>
   >
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Mouseover tooltip on temporal chart should include year [superset]

Posted by "abhinav-phi (via GitHub)" <gi...@apache.org>.
abhinav-phi commented on issue #44149:
URL: https://github.com/apache/superset/issues/44149#issuecomment-5653670357

   #44212 implements this. Here's the global-impact list:
   
   It's narrower than "everything with a time axis" — x-axis tick labels use the non-verbose `smart_date` preset (`getXAxisFormatter`), which stays untouched. `smart_date_verbose` renders in exactly 4 surfaces:
   
   1. **Time-series family tooltips** (Timeseries incl. scatter, Mixed Timeseries, Gantt) via `getTooltipTimeFormatter` — only when "Tooltip time format" is left at the default "Adaptive formatting" and no time grain is set; with a grain, tooltips already include the year (`2021-01-07` for a day grain)
   2. **Time Pivot** — tooltip time labels
   3. **Big Number** (time-series mode) — the "Show timestamp" line under the metric
   
   Month/year tiers are already year-bearing (`Mar 2020`, `2020`), and users with an explicit d3 format in the control are unaffected — so the whole visible delta is: daily/weekly tooltip stamps on those surfaces gain a year.
   
   Since that scope is tooltip/timestamp-only, the PR makes the global tier change (`'%a %b %-e'` → `'%a %b %-e %Y'`), so hovering a daily point reads "Thu Mar 20 2016" exactly as in the report. Happy to switch to a range-aware variant if single-year charts should stay terse.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] Mouseover tooltip on temporal chart should include year [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #44149: Mouseover tooltip on temporal chart should include year
URL: https://github.com/apache/superset/issues/44149


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org