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

Calling .empty() function when defining selection parameters returns Error: Unrecognized signal name #411

Open krispybird opened 1 year ago

krispybird commented 1 year ago

Hello,

I get an error when I try to call the .empty() method while defining selection parameters

For example, if I try and call:

const highlight = vl.selectPoint().empty(false); 

I get an error that is returned as Error:: Unrecognized signal name

This occurs for selectPoint, selectInterval, selectSingle, and selectMulti

domoritz commented 1 year ago

Is this a Vega-Lite API issue?

chatchavan commented 1 year ago

The object returned by empty() function has a different prototype than those returned by selectPoint(), or on(). Notebook. Perhaps there's some error in how the empty() is specified for the API generation?