Skip to content

feat: add title_font_size query param - #252

Open
ToledoVitor wants to merge 1 commit into
Ashutosh00710:mainfrom
ToledoVitor:vitortoledo/title-font-size
Open

feat: add title_font_size query param#252
ToledoVitor wants to merge 1 commit into
Ashutosh00710:mainfrom
ToledoVitor:vitortoledo/title-font-size

Conversation

@ToledoVitor

Copy link
Copy Markdown

Closes #139

Summary

  • Adds a title_font_size query param (5-40 inclusive, default 20 — matches the previous hardcoded value, so existing embeds render unchanged).
  • The title's foreignObject box scales with the font size so larger titles don't get clipped.

All Submissions

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions

  1. Does your submission pass tests?
  2. Have you lint your code locally prior to submission?

Test plan

  • npm test passes locally (existing suite + 2 new assertions covering clamping and a custom font size)
  • tsc --noEmit and prettier --check clean
  • Verified visually at the real production render width (1200px) across the full 5-40 range with default and custom titles — no clipping, default output byte-identical to before

Adds a title_font_size query param (5-40, default 20) that controls
the graph title's font size. Default matches the previous hardcoded
value so existing embeds render unchanged. The title's foreignObject
box scales with the font size so larger titles don't get clipped.

Closes Ashutosh00710#139
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

@ToledoVitor is attempting to deploy a commit to the ashutosh00710's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NEW FEATURE: Title font-size

1 participant