Deneb Example - Regression

Hi @fabrice.aunez.

1 - Yes, once the user has selected a regression method, the signal is used to reference it in the transform; AFAIK, you can’t do this in Vega-Lite, but Davide Bacci’s method (see above) of using Vega within Vega-Lite seems to work great:

  "transform": [
    {
      "regression": "IMDB Rating",
      "on": "Rotten Tomatoes Rating",
      "method": {
        "signal": "_regression_keyword"
      }
    }
  ],

2 - I’m not sure exactly, as Vega-Lite does the regression calculations internally, but think it is the REGRESSION_LINE_marks dataset; I certainly didn’t add anything

Hope this helps.
Greg