← proof sheet

16 horizontal-dual-country-revenue-orders

PR #153 9fdf8d3718

Viz
{
  "mark": "bar",
  "x": [
    {
      "kind": "metrics",
      "scale": "independent",
      "of": [
        {
          "kind": "metric",
          "metric": "revenue"
        },
        {
          "kind": "metric",
          "metric": "orders_count"
        }
      ]
    }
  ],
  "y": [
    {
      "kind": "dimension",
      "ref": {
        "dimension": "country"
      },
      "order": {
        "direction": "desc",
        "by": {
          "kind": "metric",
          "metric": "revenue"
        }
      }
    }
  ],
  "color": {
    "kind": "metrics"
  }
}
Query
{
  "steps": [
    {
      "kind": "select",
      "metric": "revenue",
      "transform": null,
      "within": [],
      "along": null,
      "alias": null
    },
    {
      "kind": "select",
      "metric": "orders_count",
      "transform": null,
      "within": [],
      "along": null,
      "alias": null
    },
    {
      "kind": "select",
      "metric": "revenue",
      "transform": {
        "name": "total",
        "args": []
      },
      "within": [
        {
          "dimension": "country",
          "transforms": []
        }
      ],
      "along": null,
      "alias": null
    }
  ],
  "by": [
    {
      "ref": {
        "dimension": "country",
        "transforms": []
      },
      "alias": null
    }
  ],
  "slice": [],
  "order_by": [
    {
      "ref": "country",
      "direction": "asc"
    }
  ],
  "limit": null
}