# boolean
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 300
    }
  },
  "data": {
    "name": "data-afce120bec1de31b50bc39eae2fedbed"
  },
  "datasets": {
    "data-afce120bec1de31b50bc39eae2fedbed": [
      {
        "some_column": 1
      },
      {
        "some_column": 2
      },
      {
        "some_column": 3
      }
    ]
  },
  "encoding": {
    "x": {
      "field": "some_column",
      "type": "nominal"
    },
    "y": {
      "aggregate": "count",
      "type": "quantitative"
    }
  },
  "mark": {
    "type": "bar"
  },
  "width": "container"
}

# date
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 300
    }
  },
  "data": {
    "name": "data-afce120bec1de31b50bc39eae2fedbed"
  },
  "datasets": {
    "data-afce120bec1de31b50bc39eae2fedbed": [
      {
        "some_column": 1
      },
      {
        "some_column": 2
      },
      {
        "some_column": 3
      }
    ]
  },
  "encoding": {
    "x": {
      "field": "some_column",
      "type": "temporal"
    },
    "y": {
      "aggregate": "count",
      "type": "quantitative"
    }
  },
  "mark": {
    "point": {
      "fill": "white",
      "filled": false
    },
    "type": "line"
  },
  "width": "container"
}

# datetime
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 300
    }
  },
  "data": {
    "name": "data-afce120bec1de31b50bc39eae2fedbed"
  },
  "datasets": {
    "data-afce120bec1de31b50bc39eae2fedbed": [
      {
        "some_column": 1
      },
      {
        "some_column": 2
      },
      {
        "some_column": 3
      }
    ]
  },
  "encoding": {
    "x": {
      "field": "some_column",
      "type": "temporal"
    },
    "y": {
      "aggregate": "count",
      "type": "quantitative"
    }
  },
  "mark": {
    "point": {
      "fill": "white",
      "filled": false
    },
    "type": "line"
  },
  "width": "container"
}

# time
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 300
    }
  },
  "data": {
    "name": "data-afce120bec1de31b50bc39eae2fedbed"
  },
  "datasets": {
    "data-afce120bec1de31b50bc39eae2fedbed": [
      {
        "some_column": 1
      },
      {
        "some_column": 2
      },
      {
        "some_column": 3
      }
    ]
  },
  "encoding": {
    "x": {
      "field": "some_column",
      "type": "temporal"
    },
    "y": {
      "aggregate": "count",
      "type": "quantitative"
    }
  },
  "mark": {
    "point": {
      "fill": "white",
      "filled": false
    },
    "type": "line"
  },
  "width": "container"
}

# integer
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 300
    }
  },
  "data": {
    "name": "data-afce120bec1de31b50bc39eae2fedbed"
  },
  "datasets": {
    "data-afce120bec1de31b50bc39eae2fedbed": [
      {
        "some_column": 1
      },
      {
        "some_column": 2
      },
      {
        "some_column": 3
      }
    ]
  },
  "encoding": {
    "x": {
      "bin": true,
      "field": "some_column",
      "type": "quantitative"
    },
    "y": {
      "aggregate": "count",
      "type": "quantitative"
    }
  },
  "mark": {
    "type": "bar"
  },
  "width": "container"
}

# number
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 300
    }
  },
  "data": {
    "name": "data-afce120bec1de31b50bc39eae2fedbed"
  },
  "datasets": {
    "data-afce120bec1de31b50bc39eae2fedbed": [
      {
        "some_column": 1
      },
      {
        "some_column": 2
      },
      {
        "some_column": 3
      }
    ]
  },
  "encoding": {
    "x": {
      "bin": true,
      "field": "some_column",
      "type": "quantitative"
    },
    "y": {
      "aggregate": "count",
      "type": "quantitative"
    }
  },
  "mark": {
    "type": "bar"
  },
  "width": "container"
}

# string
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 300
    }
  },
  "data": {
    "name": "data-afce120bec1de31b50bc39eae2fedbed"
  },
  "datasets": {
    "data-afce120bec1de31b50bc39eae2fedbed": [
      {
        "some_column": 1
      },
      {
        "some_column": 2
      },
      {
        "some_column": 3
      }
    ]
  },
  "encoding": {
    "x": {
      "aggregate": "count",
      "type": "quantitative"
    },
    "y": {
      "field": "some_column",
      "type": "nominal"
    }
  },
  "mark": {
    "type": "bar"
  },
  "width": "container"
}

# string (limit to 10 items)
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 300
    }
  },
  "data": {
    "name": "data-afce120bec1de31b50bc39eae2fedbed"
  },
  "datasets": {
    "data-afce120bec1de31b50bc39eae2fedbed": [
      {
        "some_column": 1
      },
      {
        "some_column": 2
      },
      {
        "some_column": 3
      }
    ]
  },
  "encoding": {
    "x": {
      "field": "count",
      "type": "quantitative"
    },
    "y": {
      "field": "some_column",
      "sort": "-x",
      "type": "nominal"
    }
  },
  "mark": {
    "type": "bar"
  },
  "title": "Top 10 some_column",
  "transform": [
    {
      "aggregate": [
        {
          "as": "count",
          "op": "count"
        }
      ],
      "groupby": [
        "some_column"
      ]
    },
    {
      "sort": [
        {
          "field": "count",
          "order": "descending"
        },
        {
          "field": "some_column",
          "order": "ascending"
        }
      ],
      "window": [
        {
          "as": "rank",
          "field": "",
          "op": "rank"
        }
      ]
    },
    {
      "filter": "(datum.rank <= 10)"
    }
  ],
  "width": "container"
}

# unknown
{
  "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json",
  "config": {
    "view": {
      "continuousHeight": 300,
      "continuousWidth": 300
    }
  },
  "data": {
    "name": "data-afce120bec1de31b50bc39eae2fedbed"
  },
  "datasets": {
    "data-afce120bec1de31b50bc39eae2fedbed": [
      {
        "some_column": 1
      },
      {
        "some_column": 2
      },
      {
        "some_column": 3
      }
    ]
  },
  "encoding": {
    "x": {
      "field": "some_column",
      "type": "nominal"
    },
    "y": {
      "aggregate": "count",
      "type": "quantitative"
    }
  },
  "mark": {
    "type": "bar"
  },
  "width": "container"
}