A chart that can render timeseries data -- data from a query that has `time` as a dimension -- as lines or bars. This type of chart can support: - One or more metrics: `{ metrics: ["response_latency_p99", "response_latency_p95"], dimensions: ["time"] }` - One metric plus one non-time dimension: `{ metrics: ["request_count"], dimensions: ["time", "gateway_service"] }` Either way, ensure that `time` is in the list of query dimensions.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/TimeseriesChart",
"title": "Timeseries chart",
"description": "A chart that can render timeseries data -- data from a query that has `time` as a dimension -- as lines or bars.\n\nThis type of chart can support:\n\n- One or more metrics: `{ metrics: [\"response_latency_p99\", \"response_latency_p95\"], dimensions: [\"time\"] }`\n- One metric plus one non-time dimension: `{ metrics: [\"request_count\"], dimensions: [\"time\", \"gateway_service\"] }` \n\nEither way, ensure that `time` is in the list of query dimensions.\n",
"type": "object",
"properties": {
"chart_title": {
"description": "The title of the chart, which is displayed in the tile's header.",
"type": "string",
"nullable": false
},
"type": {
"type": "string",
"enum": [
"timeseries_line",
"timeseries_bar"
],
"x-speakeasy-unknown-values": "allow"
},
"stacked": {
"description": "Whether to stack the bars or lines (implicitly adding them together to form a total), or leave them independent from each other.\n",
"type": "boolean",
"nullable": false
}
},
"additionalProperties": false,
"required": [
"type"
]
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.