Skip to content

Conversation

@maxnth
Copy link

@maxnth maxnth commented Nov 12, 2025

Word clouds didn’t work for me with the latest version of SRF (which uses D3 v6.7.0) as some of the syntax and the D3 layout.cloud library included in the build were deprecated in recent D3 versions.

Replacing the deprecated 20-color category scale with a manually defined ordinal scale (not the original color scale but should be 20 distinctive and readable colors) and updating the old library to the latest version from GitHub fixed the issue for me.

Edit: If preferred one could also manually add back the "old" colours which were part of category20b:

var fill = d3.scaleOrdinal([
  "#393b79","#5254a3","#6b6ecf","#9c9ede",
  "#637939","#8ca252","#b5cf6b","#cedb9c",
  "#8c6d31","#bd9e39","#e7ba52","#e7cb94",
  "#843c39","#ad494a","#d6616b","#e7969c",
  "#7b4173","#a55194","#ce6dbd","#de9ed6"
]);

@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.24%. Comparing base (42c2690) to head (923fd2a).

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #978   +/-   ##
=========================================
  Coverage     46.24%   46.24%           
  Complexity     2361     2361           
=========================================
  Files            80       80           
  Lines          8957     8957           
=========================================
  Hits           4142     4142           
  Misses         4815     4815           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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