hvega-0.5.0.0: tests/specs/gallery/line/line12.vl
{
"transform": [
{
"as": "v",
"calculate": "sin(datum.u)"
},
{
"as": "w",
"calculate": "cos(datum.u)"
}
],
"height": 150,
"data": {
"sequence": {
"as": "u",
"start": 0,
"step": 0.1,
"stop": 12.7
}
},
"width": 300,
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"layer": [
{
"mark": "line",
"encoding": {
"x": {
"field": "u",
"title": "x",
"type": "quantitative"
},
"y": {
"field": "v",
"title": "sin(x)",
"type": "quantitative"
}
}
},
{
"mark": {
"stroke": "firebrick",
"type": "line"
},
"encoding": {
"x": {
"field": "u",
"title": "x",
"type": "quantitative"
},
"y": {
"field": "w",
"title": "cos(x)",
"type": "quantitative"
}
}
}
],
"description": "Plots a function using a generated sequence"
}