[Deneb Question] How to create rectangle borders on specific values?

Hi Claudio:

I used a similar technique with a “rect” mark at the desired coordinates with separate stroke and fill colours in a recent post to the Deneb Showcase forum section.

Here’s the code snippet for the mark in my example:

        {
          "name": "NOTE_HORIZONTAL_RECTANGLE",
          "mark": {
            "type": "rect",
            "width": 100,
            "height": 40,
            "align": "center",
            "baseline": "middle",
            "stroke": "#969696",
            "fill": "white"
          },
          "encoding": {
            "x": {
              "field": "_note_x",
              "type": "temporal"
            },
            "y": {
              "field": "_note_y",
              "type": "quantitative"
            }
          }
        },

You can add a cornerRadius property with value as desired.

Hope this helps.
Greg