Skip to content

Set y-axis tick_format to max 3 d.p. with trailing zeros trimmed - #257

Merged
maread99 merged 3 commits into
mainfrom
claude/charts-y-axis-tick-format-5bswig
Jun 26, 2026
Merged

Set y-axis tick_format to max 3 d.p. with trailing zeros trimmed#257
maread99 merged 3 commits into
mainfrom
claude/charts-y-axis-tick-format-5bswig

Conversation

@maread99

@maread99 maread99 commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Formats y-axis price ticks to a maximum of three decimal places whilst trimming insignificant trailing zeros.


Manually reviewed.
Generated by Claude Code

maread99 and others added 3 commits June 26, 2026 14:39
Resolve the AIDEV-TODO in charts.py concerning the y-axis tick_format.
bqplot's Axis.tick_format is a Unicode trait that accepts only a d3
format string (or None), not a Callable, so the desired "max three
decimal places, trailing zeros trimmed" behaviour is expressed with the
d3 spec ".3~f". The trim flag "~" must follow the precision and precede
the type; the previously attempted "~.3f" is malformed and rejected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HVTEgDQ675XqPKg7mVRPM4
@maread99 maread99 added the fix Bug fix label Jun 26, 2026
@maread99
maread99 merged commit 0a7d420 into main Jun 26, 2026
8 checks passed
@maread99
maread99 deleted the claude/charts-y-axis-tick-format-5bswig branch June 26, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants