Created
September 10, 2019 02:10
-
-
Save aaizemberg/68d0a24b3e67e01da233377031253b30 to your computer and use it in GitHub Desktop.
Strip Plot (VEGA-lite)
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Strip Plot VEGA-lite</title> | |
<meta charset="utf-8" /> | |
<script src="https://cdn.jsdelivr.net/npm/vega@5.5.3"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vega-lite@4.0.0-beta.2"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vega-embed@5.1.2"></script> | |
</head> | |
<body> | |
<h1>Strip Plot</h1> | |
<div id="vis"></div> | |
<script> | |
var vlSpec = { | |
"$schema": "https://vega.github.io/schema/vega-lite/v4.json", | |
"data": {"url": "https://raw.githubusercontent.com/aaizemberg/vis/gh-pages/graduados/promedios_2019-09-09.tsv" }, | |
"mark": "tick", | |
"encoding": { | |
"x": {"field": "promedio", "type": "quantitative"}, | |
"y": {"field": "titulo", "type": "ordinal"} | |
} | |
}; | |
vegaEmbed('#vis', vlSpec); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment