Page MenuHomePhabricator

Consider supporting chart subtitles
Closed, ResolvedPublic

Description

Spun out from T375235

Background

It is possible to have charts with a title and subtext
e.g. the text "Data from..." on https://echarts.apache.org/examples/en/editor.html?c=bar-polar-real-estate

Screenshot 2024-11-06 at 9.30.56 AM.png (708×1 px, 103 KB)

Use story

TBC - what is the use case for adding subtext

Acceptance criteria

From T375235:

  • Title subtext should be font size 14
  • Title subtext color should be #54595D in light mode, #A2A9B1 in dark mode

Details

Other Assignee
aude
Related Changes in Gerrit:
Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
Support chart subtitlerepos/mediawiki/services/chart-renderer!92audeT379180-subtitlesmain
Support chart subtitlerepos/mediawiki/services/chart-renderer!83simon04T379180main
Customize query in GitLab

Event Timeline

Jdlrobson triaged this task as Medium priority.Nov 6 2024, 7:26 PM
CCiufo-WMF lowered the priority of this task from Medium to Low.May 1 2025, 3:07 AM

I think you mean subtitle here not subtext.

Change #1143160 had a related patch set uploaded (by Simon04; author: Simon04):

[mediawiki/extensions/Chart@master] Support chart subtitle

https://gerrit.wikimedia.org/r/1143160

CCiufo-WMF renamed this task from Consider supporting title "subtext" to Consider supporting chart subtitles.May 8 2025, 6:33 PM
CCiufo-WMF moved this task from Backlog to Up Next on the Charts board.
CCiufo-WMF moved this task from Incoming to Code Review on the Charts (Current Sprint) board.
CCiufo-WMF added subscribers: simon04, CCiufo-WMF.

@simon04 assigning you since you are the patch author.

Hey @simon04 ! Just wondering if you've had a chance to work on the code review comments from @aude. We're hoping to land this in the next 2 weeks. Happy to support you with this more or make the changes ourselves if you're not available right now.

@CCiufo-WMF, please update my patches as needed. My interests shifted to other projects in the meantime.

@CCiufo-WMF, please update my patches as needed. My interests shifted to other projects in the meantime.

Sounds good, thanks for letting us know!

Change #1161043 had a related patch set uploaded (by Aude; author: Aude):

[mediawiki/extensions/Chart@master] Limit width of the chart subtitle

https://gerrit.wikimedia.org/r/1161043

Change #1143160 merged by jenkins-bot:

[mediawiki/extensions/Chart@master] Support chart subtitle

https://gerrit.wikimedia.org/r/1143160

Change #1161043 merged by jenkins-bot:

[mediawiki/extensions/Chart@master] Set width for the chart subtitle

https://gerrit.wikimedia.org/r/1161043

Fixed in 1.45.0-wmf.8; can resolve when .7 drops off production.

Should be deployed live on all sites now; .9 is lowest in prod so it should be everywhere.