Skip to content

feat: Runtime options support for Y axis scaling for live diagnostics graphs - #403

Merged
AlexDenfordSkyboxLabs merged 3 commits into
mainfrom
sbl/alex.denford/y-axis-options
Aug 18, 2026
Merged

feat: Runtime options support for Y axis scaling for live diagnostics graphs#403
AlexDenfordSkyboxLabs merged 3 commits into
mainfrom
sbl/alex.denford/y-axis-options

Conversation

@AlexDenfordSkyboxLabs

@AlexDenfordSkyboxLabs AlexDenfordSkyboxLabs commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Also changed the chunks diagnostics display within the World tab to use sqrt instead of linear to better show the ticking chunks (very small amount ~25) vs the loaded chunks (very large amount ~30,000).

Also added option for showSectionLabels (see image below)

Before:
image

New scaling + new option dropdown:
image

Comment thread webview-ui/src/diagnostics_panel/controls/YAxisStyleDropdown.tsx Outdated

@SBLMikeDemone SBLMikeDemone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A few small things, but Francisco is the true web dev here

Comment thread webview-ui/src/diagnostics_panel/controls/YAxisStyleDropdown.tsx Outdated
Comment thread webview-ui/src/diagnostics_panel/controls/MinecraftStatisticStackedLineChart.tsx Outdated
let sectionStart = 0;
const sectionLabels = latestData.map(stat => {
const sectionHeight = Math.max(0, stat.value);
const label = catageoryLabels?.[stat.category ?? ''] ?? stat.category ?? '';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should it be an error if any of these are undefined?

@frgarc frgarc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Other than having properties into CSS files, it LGTM

Comment thread webview-ui/src/diagnostics_panel/controls/YAxisStyleDropdown.tsx Outdated
@AlexDenfordSkyboxLabs
AlexDenfordSkyboxLabs merged commit bada501 into main Aug 18, 2026
5 checks passed
@AlexDenfordSkyboxLabs
AlexDenfordSkyboxLabs deleted the sbl/alex.denford/y-axis-options branch August 18, 2026 22:30
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.

4 participants