src/core.js
/**
  * Looks at a scaled accesor range and
  * returns a gradient object
  *
  * @param object Scaled accessor key
  * @param boolean Visualization config
  * @return a gradient object
  */
Looks at a scaled accesor range and
returns a gradient object

@param object Scaled accessor key
@param boolean Visualization config
@return a gradient object
Looks at a scaled accesor range and returns a gradient object @param object Scaled accessor key @param boolean Visualization config @return a gradient object
static genGradientFromSA(sa, cfg) {
    if (!cfg) cfg = this.v;
    let range = cfg.accessors[sa]
    if(range) range = range.range;
    else {
      this.warn('No scaled accesor key:', sa);
      return;
    }
    return range.map(d => {return {'stop-color':d}});
  }
static genGradientFromSA ( sa , cfg ) { if ( ! cfg ) cfg = this . v ; let range = cfg . accessors [ sa ] if ( range ) range = range . range ; else { this . warn ( 'No scaled accesor key:' , sa ) ; return ; } return range . map ( d => { return { 'stop-color' : d } } ) ; }
Looks at a scaled accesor range and
 returns a gradient object
Looks at a scaled accesor range and returns a gradient object