Created
August 1, 2017 06:59
-
-
Save eamonnmag/b97d09135fe16e94e4cafb32f60d7b8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://vega.github.io/schema/vega-lite/v2.json", | |
"data": { | |
"values": [ | |
{ | |
"name":"Reporting guidelines", | |
"type": "total", | |
"value": 118 | |
}, | |
{ | |
"name":"Reporting guidelines", | |
"type": "recommended", | |
"value": 26 | |
}, | |
{ | |
"name":"Models/formats", | |
"type": "total", | |
"value": 223 | |
}, | |
{ | |
"name":"Models/formats", | |
"type": "recommended", | |
"value": 6 | |
}, | |
{ | |
"name":"Terminology artifacts", | |
"type": "total", | |
"value": 343 | |
}, | |
{ | |
"name":"Terminology artifacts", | |
"type": "recommended", | |
"value": 8 | |
} | |
] | |
},"mark": "bar", | |
"encoding": { | |
"x": { | |
"field": "name", | |
"type": "nominal", | |
"axis": {"title": "Type"} | |
}, | |
"y": { | |
"field": "value", | |
"type": "quantitative", | |
"axis": {"title": "Count"} | |
}, | |
"color": { | |
"field": "type", | |
"type": "nominal", | |
"scale": { | |
"domain": ["Total","Recommended"], | |
"range": ["#2C3E50","#1ABC9C"] | |
}, | |
"legend": {"title": ""} | |
} | |
}, | |
"config": { | |
"facet": { | |
"cell": { | |
"strokeWidth": 0 | |
} | |
}, | |
"axis": { | |
"domainWidth": 1 | |
} | |
}, | |
"width": 200, | |
"height": 150 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment