vega / vega-lite-api

A JavaScript API for Vega-Lite.
https://observablehq.com/@vega/vega-lite-api
BSD 3-Clause "New" or "Revised" License
211 stars 17 forks source link

How to use .projection method #458

Open mhkeller opened 1 year ago

mhkeller commented 1 year ago

I'm running into an issue trying to recreate the point_angle_windvector example here. I get the error:

 .markPoint({ shape: 'wedge', filled: true })
                 ^

TypeError: vl.projection(...).markPoint is not a function

This example shows a .project method instead of .projection but if I try that, I get an error. Any guidance on how to recreate this in Vega Lite API?