Skip to content

Reimpliment the d3 scale cluster without any external dependencies#196

Open
has9sayed wants to merge 4 commits intointernetarchive:masterfrom
has9sayed:Drop_d3_scale
Open

Reimpliment the d3 scale cluster without any external dependencies#196
has9sayed wants to merge 4 commits intointernetarchive:masterfrom
has9sayed:Drop_d3_scale

Conversation

@has9sayed
Copy link
Copy Markdown

@has9sayed has9sayed commented Mar 14, 2026

  • Replaced external d3-scale-cluster usage with a self-contained implementation
  • Harden scaleCluster with comprehensive tests
  • Harden scaleCluster with comprehensive tests

closes #164

@has9sayed
Copy link
Copy Markdown
Author

Guard empty domain in rescale() so ckmeans is never run with no data (avoids throw). Also cleared breakpoints when range.length ≤ 2 so cluster thresholds do not stay stale after shrinking the range.

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.

Drop d3-scale-cluster dependency

1 participant