{
  "id": "amount_by_category",
  "type": "chart",
  "title": "Amount by category",
  "source": {
    "model": "example_model",
    "query": {
      "measures": [
        "amount"
      ],
      "dimensions": [
        "category"
      ],
      "filters": [
        "this_month"
      ],
      "limit": 50
    }
  },
  "interactions": {
    "emit": {
      "dimension": "category"
    },
    "listen": true
  },
  "chart": {
    "mark": "bar",
    "encoding": {
      "x": {
        "field": "category",
        "type": "nominal"
      },
      "y": {
        "field": "amount",
        "type": "quantitative"
      }
    }
  }
}
