Skip to content

Instantly share code, notes, and snippets.

@sverhoeven
Created October 2, 2020 09:37
Show Gist options
  • Save sverhoeven/03b2ffa85f745b155bd9846caf8b0ffc to your computer and use it in GitHub Desktop.
Save sverhoeven/03b2ffa85f745b155bd9846caf8b0ffc to your computer and use it in GitHub Desktop.
run-cpp-on-web: vega
const spec = {
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"width": 800,
"height": 600,
"title": {
<stuff related to the title>
},
"data": {
<holds the iterations we want to plot as an array of iteration objects>
},
"encoding": {
<defines stuff related to which field should go on which axis>
},
"mark": {
<defines the line plot>
},
"selection": {
<defines how users can interact with the plot>
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment