Skip to content

fix(charts): size value 3D grid from category counts and cap camera distance#161

Merged
fahimfaisaal merged 2 commits into
mainfrom
fix/value-3d-grid-shape
Jun 27, 2026
Merged

fix(charts): size value 3D grid from category counts and cap camera distance#161
fahimfaisaal merged 2 commits into
mainfrom
fix/value-3d-grid-shape

Conversation

@fahimfaisaal

Copy link
Copy Markdown
Member

Summary

  • Fix value/pseudo 3D (--3d on 2D x+y categorical data) forcing a 100×100×100 cube regardless of category counts
  • Size boxWidth / boxDepth from boxSizeForAxisCount, matching grouped 3D behavior
  • Set value-mode boxHeight to Math.min(xWidth, yWidth)
  • Cap viewControl.distance at 300 for grouped, value, and continuous 3D modes

Test plan

  • pnpm vitest run src/composables/charts/shared/3d.test.ts (41 tests)
  • Full UI test suite (356 tests)
  • vizb-ui.gen.go embed sync check

…istance

Value/pseudo 3D (--3d on 2D x+y data) previously forced a 100×100×100 cube,
ignoring category counts. Align footprint sizing with grouped 3D via
boxSizeForAxisCount, set boxHeight to min(width, depth), and cap view
distance at 300 for grouped, value, and continuous modes.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@fahimfaisaal
fahimfaisaal merged commit 268eb76 into main Jun 27, 2026
13 checks passed
@fahimfaisaal
fahimfaisaal deleted the fix/value-3d-grid-shape branch June 27, 2026 03:38
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.

2 participants