colorbrewer
Advanced tools
Comparing version 1.1.0 to 1.3.0
@@ -5,3 +5,8 @@ // This product includes color specifications and designs developed by Cynthia Brewer (http://colorbrewer.org/). | ||
var colorbrewer = {YlGn: { | ||
var colorbrewer = {schemeGroups: { | ||
sequential: ["BuGn","BuPu","GnBu","OrRd","PuBu","PuBuGn","PuRd","RdPu","YlGn","YlGnBu","YlOrBr","YlOrRd"], | ||
singlehue:["Blues","Greens","Greys","Oranges","Purples","Reds"], | ||
diverging: ["BrBG","PiYG","PRGn","PuOr","RdBu","RdGy","RdYlBu","RdYlGn","Spectral"], | ||
qualitative: ["Accent","Dark2","Paired","Pastel1","Pastel2","Set1","Set2","Set3"] | ||
}, YlGn: { | ||
3: ["#f7fcb9","#addd8e","#31a354"], | ||
@@ -8,0 +13,0 @@ 4: ["#ffffcc","#c2e699","#78c679","#238443"], |
{ | ||
"name": "colorbrewer", | ||
"version": "1.1.0", | ||
"version": "1.3.0", | ||
"description": "A shim module of colorbrewer2 by Cythina Brewer for browserify", | ||
@@ -30,4 +30,4 @@ "keywords": [ | ||
"bugs": { | ||
"url" : "https://github.com/saikocat/colorbrewer/issues", | ||
"email" : "saikocatz@gmail.com" | ||
"url": "https://github.com/saikocat/colorbrewer/issues", | ||
"email": "saikocatz@gmail.com" | ||
}, | ||
@@ -34,0 +34,0 @@ "style": "colorbrewer.css", |
@@ -9,1 +9,13 @@ colorbrewer | ||
It is also a shim for the [files provided in d3.js lib](https://github.com/d3/d3-scale-chromatic). | ||
Access color schemes by name and the number of discrete colors needed, such as `colorbrewer.Blues[5]`. For a list of color schemes by group, use `colorbrewer.schemeGroups`. Example: | ||
```js | ||
const colorbrewer = require('colorbrewer'); | ||
console.log(colorbrewer.schemeGroups.sequential); | ||
// ["BuGn","BuPu","GnBu",...] | ||
console.log(colorbrewer.Blues[5]); | ||
// ["#eff3ff","#bdd7e7","#6baed6","#3182bd","#08519c"] | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83109
2007
20