Last active
October 2, 2020 09:41
-
-
Save sverhoeven/d2c87792a00d4d6de3df4a98f46fd0e2 to your computer and use it in GitHub Desktop.
run-cpp-on-web: vega
This file contains hidden or 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
const root_rule = { | |
"data": {"values": [{"x": -1}]}, | |
"encoding": {"x": {"field": "x", "type": "quantitative"}}, | |
"layer": [ | |
{"mark": {"type": "rule", "strokeDash": [4, 8]}}, | |
{"mark": | |
{ | |
"type": "text", | |
"align": "right", | |
"baseline": "bottom", | |
"dx": -4, | |
"dy": 10, | |
"x": "width", | |
"fontSize": 20, | |
"text": "root = -1.0" | |
} | |
} | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment