{
    "mark": {
        "cursor": "pointer",
        "type": "point"
    },
    "data": {
        "url": "https://vega.github.io/vega-lite/data/movies.json"
    },
    "$schema": "https://vega.github.io/schema/vega-lite/v4.json",
    "encoding": {
        "color": {
            "value": "red",
            "condition": {
                "value": "steelblue",
                "test": "datum.IMDB_Rating*10 > datum.Rotten_Tomatoes_Rating"
            }
        },
        "href": {
            "value": "https://www.rottentomatoes.com",
            "condition": {
                "value": "http://www.imdb.com",
                "test": "datum.IMDB_Rating*10 > datum.Rotten_Tomatoes_Rating"
            }
        },
        "x": {
            "field": "IMDB_Rating",
            "type": "quantitative"
        },
        "y": {
            "field": "Rotten_Tomatoes_Rating",
            "type": "quantitative"
        }
    }
}