packages feed

hvega-0.5.0.0: tests/specs/gallery/geo/geo4.vl

{
    "height": 500,
    "config": {
        "view": {
            "stroke": null
        }
    },
    "width": 800,
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "projection": {
        "type": "albersUsa"
    },
    "layer": [
        {
            "mark": "geoshape",
            "data": {
                "url": "https://vega.github.io/vega-lite/data/us-10m.json",
                "format": {
                    "feature": "states",
                    "type": "topojson"
                }
            },
            "encoding": {
                "color": {
                    "value": "#eee"
                }
            }
        },
        {
            "mark": "circle",
            "data": {
                "url": "https://vega.github.io/vega-lite/data/airports.csv"
            },
            "encoding": {
                "color": {
                    "value": "gray"
                },
                "size": {
                    "value": 5
                },
                "latitude": {
                    "field": "latitude",
                    "type": "quantitative"
                },
                "longitude": {
                    "field": "longitude",
                    "type": "quantitative"
                }
            }
        },
        {
            "transform": [
                {
                    "filter": {
                        "equal": "SEA",
                        "field": "origin"
                    }
                },
                {
                    "as": "o",
                    "from": {
                        "data": {
                            "url": "https://vega.github.io/vega-lite/data/airports.csv"
                        },
                        "key": "iata"
                    },
                    "lookup": "origin"
                },
                {
                    "as": "d",
                    "from": {
                        "data": {
                            "url": "https://vega.github.io/vega-lite/data/airports.csv"
                        },
                        "key": "iata"
                    },
                    "lookup": "destination"
                }
            ],
            "mark": "rule",
            "data": {
                "url": "https://vega.github.io/vega-lite/data/flights-airport.csv"
            },
            "encoding": {
                "latitude": {
                    "field": "o.latitude",
                    "type": "quantitative"
                },
                "latitude2": {
                    "field": "d.latitude"
                },
                "longitude": {
                    "field": "o.longitude",
                    "type": "quantitative"
                },
                "longitude2": {
                    "field": "d.longitude"
                }
            }
        }
    ],
    "description": "Rules (line segments) connecting SEA to every airport reachable via direct flight"
}