Skip to content

v2.7.0 - ColorBrewer palettes and logos

Latest
Compare
Choose a tag to compare
@regorxxx regorxxx released this 26 Dec 18:19
· 44 commits to main since this release
5675267

2.7.0

  • added chroma.brewer.getPalettes() to retrieve all available palettes (keys). ColorBrewer schemes (scales) are divided into palettes according to their type.
  • added chroma.brewer.getPalette(palette) to retrieve all schemes from an specific palette (for ex. 'Qualitative')
  • added 'Diverging','Qualitative', and 'Sequential' scales to chroma.brewer and chroma.scale(), which will automatically retrieve a single random scale from the given palette. For ex. chroma.scale('Sequential') -> chroma.scale('OrRd')
  • chroma.brewer object can no longer be modified in any way (or its scales). Make a copy of it if required
  • replace deprecated .substr usage.
  • fixed 'npm run docs-preview' CMD command
  • minor improvements to documentation
  • added favicons to documentation chromaicon