vega / vegafusion

Serverside scaling for Vega and Altair visualizations
https://vegafusion.io
BSD 3-Clause "New" or "Revised" License
317 stars 17 forks source link

Don't drop null signal values #422

Closed jonmmease closed 10 months ago

jonmmease commented 10 months ago

Currently, if a signal has an explicit value of null, VegaFusion will drop the key when re-serializing the signal. This can result in incorrect behavior in Vega, because the signal's value then becomes undefined instead of null. We should figure out how to distinguish between null and missing and propagate accordingly.

A few years old, but perhaps helpful: https://stackoverflow.com/questions/44331037/how-can-i-distinguish-between-a-deserialized-field-that-is-missing-and-one-that