viewof location_scatterd_2 = embed ({
"selection": {
"grid": {
"type": "interval", "bind": "scales"
}
},
title: "Tweets by search term 'park'",
width: 800,
height: 800,
"data": {values: hashtag_tweets_cleaned},
"mark": {"type": "point", "filled": true},
"encoding": {
"y": {"field": "lat","type": "quantitative"},
"x": {"field": "lon","type": "quantitative"},
"color": {"field": "num_hashtags", "type": "nominal"},
"size": {"field": "num_hashtags", "type": "nominal"},
"tooltip": [
{"field": "location", "type": "ordinal"},
{"field": "content", "type": "ordinal"}
]
}
})