{
  "name": "bi-components",
  "version": "1.4.0",
  "patterns": {
    "param-*": "Anything else the server understands: param-scope=\"like_for_like\" travels as params.scope in the query."
  },
  "tags": {
    "bar-chart": {
      "kind": "chart",
      "summary": "Compares a measure across the values of a dimension.",
      "example": "<bar-chart measure=\"revenue\" by=\"region\" breakdown-by=\"channel\" stacked sort-by=\"revenue desc\" limit=\"10\"></bar-chart>",
      "requires": [
        [
          "measure",
          "value"
        ]
      ],
      "attributes": {
        "table": {
          "type": "table",
          "description": "The table to query. Its presence selects SQL expressions: measure and by are then SQL, computed by the database."
        },
        "measure": {
          "type": "measure",
          "aliases": [
            "value"
          ],
          "description": "What to compute, one only: the name of a measure, or with table an SQL aggregate such as sum(revenue). \"sum(revenue) as Revenue\" names it."
        },
        "by": {
          "type": "dimension",
          "description": "The dimension to split by. Clicking one of its values filters the other components."
        },
        "sort-by": {
          "type": "text",
          "aliases": [
            "sort_by",
            "order-by",
            "order_by"
          ],
          "description": "A measure or a dimension, with an optional direction: sort-by=\"revenue desc\"."
        },
        "sort-asc": {
          "type": "boolean",
          "aliases": [
            "sort_asc"
          ],
          "internal": true,
          "description": "Historical: the direction of sort-by."
        },
        "limit": {
          "type": "integer",
          "description": "The number of rows."
        },
        "format": {
          "type": "format",
          "description": "eur, pct, int or dec, or a spreadsheet pattern such as #,##0."
        },
        "title": {
          "type": "text",
          "description": "A title above the component."
        },
        "where": {
          "type": "sql",
          "only": "table",
          "description": "An SQL condition for this component only. Refused in a sandboxed dashboard."
        },
        "date-column": {
          "type": "sql",
          "only": "table",
          "aliases": [
            "date_column"
          ],
          "description": "The column the period of the page applies to, when it is not the one of the table."
        },
        "granularity": {
          "type": "enum",
          "values": [
            "day",
            "week",
            "month",
            "quarter",
            "year",
            "auto"
          ],
          "only": "semantic",
          "description": "A time series, with no by. Without a value (or \"auto\"), follows the date_granularity option of the page."
        },
        "compare": {
          "type": "enum",
          "values": [
            "yoy",
            "mom",
            "prev_period",
            "auto"
          ],
          "only": "semantic",
          "description": "A comparison with another period. Without a value (or \"auto\"), follows the period_comparison_method option of the page."
        },
        "height": {
          "type": "css-length",
          "description": "The height of the chart (400px)."
        },
        "hide-axis-names": {
          "type": "boolean",
          "description": "No name on the axes."
        },
        "select_tool": {
          "type": "text",
          "internal": true,
          "description": "Set by <bar-chart-grid> on its charts."
        },
        "normalized": {
          "type": "boolean",
          "only": "table",
          "internal": true,
          "description": "Each value as a share of the total."
        },
        "breakdown-by": {
          "type": "dimension",
          "aliases": [
            "breakdown_by"
          ],
          "description": "A second dimension: one series per value."
        },
        "breakdown-limit": {
          "type": "integer",
          "only": "table",
          "aliases": [
            "breakdown_limit"
          ],
          "description": "With breakdown-by: how many series to keep, the biggest first (6)."
        },
        "stacked": {
          "type": "boolean",
          "description": "With breakdown-by: the series are added up."
        },
        "horizontal": {
          "type": "boolean",
          "description": "Horizontal bars: a ranking, the biggest values first."
        }
      }
    },
    "line-chart": {
      "kind": "chart",
      "summary": "A trend over time.",
      "example": "<line-chart measure=\"revenue\" granularity=\"month\" compare=\"yoy\"></line-chart>",
      "requires": [
        [
          "measure",
          "value"
        ]
      ],
      "attributes": {
        "table": {
          "type": "table",
          "description": "The table to query. Its presence selects SQL expressions: measure and by are then SQL, computed by the database."
        },
        "measure": {
          "type": "measure",
          "aliases": [
            "value"
          ],
          "description": "What to compute, one only: the name of a measure, or with table an SQL aggregate such as sum(revenue). \"sum(revenue) as Revenue\" names it."
        },
        "by": {
          "type": "dimension",
          "description": "The dimension to split by. Clicking one of its values filters the other components."
        },
        "sort-by": {
          "type": "text",
          "aliases": [
            "sort_by",
            "order-by",
            "order_by"
          ],
          "description": "A measure or a dimension, with an optional direction: sort-by=\"revenue desc\"."
        },
        "sort-asc": {
          "type": "boolean",
          "aliases": [
            "sort_asc"
          ],
          "internal": true,
          "description": "Historical: the direction of sort-by."
        },
        "limit": {
          "type": "integer",
          "description": "The number of rows."
        },
        "format": {
          "type": "format",
          "description": "eur, pct, int or dec, or a spreadsheet pattern such as #,##0."
        },
        "title": {
          "type": "text",
          "description": "A title above the component."
        },
        "where": {
          "type": "sql",
          "only": "table",
          "description": "An SQL condition for this component only. Refused in a sandboxed dashboard."
        },
        "date-column": {
          "type": "sql",
          "only": "table",
          "aliases": [
            "date_column"
          ],
          "description": "The column the period of the page applies to, when it is not the one of the table."
        },
        "granularity": {
          "type": "enum",
          "values": [
            "day",
            "week",
            "month",
            "quarter",
            "year",
            "auto"
          ],
          "only": "semantic",
          "description": "A time series, with no by. Without a value (or \"auto\"), follows the date_granularity option of the page."
        },
        "compare": {
          "type": "enum",
          "values": [
            "yoy",
            "mom",
            "prev_period",
            "auto"
          ],
          "only": "semantic",
          "description": "A comparison with another period. Without a value (or \"auto\"), follows the period_comparison_method option of the page."
        },
        "height": {
          "type": "css-length",
          "description": "The height of the chart (400px)."
        },
        "hide-axis-names": {
          "type": "boolean",
          "description": "No name on the axes."
        },
        "select_tool": {
          "type": "text",
          "internal": true,
          "description": "Set by <bar-chart-grid> on its charts."
        },
        "normalized": {
          "type": "boolean",
          "only": "table",
          "internal": true,
          "description": "Each value as a share of the total."
        },
        "breakdown-by": {
          "type": "dimension",
          "aliases": [
            "breakdown_by"
          ],
          "description": "A second dimension: one series per value."
        },
        "breakdown-limit": {
          "type": "integer",
          "only": "table",
          "aliases": [
            "breakdown_limit"
          ],
          "description": "With breakdown-by: how many series to keep, the biggest first (6)."
        },
        "stacked": {
          "type": "boolean",
          "description": "With breakdown-by: the series are added up."
        }
      }
    },
    "pie-chart": {
      "kind": "chart",
      "summary": "The share of each value of a dimension.",
      "example": "<pie-chart measure=\"revenue\" by=\"channel\"></pie-chart>",
      "requires": [
        [
          "measure",
          "value"
        ]
      ],
      "attributes": {
        "table": {
          "type": "table",
          "description": "The table to query. Its presence selects SQL expressions: measure and by are then SQL, computed by the database."
        },
        "measure": {
          "type": "measure",
          "aliases": [
            "value"
          ],
          "description": "What to compute, one only: the name of a measure, or with table an SQL aggregate such as sum(revenue). \"sum(revenue) as Revenue\" names it."
        },
        "by": {
          "type": "dimension",
          "description": "The dimension to split by. Clicking one of its values filters the other components."
        },
        "sort-by": {
          "type": "text",
          "aliases": [
            "sort_by",
            "order-by",
            "order_by"
          ],
          "description": "A measure or a dimension, with an optional direction: sort-by=\"revenue desc\"."
        },
        "sort-asc": {
          "type": "boolean",
          "aliases": [
            "sort_asc"
          ],
          "internal": true,
          "description": "Historical: the direction of sort-by."
        },
        "limit": {
          "type": "integer",
          "description": "The number of rows."
        },
        "format": {
          "type": "format",
          "description": "eur, pct, int or dec, or a spreadsheet pattern such as #,##0."
        },
        "title": {
          "type": "text",
          "description": "A title above the component."
        },
        "where": {
          "type": "sql",
          "only": "table",
          "description": "An SQL condition for this component only. Refused in a sandboxed dashboard."
        },
        "date-column": {
          "type": "sql",
          "only": "table",
          "aliases": [
            "date_column"
          ],
          "description": "The column the period of the page applies to, when it is not the one of the table."
        },
        "granularity": {
          "type": "enum",
          "values": [
            "day",
            "week",
            "month",
            "quarter",
            "year",
            "auto"
          ],
          "only": "semantic",
          "description": "A time series, with no by. Without a value (or \"auto\"), follows the date_granularity option of the page."
        },
        "compare": {
          "type": "enum",
          "values": [
            "yoy",
            "mom",
            "prev_period",
            "auto"
          ],
          "only": "semantic",
          "description": "A comparison with another period. Without a value (or \"auto\"), follows the period_comparison_method option of the page."
        },
        "height": {
          "type": "css-length",
          "description": "The height of the chart (400px)."
        },
        "hide-axis-names": {
          "type": "boolean",
          "description": "No name on the axes."
        },
        "select_tool": {
          "type": "text",
          "internal": true,
          "description": "Set by <bar-chart-grid> on its charts."
        },
        "normalized": {
          "type": "boolean",
          "only": "table",
          "internal": true,
          "description": "Each value as a share of the total."
        }
      }
    },
    "doughnut-chart": {
      "kind": "chart",
      "summary": "A pie chart with a hole.",
      "example": "<doughnut-chart measure=\"revenue\" by=\"channel\"></doughnut-chart>",
      "requires": [
        [
          "measure",
          "value"
        ]
      ],
      "attributes": {
        "table": {
          "type": "table",
          "description": "The table to query. Its presence selects SQL expressions: measure and by are then SQL, computed by the database."
        },
        "measure": {
          "type": "measure",
          "aliases": [
            "value"
          ],
          "description": "What to compute, one only: the name of a measure, or with table an SQL aggregate such as sum(revenue). \"sum(revenue) as Revenue\" names it."
        },
        "by": {
          "type": "dimension",
          "description": "The dimension to split by. Clicking one of its values filters the other components."
        },
        "sort-by": {
          "type": "text",
          "aliases": [
            "sort_by",
            "order-by",
            "order_by"
          ],
          "description": "A measure or a dimension, with an optional direction: sort-by=\"revenue desc\"."
        },
        "sort-asc": {
          "type": "boolean",
          "aliases": [
            "sort_asc"
          ],
          "internal": true,
          "description": "Historical: the direction of sort-by."
        },
        "limit": {
          "type": "integer",
          "description": "The number of rows."
        },
        "format": {
          "type": "format",
          "description": "eur, pct, int or dec, or a spreadsheet pattern such as #,##0."
        },
        "title": {
          "type": "text",
          "description": "A title above the component."
        },
        "where": {
          "type": "sql",
          "only": "table",
          "description": "An SQL condition for this component only. Refused in a sandboxed dashboard."
        },
        "date-column": {
          "type": "sql",
          "only": "table",
          "aliases": [
            "date_column"
          ],
          "description": "The column the period of the page applies to, when it is not the one of the table."
        },
        "granularity": {
          "type": "enum",
          "values": [
            "day",
            "week",
            "month",
            "quarter",
            "year",
            "auto"
          ],
          "only": "semantic",
          "description": "A time series, with no by. Without a value (or \"auto\"), follows the date_granularity option of the page."
        },
        "compare": {
          "type": "enum",
          "values": [
            "yoy",
            "mom",
            "prev_period",
            "auto"
          ],
          "only": "semantic",
          "description": "A comparison with another period. Without a value (or \"auto\"), follows the period_comparison_method option of the page."
        },
        "height": {
          "type": "css-length",
          "description": "The height of the chart (400px)."
        },
        "hide-axis-names": {
          "type": "boolean",
          "description": "No name on the axes."
        },
        "select_tool": {
          "type": "text",
          "internal": true,
          "description": "Set by <bar-chart-grid> on its charts."
        },
        "normalized": {
          "type": "boolean",
          "only": "table",
          "internal": true,
          "description": "Each value as a share of the total."
        }
      }
    },
    "generic-chart": {
      "kind": "chart",
      "internal": true,
      "summary": "The chart the others are made from: type=\"bar\", \"line\", \"pie\" or \"doughnut\".",
      "example": "<generic-chart type=\"bar\" measure=\"revenue\" by=\"region\"></generic-chart>",
      "requires": [
        [
          "measure",
          "value"
        ]
      ],
      "attributes": {
        "table": {
          "type": "table",
          "description": "The table to query. Its presence selects SQL expressions: measure and by are then SQL, computed by the database."
        },
        "measure": {
          "type": "measure",
          "aliases": [
            "value"
          ],
          "description": "What to compute, one only: the name of a measure, or with table an SQL aggregate such as sum(revenue). \"sum(revenue) as Revenue\" names it."
        },
        "by": {
          "type": "dimension",
          "description": "The dimension to split by. Clicking one of its values filters the other components."
        },
        "sort-by": {
          "type": "text",
          "aliases": [
            "sort_by",
            "order-by",
            "order_by"
          ],
          "description": "A measure or a dimension, with an optional direction: sort-by=\"revenue desc\"."
        },
        "sort-asc": {
          "type": "boolean",
          "aliases": [
            "sort_asc"
          ],
          "internal": true,
          "description": "Historical: the direction of sort-by."
        },
        "limit": {
          "type": "integer",
          "description": "The number of rows."
        },
        "format": {
          "type": "format",
          "description": "eur, pct, int or dec, or a spreadsheet pattern such as #,##0."
        },
        "title": {
          "type": "text",
          "description": "A title above the component."
        },
        "where": {
          "type": "sql",
          "only": "table",
          "description": "An SQL condition for this component only. Refused in a sandboxed dashboard."
        },
        "date-column": {
          "type": "sql",
          "only": "table",
          "aliases": [
            "date_column"
          ],
          "description": "The column the period of the page applies to, when it is not the one of the table."
        },
        "granularity": {
          "type": "enum",
          "values": [
            "day",
            "week",
            "month",
            "quarter",
            "year",
            "auto"
          ],
          "only": "semantic",
          "description": "A time series, with no by. Without a value (or \"auto\"), follows the date_granularity option of the page."
        },
        "compare": {
          "type": "enum",
          "values": [
            "yoy",
            "mom",
            "prev_period",
            "auto"
          ],
          "only": "semantic",
          "description": "A comparison with another period. Without a value (or \"auto\"), follows the period_comparison_method option of the page."
        },
        "height": {
          "type": "css-length",
          "description": "The height of the chart (400px)."
        },
        "hide-axis-names": {
          "type": "boolean",
          "description": "No name on the axes."
        },
        "select_tool": {
          "type": "text",
          "internal": true,
          "description": "Set by <bar-chart-grid> on its charts."
        },
        "normalized": {
          "type": "boolean",
          "only": "table",
          "internal": true,
          "description": "Each value as a share of the total."
        },
        "breakdown-by": {
          "type": "dimension",
          "aliases": [
            "breakdown_by"
          ],
          "description": "A second dimension: one series per value."
        },
        "breakdown-limit": {
          "type": "integer",
          "only": "table",
          "aliases": [
            "breakdown_limit"
          ],
          "description": "With breakdown-by: how many series to keep, the biggest first (6)."
        },
        "stacked": {
          "type": "boolean",
          "description": "With breakdown-by: the series are added up."
        },
        "horizontal": {
          "type": "boolean",
          "description": "Horizontal bars: a ranking, the biggest values first."
        },
        "type": {
          "type": "enum",
          "values": [
            "bar",
            "line",
            "pie",
            "doughnut"
          ],
          "description": "The kind of chart (bar)."
        }
      }
    },
    "score-card": {
      "kind": "value",
      "summary": "A key figure with its title and, with compare, its variation.",
      "example": "<score-card measure=\"revenue\" compare=\"yoy\"></score-card>",
      "requires": [
        [
          "measure",
          "value"
        ]
      ],
      "attributes": {
        "table": {
          "type": "table",
          "description": "The table to query. Its presence selects SQL expressions: measure and by are then SQL, computed by the database."
        },
        "measure": {
          "type": "measure",
          "aliases": [
            "value"
          ],
          "description": "What to compute, one only: the name of a measure, or with table an SQL aggregate such as sum(revenue). \"sum(revenue) as Revenue\" names it."
        },
        "by": {
          "type": "dimension",
          "description": "The dimension to split by. Clicking one of its values filters the other components."
        },
        "sort-by": {
          "type": "text",
          "aliases": [
            "sort_by",
            "order-by",
            "order_by"
          ],
          "description": "A measure or a dimension, with an optional direction: sort-by=\"revenue desc\"."
        },
        "sort-asc": {
          "type": "boolean",
          "aliases": [
            "sort_asc"
          ],
          "internal": true,
          "description": "Historical: the direction of sort-by."
        },
        "limit": {
          "type": "integer",
          "description": "The number of rows."
        },
        "format": {
          "type": "format",
          "description": "eur, pct, int or dec, or a spreadsheet pattern such as #,##0."
        },
        "title": {
          "type": "text",
          "description": "A title above the component."
        },
        "where": {
          "type": "sql",
          "only": "table",
          "description": "An SQL condition for this component only. Refused in a sandboxed dashboard."
        },
        "date-column": {
          "type": "sql",
          "only": "table",
          "aliases": [
            "date_column"
          ],
          "description": "The column the period of the page applies to, when it is not the one of the table."
        },
        "granularity": {
          "type": "enum",
          "values": [
            "day",
            "week",
            "month",
            "quarter",
            "year",
            "auto"
          ],
          "only": "semantic",
          "description": "A time series, with no by. Without a value (or \"auto\"), follows the date_granularity option of the page."
        },
        "compare": {
          "type": "enum",
          "values": [
            "yoy",
            "mom",
            "prev_period",
            "auto"
          ],
          "only": "semantic",
          "description": "A comparison with another period. Without a value (or \"auto\"), follows the period_comparison_method option of the page."
        },
        "style_value": {
          "type": "text",
          "internal": true,
          "description": "Historical: CSS of the value."
        }
      }
    },
    "simple-value": {
      "kind": "value",
      "summary": "A value alone, to put in a sentence.",
      "example": "<simple-value measure=\"revenue\" format=\"eur\"></simple-value>",
      "requires": [
        [
          "measure",
          "value"
        ]
      ],
      "attributes": {
        "table": {
          "type": "table",
          "description": "The table to query. Its presence selects SQL expressions: measure and by are then SQL, computed by the database."
        },
        "measure": {
          "type": "measure",
          "aliases": [
            "value"
          ],
          "description": "What to compute, one only: the name of a measure, or with table an SQL aggregate such as sum(revenue). \"sum(revenue) as Revenue\" names it."
        },
        "by": {
          "type": "dimension",
          "description": "The dimension to split by. Clicking one of its values filters the other components."
        },
        "sort-by": {
          "type": "text",
          "aliases": [
            "sort_by",
            "order-by",
            "order_by"
          ],
          "description": "A measure or a dimension, with an optional direction: sort-by=\"revenue desc\"."
        },
        "sort-asc": {
          "type": "boolean",
          "aliases": [
            "sort_asc"
          ],
          "internal": true,
          "description": "Historical: the direction of sort-by."
        },
        "limit": {
          "type": "integer",
          "description": "The number of rows."
        },
        "format": {
          "type": "format",
          "description": "eur, pct, int or dec, or a spreadsheet pattern such as #,##0."
        },
        "title": {
          "type": "text",
          "description": "A title above the component."
        },
        "where": {
          "type": "sql",
          "only": "table",
          "description": "An SQL condition for this component only. Refused in a sandboxed dashboard."
        },
        "date-column": {
          "type": "sql",
          "only": "table",
          "aliases": [
            "date_column"
          ],
          "description": "The column the period of the page applies to, when it is not the one of the table."
        },
        "granularity": {
          "type": "enum",
          "values": [
            "day",
            "week",
            "month",
            "quarter",
            "year",
            "auto"
          ],
          "only": "semantic",
          "description": "A time series, with no by. Without a value (or \"auto\"), follows the date_granularity option of the page."
        },
        "compare": {
          "type": "enum",
          "values": [
            "yoy",
            "mom",
            "prev_period",
            "auto"
          ],
          "only": "semantic",
          "description": "A comparison with another period. Without a value (or \"auto\"), follows the period_comparison_method option of the page."
        }
      }
    },
    "data-table": {
      "kind": "table",
      "summary": "A table: dimensions, attributes, then measures. A click on a header sorts, a click on a row filters.",
      "example": "<data-table by=\"store\" measures=\"revenue, orders\" sort-by=\"revenue desc\" limit=\"20\"></data-table>",
      "requires": [
        [
          "measures",
          "measure",
          "value",
          "by",
          "attributes"
        ]
      ],
      "attributes": {
        "table": {
          "type": "table",
          "description": "The table to query. Its presence selects SQL expressions: measure and by are then SQL, computed by the database."
        },
        "measure": {
          "type": "measure",
          "aliases": [
            "value"
          ],
          "description": "What to compute, one only: the name of a measure, or with table an SQL aggregate such as sum(revenue). \"sum(revenue) as Revenue\" names it."
        },
        "by": {
          "type": "dimensions",
          "description": "One or several dimensions: by=\"country, channel\". A click on a row filters on the first."
        },
        "sort-by": {
          "type": "text",
          "aliases": [
            "sort_by",
            "order-by",
            "order_by"
          ],
          "description": "A measure or a dimension, with an optional direction: sort-by=\"revenue desc\"."
        },
        "sort-asc": {
          "type": "boolean",
          "aliases": [
            "sort_asc"
          ],
          "internal": true,
          "description": "Historical: the direction of sort-by."
        },
        "limit": {
          "type": "integer",
          "description": "The number of rows."
        },
        "format": {
          "type": "format",
          "description": "eur, pct, int or dec, or a spreadsheet pattern such as #,##0."
        },
        "title": {
          "type": "text",
          "description": "A title above the component."
        },
        "where": {
          "type": "sql",
          "only": "table",
          "description": "An SQL condition for this component only. Refused in a sandboxed dashboard."
        },
        "date-column": {
          "type": "sql",
          "only": "table",
          "aliases": [
            "date_column"
          ],
          "description": "The column the period of the page applies to, when it is not the one of the table."
        },
        "granularity": {
          "type": "enum",
          "values": [
            "day",
            "week",
            "month",
            "quarter",
            "year",
            "auto"
          ],
          "only": "semantic",
          "description": "A time series, with no by. Without a value (or \"auto\"), follows the date_granularity option of the page."
        },
        "compare": {
          "type": "enum",
          "values": [
            "yoy",
            "mom",
            "prev_period",
            "auto"
          ],
          "only": "semantic",
          "description": "A comparison with another period. Without a value (or \"auto\"), follows the period_comparison_method option of the page."
        },
        "measures": {
          "type": "measures",
          "description": "Several measures, separated by commas."
        },
        "attributes": {
          "type": "dimensions",
          "description": "Columns that describe a dimension: attributes=\"city, manager\"."
        },
        "formats": {
          "type": "text",
          "description": "A format per column: formats=\"revenue:eur, orders:int\"."
        },
        "max-height": {
          "type": "css-length",
          "description": "The height from which the table scrolls, under a fixed header."
        }
      }
    },
    "table-chart": {
      "kind": "table",
      "deprecated": true,
      "replacedBy": "data-table",
      "summary": "The historical name of <data-table>.",
      "example": "<table-chart by=\"store\" measures=\"revenue, orders\"></table-chart>",
      "requires": [
        [
          "measures",
          "measure",
          "value",
          "by",
          "attributes"
        ]
      ],
      "attributes": {
        "table": {
          "type": "table",
          "description": "The table to query. Its presence selects SQL expressions: measure and by are then SQL, computed by the database."
        },
        "measure": {
          "type": "measure",
          "aliases": [
            "value"
          ],
          "description": "What to compute, one only: the name of a measure, or with table an SQL aggregate such as sum(revenue). \"sum(revenue) as Revenue\" names it."
        },
        "by": {
          "type": "dimensions",
          "description": "One or several dimensions: by=\"country, channel\". A click on a row filters on the first."
        },
        "sort-by": {
          "type": "text",
          "aliases": [
            "sort_by",
            "order-by",
            "order_by"
          ],
          "description": "A measure or a dimension, with an optional direction: sort-by=\"revenue desc\"."
        },
        "sort-asc": {
          "type": "boolean",
          "aliases": [
            "sort_asc"
          ],
          "internal": true,
          "description": "Historical: the direction of sort-by."
        },
        "limit": {
          "type": "integer",
          "description": "The number of rows."
        },
        "format": {
          "type": "format",
          "description": "eur, pct, int or dec, or a spreadsheet pattern such as #,##0."
        },
        "title": {
          "type": "text",
          "description": "A title above the component."
        },
        "where": {
          "type": "sql",
          "only": "table",
          "description": "An SQL condition for this component only. Refused in a sandboxed dashboard."
        },
        "date-column": {
          "type": "sql",
          "only": "table",
          "aliases": [
            "date_column"
          ],
          "description": "The column the period of the page applies to, when it is not the one of the table."
        },
        "granularity": {
          "type": "enum",
          "values": [
            "day",
            "week",
            "month",
            "quarter",
            "year",
            "auto"
          ],
          "only": "semantic",
          "description": "A time series, with no by. Without a value (or \"auto\"), follows the date_granularity option of the page."
        },
        "compare": {
          "type": "enum",
          "values": [
            "yoy",
            "mom",
            "prev_period",
            "auto"
          ],
          "only": "semantic",
          "description": "A comparison with another period. Without a value (or \"auto\"), follows the period_comparison_method option of the page."
        },
        "measures": {
          "type": "measures",
          "description": "Several measures, separated by commas."
        },
        "attributes": {
          "type": "dimensions",
          "description": "Columns that describe a dimension: attributes=\"city, manager\"."
        },
        "formats": {
          "type": "text",
          "description": "A format per column: formats=\"revenue:eur, orders:int\"."
        },
        "max-height": {
          "type": "css-length",
          "description": "The height from which the table scrolls, under a fixed header."
        }
      }
    },
    "date-range-filter": {
      "kind": "filter",
      "summary": "The period of the page: presets and two dates.",
      "example": "<date-range-filter presets=\"all,30d,90d,365d,ytd\" default=\"90d\"></date-range-filter>",
      "attributes": {
        "presets": {
          "type": "text",
          "description": "Among all, 7d, 30d, 90d, 365d (any number of days), mtd and ytd."
        },
        "max": {
          "type": "text",
          "description": "The last day of the presets, when it is not today: YYYY-MM-DD."
        },
        "default": {
          "type": "text",
          "description": "The period at start: a preset, or two dates separated by a comma."
        }
      }
    },
    "date-range-picker": {
      "kind": "filter",
      "deprecated": true,
      "replacedBy": "date-range-filter",
      "summary": "The historical name of <date-range-filter>.",
      "example": "<date-range-picker></date-range-picker>",
      "attributes": {
        "presets": {
          "type": "text",
          "description": "Among all, 7d, 30d, 90d, 365d (any number of days), mtd and ytd."
        },
        "max": {
          "type": "text",
          "description": "The last day of the presets, when it is not today: YYYY-MM-DD."
        },
        "default": {
          "type": "text",
          "description": "The period at start: a preset, or two dates separated by a comma."
        }
      }
    },
    "ui-filter": {
      "kind": "filter",
      "summary": "A filter on a dimension, or a switch for an option of the page.",
      "example": "<ui-filter dimension=\"region\" type=\"select\" label=\"Region\"></ui-filter>",
      "requires": [
        [
          "dimension",
          "option"
        ]
      ],
      "attributes": {
        "dimension": {
          "type": "dimension",
          "description": "The dimension to filter on."
        },
        "option": {
          "type": "text",
          "description": "Instead of dimension: the option of the page this control drives, such as date_granularity or a business switch the server reads."
        },
        "type": {
          "type": "enum",
          "values": [
            "select",
            "segmented",
            "toggle"
          ],
          "description": "A list (default), buttons or a checkbox."
        },
        "options": {
          "type": "text",
          "description": "The choices: options=\"Web, Store\", or with labels options=\"web:Online, store:In store\". Without it, the values are read from the data."
        },
        "table": {
          "type": "table",
          "description": "Where to read the values, with SQL expressions."
        },
        "measure": {
          "type": "measure",
          "internal": true,
          "description": "A measure for servers that cannot list the values of a dimension without one."
        },
        "label": {
          "type": "text",
          "description": "The text before the control. label=\"\" for none."
        },
        "multiple": {
          "type": "boolean",
          "description": "A list that takes several values."
        },
        "value": {
          "type": "text",
          "description": "For a toggle on a dimension: the value it filters on."
        },
        "default": {
          "type": "text",
          "description": "The selection at start: default=\"Web\", default=\"Web, Store\"."
        }
      }
    },
    "source-table": {
      "kind": "source",
      "summary": "Static page: a file queried in the browser, used as table=\"name\".",
      "example": "<source-table name=\"orders\" url=\"orders.parquet\" date-column=\"date\"></source-table>",
      "requires": [
        [
          "name"
        ]
      ],
      "attributes": {
        "name": {
          "type": "text",
          "description": "The name components use in table=\"...\"."
        },
        "url": {
          "type": "url",
          "description": "A Parquet, CSV or JSON file, or an API that returns JSON."
        },
        "columns": {
          "type": "sql",
          "description": "The columns to keep or compute, as in an SQL select. * by default."
        },
        "date-column": {
          "type": "sql",
          "aliases": [
            "date_column"
          ],
          "description": "The column the period of the page applies to."
        },
        "format": {
          "type": "enum",
          "values": [
            "parquet",
            "csv",
            "tsv",
            "json"
          ],
          "description": "When the address does not end with it."
        }
      }
    },
    "source-view": {
      "kind": "source",
      "summary": "Static page: an SQL query on the source tables, used as table=\"name\".",
      "example": "<source-view name=\"top_stores\">select store, sum(revenue) as revenue from orders group by 1</source-view>",
      "content": "sql",
      "requires": [
        [
          "name"
        ]
      ],
      "attributes": {
        "name": {
          "type": "text",
          "description": "The name components use in table=\"...\"."
        },
        "date-column": {
          "type": "sql",
          "aliases": [
            "date_column"
          ],
          "description": "The column the period of the page applies to."
        }
      }
    },
    "source-api": {
      "kind": "source",
      "summary": "Your backend: the queries of the page go to this address, one POST per batch.",
      "example": "<source-api url=\"/api/queries\"></source-api>",
      "requires": [
        [
          "url"
        ]
      ],
      "attributes": {
        "url": {
          "type": "url",
          "description": "Where the queries go, relative to the page."
        },
        "body": {
          "type": "json",
          "description": "A JSON object added to every request."
        },
        "credentials": {
          "type": "enum",
          "values": [
            "same-origin",
            "include",
            "omit"
          ],
          "description": "same-origin (default), or include for an API on another site."
        }
      }
    },
    "bar-chart-grid": {
      "kind": "explore",
      "summary": "One bar chart per dimension, to explore a table.",
      "example": "<bar-chart-grid table=\"orders\" measure=\"count(*)\" by=\"channel, country\" horizontal limit=\"8\"></bar-chart-grid>",
      "requires": [
        [
          "measure",
          "value"
        ]
      ],
      "attributes": {
        "table": {
          "type": "table",
          "description": "The table to query. Its presence selects SQL expressions: measure and by are then SQL, computed by the database."
        },
        "measure": {
          "type": "measure",
          "aliases": [
            "value"
          ],
          "description": "What to compute, one only: the name of a measure, or with table an SQL aggregate such as sum(revenue). \"sum(revenue) as Revenue\" names it."
        },
        "by": {
          "type": "dimensions",
          "description": "The dimensions, one chart each. With table and without by: every text column."
        },
        "time-by": {
          "type": "dimensions",
          "aliases": [
            "time_by"
          ],
          "description": "One line chart per value: a time column with table, a granularity without."
        },
        "sort-by": {
          "type": "text",
          "aliases": [
            "sort_by",
            "order-by",
            "order_by"
          ],
          "description": "A measure or a dimension, with an optional direction: sort-by=\"revenue desc\"."
        },
        "limit": {
          "type": "integer",
          "description": "The number of rows."
        },
        "horizontal": {
          "type": "boolean",
          "description": "Horizontal bars: a ranking, the biggest values first."
        },
        "format": {
          "type": "format",
          "description": "eur, pct, int or dec, or a spreadsheet pattern such as #,##0."
        },
        "where": {
          "type": "sql",
          "only": "table",
          "description": "An SQL condition for this component only. Refused in a sandboxed dashboard."
        },
        "date-column": {
          "type": "sql",
          "only": "table",
          "aliases": [
            "date_column"
          ],
          "description": "The column the period of the page applies to, when it is not the one of the table."
        },
        "compare": {
          "type": "enum",
          "values": [
            "yoy",
            "mom",
            "prev_period",
            "auto"
          ],
          "only": "semantic",
          "description": "A comparison with another period. Without a value (or \"auto\"), follows the period_comparison_method option of the page."
        }
      }
    },
    "tables-list-chart": {
      "kind": "explore",
      "summary": "Static page: the tables of the page.",
      "example": "<tables-list-chart></tables-list-chart>",
      "attributes": {}
    },
    "table-description-chart": {
      "kind": "explore",
      "summary": "Static page: the columns of a table and their types.",
      "example": "<table-description-chart table=\"orders\"></table-description-chart>",
      "requires": [
        [
          "table"
        ]
      ],
      "attributes": {
        "table": {
          "type": "table",
          "description": "The table to query. Its presence selects SQL expressions: measure and by are then SQL, computed by the database."
        }
      }
    },
    "unytics-app": {
      "kind": "source",
      "deprecated": true,
      "summary": "Historical: the page of a Unytics application.",
      "example": "<unytics-app dataset=\"sales\" location=\"EU\"></unytics-app>",
      "attributes": {
        "dataset": {
          "type": "text",
          "description": "Historical."
        },
        "location": {
          "type": "text",
          "description": "Historical."
        },
        "tables": {
          "type": "text",
          "description": "Historical."
        }
      }
    }
  }
}
