qfes / rdeck

Deck.gl widget for R
https://qfes.github.io/rdeck
MIT License
97 stars 0 forks source link

Scales with date / datetime input are broken #111

Open anthonynorth opened 7 months ago

anthonynorth commented 7 months ago

Continuous scales should support dates and datetimes. Discrete scales should support dates. Underlying scales::train_continuous() is coercing POSIXt as numeric, and Date as integer.

anthonynorth commented 7 months ago

Edit: There are more blockers than just scales::trans_continuous(). POSIXt and Date vectors are serialised as text, so these will need to be fixed up in the client, possibly with just vec.map((x) => new Date(x))