Skip to content

fix(ui): don't apply log scale to charts with max value below 1#108

Merged
fahimfaisaal merged 2 commits into
mainfrom
fix/log-scale-below-1
May 23, 2026
Merged

fix(ui): don't apply log scale to charts with max value below 1#108
fahimfaisaal merged 2 commits into
mainfrom
fix/log-scale-below-1

Conversation

@fahimfaisaal

Copy link
Copy Markdown
Member

When log scale is toggled globally, charts where all data values are less than 1 would render with negative powers of 10 on the Y axis (0.001, 0.01, 0.1), making them unreadable.

Now compute maxValue per-chart in both bar and line composables. If the user has selected log scale but the chart's max value is below 1, the chart falls back to linear scale automatically.

fahimfaisaal and others added 2 commits May 23, 2026 16:36
When log scale is toggled globally, charts where all data values are
less than 1 would render with negative powers of 10 on the Y axis
(0.001, 0.01, 0.1), making them unreadable.

Now compute maxValue per-chart in both bar and line composables. If
the user has selected log scale but the chart's max value is below 1,
the chart falls back to linear scale automatically.

Co-authored-by: CommandCodeBot <[email protected]>
@fahimfaisaal
fahimfaisaal merged commit fe89bc2 into main May 23, 2026
@fahimfaisaal
fahimfaisaal deleted the fix/log-scale-below-1 branch May 24, 2026 11:54
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.

1 participant