Embedded interactive visualisations in Anvil using e.g. Vega Lite?

Hi @claresloggett,

Glad you found @meredydd’s example useful!

  1. The best way to do this is with Javascript, since you’re driving an external JS library.
  2. Yes, absolutely - I’d start by implementing any functionality you’d like to expose as Javascript functions. You can then use self.call_js() to call these functions from the Python code on your Form, or use anvil.call() to call into your Python from your JS functions.