Skip to content

Commit

Permalink
examples: interactive earthquakes: use pow scale initial
Browse files Browse the repository at this point in the history
  • Loading branch information
pared committed May 8, 2022
1 parent 0982e0b commit d93d48b
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions examples/specs/interactive_geo_earthquakes.vl.json
Expand Up @@ -49,15 +49,19 @@
"filter": "(rotate0 * -1) - 90 < datum.longitude && datum.longitude < (rotate0 * -1) + 90 && (rotate1 * -1) - 90 < datum.latitude && datum.latitude < (rotate1 * -1) + 90"
}
],
"mark": {
"type": "circle",
"color": "red",
"opacity": 0.25,
"size": {"expr": "earthquakeSize * datum.properties.mag"}
},
"mark": {"type": "circle", "color": "red", "opacity": 0.25},
"encoding": {
"longitude": {"field": "longitude", "type": "quantitative"},
"latitude": {"field": "latitude", "type": "quantitative"}
"latitude": {"field": "latitude", "type": "quantitative"},
"size": {
"field": "properties.mag",
"type": "quantitative",
"scale": {
"type": "pow",
"range": [0, 1000],
"exponent": {"expr": "12-earthquakeSize"}
}
}
}
}
],
Expand Down

0 comments on commit d93d48b

Please sign in to comment.