Skip to content

Instantly share code, notes, and snippets.

{
"type": "scene",
"name": "Scene",
"background": "white",
"autosize": "pad",
"padding": 5,
"scales": [],
"axes": [],
"legends": [],
"marks": [
@jonathanzong
jonathanzong / toplevelsignals.json
Created April 18, 2020 02:19
all signals moved to top level
{
"type": "scene",
"name": "Scene",
"background": "white",
"autosize": "pad",
"padding": 5,
"scales": [],
"axes": [],
"legends": [],
"marks": [
@jonathanzong
jonathanzong / multiview-panzoom-bottom
Created April 9, 2020 18:37
Only bottom view set to panzoom
{
"type": "scene",
"name": "Scene",
"background": "white",
"autosize": "pad",
"padding": 5,
"scales": [],
"axes": [],
"legends": [],
"marks": [
@jonathanzong
jonathanzong / multiview-panzoom-both
Created April 9, 2020 18:35
Multi-view visualization with both views set to panzoom
{
"type": "scene",
"name": "Scene",
"background": "white",
"autosize": "pad",
"padding": 5,
"scales": [],
"axes": [],
"legends": [],
"marks": [
@jonathanzong
jonathanzong / multiview-panzoom-top
Created April 9, 2020 18:34
Multi-view visualization with top view set to panzoom
{
"type": "scene",
"name": "Scene",
"background": "white",
"autosize": "pad",
"padding": 5,
"scales": [],
"axes": [],
"legends": [],
"marks": [
@jonathanzong
jonathanzong / panzoom-preview
Created April 8, 2020 02:12
Panzoom preview. Unlike every other preview, this is sized correctly for some reason. There's a little bit of the grid cut off on the side.
{
"name": "Scene",
"background": "white",
"autosize": "pad",
"padding": 5,
"scales": [],
"axes": [],
"legends": [],
"marks": [
{
@jonathanzong
jonathanzong / brush-preview
Created April 8, 2020 02:09
A brush preview. For previews, I set top level width and height signals to 60. There's a bunch of extra whitespace on the sides that I don't know the source of.
{
"name": "Scene",
"background": "white",
"autosize": "pad",
"padding": 5,
"scales": [],
"axes": [],
"legends": [],
"marks": [
{
@jonathanzong
jonathanzong / panzoom-export
Last active April 8, 2020 02:15
Panzoom application (ctrl.export). It's relying on top-level signals for width and height, which Lyra does not define. I'm assuming we shouldn't fix this by setting top-level size signals, because this will get complex for multi-view. How can we make it size to the content?
{
"name": "Scene",
"background": "white",
"autosize": "pad",
"padding": 5,
"scales": [],
"axes": [],
"legends": [],
"marks": [
{
@jonathanzong
jonathanzong / brush-text.vg.json
Created December 3, 2019 19:25
brush with text labels
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"description": "Drag out a rectangular brush to highlight points.",
"autosize": "pad",
"padding": 5,
"width": 200,
"height": 200,
"style": "cell",
"data": [
{
@jonathanzong
jonathanzong / task1.json
Created December 2, 2019 03:54
panzoom task
{
"name": "Scene",
"background": "white",
"autosize": "pad",
"padding": 5,
"scales": [],
"axes": [],
"legends": [],
"marks": [
{