Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eamonnmag/db297cde2e2c26908c9a435002af98e0 to your computer and use it in GitHub Desktop.
Save eamonnmag/db297cde2e2c26908c9a435002af98e0 to your computer and use it in GitHub Desktop.
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {
"values": [
{
"name": "GO",
"type": "Terminology artifacts",
"size": 140,
"index": 9,
"total": 343
},
{
"name": "ChEBI",
"type": "Terminology artifacts",
"size": 28,
"index": 10,
"total": 343
},
{
"name": "NCBI Taxonomy",
"type": "Terminology artifacts",
"size": 21,
"index": 11,
"total": 343
}
]
},
"mark": "bar",
"encoding": {
"y": {
"field": "size",
"type": "quantitative",
"axis": {
"title": "# Times Implemented"
}
},
"x": {
"field": "name",
"type": "nominal",
"axis": {
"title": "Terminology Artifacts"
},
"sort": {
"field": "type",
"order": "ascending"
}
},
"color": {
"field": "type",
"type": "nominal",
"scale": {
"range": [
"#34495E"
]
}
}
},
"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