WebgeoDa Scaffolding
More Maps. Fewer Platforms.
1.0.0
1.0.0
  • About Webgeoda Scaffolding
  • Data Concepts
  • Getting Started
  • Libraries and Dependencies
  • File Structure Overview
  • Data
    • Importing Data
    • Accessing Exernal Data
    • Making an API
  • Variables
    • Overview
    • Continuous
    • Categorical
    • LISA
    • Colors
    • Variable Specification
  • Static Pages
    • Adding and Customizing Pages
    • Styling and CSS Modules
  • Map Customization
    • Changing the Background Map Tiles
    • Visualization Modes
    • Change Tooltip and Data Sidebar Information
    • Modifying Layers
  • Widgets
    • Data Exploration Widgets
    • Widget Layouts
  • Deploying
    • Netlify
    • Vercel
    • Github Pages (or elsewhere)
  • Advanced
    • jsGeoDa
    • Next.JS
    • Alternate Map Views
    • Binary Data Formats
Powered by GitBook
On this page
  • Color Format
  • ColorBrewer
  • GeoDa Spatial Statistics

Was this helpful?

  1. Variables

Colors

PreviousLISANextVariable Specification

Last updated 3 years ago

Was this helpful?

Map color scales strongly impact the interpretation of a map and impact its accessibility, legibility, and visual interest. WebGeoDa provides a collection of helpful built-in color scaling standards, and also allows for any custom color scale to be added.

Color Format

All color scales should be arrays of RGB values, like so:

const myColorScale = [
    [0,0,0], //r, g, b
    [40,40,40],
    [80,80,80],
    [140,140,140],
    [220,220,220]
]

ColorBrewer

ColorBrewer scales, designed by the immeasurable Cynthia Brewer, are available for convenient use in WebGeoDa. Preview these scales below:

When using ColorBrewer scales, you can specify a given scale as shown below:

const variables = [{
    variable: 'myVar',
    numerator: 'myData',
    nProperty: 'myColumn',
    binning: 'naturalBreaks',
    colorScale: colors.colorBrewer.Reds
}]

GeoDa Spatial Statistics

The official GeoDa color scales are available under colors.geoda and include color scales for LISA data and hinge breaks.

ColorBrewer: Color Advice for Maps
Logo