Skip to content

Fix/172 y tick labels#173

Merged
chrisdicaprio merged 3 commits intomainfrom
fix/172-y-tick-labels
Mar 31, 2026
Merged

Fix/172 y tick labels#173
chrisdicaprio merged 3 commits intomainfrom
fix/172-y-tick-labels

Conversation

@chrisdicaprio
Copy link
Copy Markdown
Collaborator

@chrisdicaprio chrisdicaprio commented Mar 31, 2026

closes #172

  • adds yTickFormat prop for scientific notation
  • increase y-axis label spacing to left to avoid crowding

…s labels

Adds an optional yTickFormat prop to GroupCurveChartProps and GroupCurveChartResponsiveProps,
allowing callers to supply a custom tick formatter (e.g. scientific notation via toExponential).
Includes ScientificNotation Storybook stories for both GroupCurveChart and GroupCurveChartResponsive.
@chrisdicaprio chrisdicaprio marked this pull request as ready for review March 31, 2026 00:37
@chrisdicaprio chrisdicaprio requested review from chrisbc and voj March 31, 2026 00:37
Copy link
Copy Markdown
Member

@chrisbc chrisbc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Collaborator

@voj voj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This looks very familiar. Was the other fix for weka?

@voj
Copy link
Copy Markdown
Collaborator

voj commented Mar 31, 2026

Should you increase the version number?

@chrisdicaprio
Copy link
Copy Markdown
Collaborator Author

Should you increase the version number?

good catch, that's done now

@chrisdicaprio
Copy link
Copy Markdown
Collaborator Author

LGTM

This looks very familiar. Was the other fix for weka?

Similar, but #170 had fixed the tick labels being printed with scientific unit characters (m and μ). This allows ticks to be printed as scientific notation (10^x) so that they don't take up so much space.

@chrisdicaprio chrisdicaprio merged commit 1cb5880 into main Mar 31, 2026
1 check passed
@chrisdicaprio chrisdicaprio deleted the fix/172-y-tick-labels branch March 31, 2026 17:48
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.

fix: tick labels interfere with axis label

3 participants