How to render spark lines in a duckdb inputs.table?

I have this hello world notebook:

I would like to add sparklines to totale field. I have tried to apply the code of this sample.

But I have no sparklines.

What am I doing wrong?

Thank you

So close! The Inputs.table option is format not formats.

Inputs.table(query, {
  format: {
    totale: sparkbar(d3.max(query, (d) => d.totale))

I am a little bit dumb.

Thank you very much!!!

1 Like