em-kit 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ai.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.js","sources":["../src/ai/spec.schema.generated.ts","../src/ai/index.ts"],"sourcesContent":["// Generated by scripts/props.mjs — do not edit.\n// Source of truth: src/spec.ts. Regenerate with `npm run sync`.\n\n/** A root-object JSON Schema, the shape tool APIs accept (no top-level anyOf/oneOf). */\nexport type ToolInputSchema = {\n type: 'object';\n properties: Record<string, unknown>;\n required: string[];\n [key: string]: unknown;\n};\n\n/** The ChartSpec union as JSON Schema 2020-12, one `anyOf` branch per spec type. Validates a spec. */\nexport const chartSpecSchema = {\n \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n \"title\": \"ChartSpec\",\n \"description\": \"A chart to render. `chart` selects the kind and which other fields apply. A field (`dimension`, `measure`, `measures`, `xAxis`, ...) is a bare row-key string or a { name, ... } object. Options use vertical orientation for every kind: `xAxis`/`xAxisLabel` is the category axis and `yAxisRange*` the value range, even for horizontal variants. Set `granularity` on the chart, never on a field, when the category axis is a time field. `rows` is long format with zone-less ISO time strings.\",\n \"anyOf\": [\n {\n \"$ref\": \"#/$defs/BarSpec\"\n },\n {\n \"$ref\": \"#/$defs/BarGroupedSpec\"\n },\n {\n \"$ref\": \"#/$defs/LineSpec\"\n },\n {\n \"$ref\": \"#/$defs/LineGroupedSpec\"\n },\n {\n \"$ref\": \"#/$defs/LineWithKpiTabsSpec\"\n },\n {\n \"$ref\": \"#/$defs/LineComparisonSpec\"\n },\n {\n \"$ref\": \"#/$defs/LineComparisonWithKpiTabsSpec\"\n },\n {\n \"$ref\": \"#/$defs/AreaSpec\"\n },\n {\n \"$ref\": \"#/$defs/BarLineSpec\"\n },\n {\n \"$ref\": \"#/$defs/PieSpec\"\n },\n {\n \"$ref\": \"#/$defs/DonutLabelSpec\"\n },\n {\n \"$ref\": \"#/$defs/ScatterSpec\"\n },\n {\n \"$ref\": \"#/$defs/BubbleSpec\"\n },\n {\n \"$ref\": \"#/$defs/KpiSpec\"\n },\n {\n \"$ref\": \"#/$defs/KpiComparisonSpec\"\n },\n {\n \"$ref\": \"#/$defs/TableSpec\"\n },\n {\n \"$ref\": \"#/$defs/HeatMapSpec\"\n },\n {\n \"$ref\": \"#/$defs/PivotSpec\"\n }\n ],\n \"$defs\": {\n \"AreaSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"area\"\n },\n \"xAxis\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"groupBy\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"Stacking dimension. Omit for a single-series area.\"\n },\n \"measure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"granularity\": {\n \"$ref\": \"#/$defs/Granularity\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showLogarithmicScale\": {\n \"type\": \"boolean\"\n },\n \"xAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Category-axis label (vertical orientation; see header).\"\n },\n \"yAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Value-axis label.\"\n },\n \"yAxisRangeMin\": {\n \"type\": \"number\",\n \"description\": \"Value-axis range.\"\n },\n \"yAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"reverseXAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse the category order.\"\n },\n \"xAxisMaxItems\": {\n \"type\": \"number\",\n \"description\": \"Cap on rendered categories.\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n }\n }\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"measure\",\n \"xAxis\"\n ]\n },\n \"BarGroupedSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"enum\": [\n \"barGrouped\",\n \"barGroupedHorizontal\",\n \"barStacked\",\n \"barStackedHorizontal\"\n ]\n },\n \"xAxis\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"Category axis dimension (renders on y for horizontal variants).\"\n },\n \"groupBy\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"Dimension that splits each category into grouped/stacked bars.\"\n },\n \"measure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"granularity\": {\n \"$ref\": \"#/$defs/Granularity\",\n \"description\": \"When `xAxis` is a time field: its bucket size.\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"showTotalLabels\": {\n \"type\": \"boolean\"\n },\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showLogarithmicScale\": {\n \"type\": \"boolean\"\n },\n \"xAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Category-axis label (vertical orientation; see header).\"\n },\n \"yAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Value-axis label.\"\n },\n \"yAxisRangeMin\": {\n \"type\": \"number\",\n \"description\": \"Value-axis range.\"\n },\n \"yAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"reverseXAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse the category order.\"\n },\n \"xAxisMaxItems\": {\n \"type\": \"number\",\n \"description\": \"Cap on rendered categories.\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n }\n }\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"groupBy\",\n \"measure\",\n \"xAxis\"\n ]\n },\n \"BarLineSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"barLine\"\n },\n \"dimension\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"barMeasures\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/FieldRef\"\n }\n }\n ],\n \"description\": \"Measures drawn as bars (left axis).\"\n },\n \"lineMeasures\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/FieldRef\"\n }\n }\n ],\n \"description\": \"Measures drawn as lines (right axis).\"\n },\n \"granularity\": {\n \"$ref\": \"#/$defs/Granularity\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"showValueLabelsLine\": {\n \"type\": \"boolean\"\n },\n \"yAxisSecondaryLabel\": {\n \"type\": \"string\",\n \"description\": \"Right (line) axis.\"\n },\n \"yAxisSecondaryMin\": {\n \"type\": \"number\"\n },\n \"yAxisSecondaryMax\": {\n \"type\": \"number\"\n },\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showLogarithmicScale\": {\n \"type\": \"boolean\"\n },\n \"xAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Category-axis label (vertical orientation; see header).\"\n },\n \"yAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Value-axis label.\"\n },\n \"yAxisRangeMin\": {\n \"type\": \"number\",\n \"description\": \"Value-axis range.\"\n },\n \"yAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"reverseXAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse the category order.\"\n },\n \"xAxisMaxItems\": {\n \"type\": \"number\",\n \"description\": \"Cap on rendered categories.\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n }\n }\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"barMeasures\",\n \"chart\",\n \"dimension\"\n ]\n },\n \"BarSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"enum\": [\n \"bar\",\n \"barHorizontal\"\n ]\n },\n \"dimension\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"Category dimension.\"\n },\n \"measures\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/FieldRef\"\n }\n }\n ],\n \"description\": \"One measure per bar series.\"\n },\n \"granularity\": {\n \"$ref\": \"#/$defs/Granularity\",\n \"description\": \"When `dimension` is a time field: its bucket size.\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showLogarithmicScale\": {\n \"type\": \"boolean\"\n },\n \"xAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Category-axis label (vertical orientation; see header).\"\n },\n \"yAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Value-axis label.\"\n },\n \"yAxisRangeMin\": {\n \"type\": \"number\",\n \"description\": \"Value-axis range.\"\n },\n \"yAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"reverseXAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse the category order.\"\n },\n \"xAxisMaxItems\": {\n \"type\": \"number\",\n \"description\": \"Cap on rendered categories.\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n }\n }\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"dimension\",\n \"measures\"\n ]\n },\n \"BubbleSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"bubble\"\n },\n \"xMeasure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"yMeasure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"bubbleSizeMeasure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"pointDimension\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"groupByDimension\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"bubbleRadiusMin\": {\n \"type\": \"number\"\n },\n \"bubbleRadiusMax\": {\n \"type\": \"number\"\n },\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showPointLabels\": {\n \"type\": \"boolean\",\n \"description\": \"Label each point with its dimension value.\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showLogarithmicScale\": {\n \"type\": \"boolean\"\n },\n \"xAxisLabel\": {\n \"type\": \"string\"\n },\n \"yAxisLabel\": {\n \"type\": \"string\"\n },\n \"xAxisRangeMin\": {\n \"type\": \"number\"\n },\n \"xAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"yAxisRangeMin\": {\n \"type\": \"number\"\n },\n \"yAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"reverseXAxis\": {\n \"type\": \"boolean\"\n },\n \"pointColor\": {\n \"type\": \"string\",\n \"description\": \"CSS color for ungrouped points.\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n }\n }\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"bubbleSizeMeasure\",\n \"chart\",\n \"pointDimension\",\n \"xMeasure\",\n \"yMeasure\"\n ]\n },\n \"DateRangeSpec\": {\n \"type\": \"object\",\n \"properties\": {\n \"from\": {\n \"type\": \"string\"\n },\n \"to\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false,\n \"description\": \"ISO date strings (`YYYY-MM-DD` or full timestamps), no zone suffix.\"\n },\n \"DonutLabelSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"donutLabel\"\n },\n \"dimension\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"measure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"innerLabel\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"type\": \"string\"\n },\n \"measure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"value\": {\n \"type\": [\n \"number\",\n \"string\"\n ]\n }\n },\n \"additionalProperties\": false,\n \"description\": \"The headline number in the donut's center. Omitted fields are derived: `measure` defaults to the main measure, `value` to the sum of the rows.\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showValueLabelsAsPercentage\": {\n \"type\": \"boolean\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n }\n }\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"dimension\",\n \"measure\"\n ]\n },\n \"FieldRef\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"$ref\": \"#/$defs/SpecField\"\n }\n ],\n \"description\": \"A field is a bare row-key string or a full descriptor.\"\n },\n \"Granularity\": {\n \"type\": \"string\",\n \"enum\": [\n \"second\",\n \"minute\",\n \"hour\",\n \"day\",\n \"week\",\n \"month\",\n \"quarter\",\n \"year\"\n ]\n },\n \"HeatMapSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"heatmap\"\n },\n \"rowDimension\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"columnDimension\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"measure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"options\": {\n \"type\": \"object\",\n \"properties\": {\n \"showValues\": {\n \"type\": \"boolean\",\n \"description\": \"Print the measure value in each cell.\"\n },\n \"minColor\": {\n \"type\": \"string\",\n \"description\": \"CSS colors for the value scale.\"\n },\n \"midColor\": {\n \"type\": \"string\"\n },\n \"maxColor\": {\n \"type\": \"string\"\n },\n \"minThreshold\": {\n \"type\": \"string\",\n \"description\": \"Values at/below this render as minColor.\"\n },\n \"maxThreshold\": {\n \"type\": \"string\",\n \"description\": \"Values at/above this render as maxColor.\"\n },\n \"displayNullAs\": {\n \"type\": \"string\"\n },\n \"columnWidth\": {\n \"type\": \"number\"\n },\n \"firstColumnWidth\": {\n \"type\": \"number\"\n }\n },\n \"additionalProperties\": false\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"columnDimension\",\n \"measure\",\n \"rowDimension\"\n ]\n },\n \"KpiComparisonSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"kpiComparison\"\n },\n \"measure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"value\": {\n \"type\": [\n \"number\",\n \"string\"\n ],\n \"description\": \"Shortcut for `rows`; see KpiSpec.value.\"\n },\n \"comparisonValue\": {\n \"type\": [\n \"number\",\n \"string\"\n ],\n \"description\": \"The value compared against. Shortcut for `comparisonRows`.\"\n },\n \"comparisonRows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"Rows for the comparison period, same shape as `rows`.\"\n },\n \"comparisonLabel\": {\n \"type\": \"string\",\n \"description\": \"Label for the comparison, e.g. 'Previous period'.\"\n },\n \"dateRange\": {\n \"$ref\": \"#/$defs/DateRangeSpec\",\n \"description\": \"Period the main value covers.\"\n },\n \"comparisonDateRange\": {\n \"$ref\": \"#/$defs/DateRangeSpec\",\n \"description\": \"Period the comparison value covers.\"\n },\n \"options\": {\n \"type\": \"object\",\n \"properties\": {\n \"fontSize\": {\n \"type\": \"number\"\n },\n \"changeFontSize\": {\n \"type\": \"number\"\n },\n \"displayChangeAsPercentage\": {\n \"type\": \"boolean\"\n },\n \"reversePositiveNegativeColors\": {\n \"type\": \"boolean\",\n \"description\": \"When a decrease is good (costs, churn).\"\n },\n \"percentageDecimalPlaces\": {\n \"type\": \"number\"\n },\n \"displayNullAs\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"measure\"\n ]\n },\n \"KpiSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"kpi\"\n },\n \"measure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"value\": {\n \"type\": [\n \"number\",\n \"string\"\n ],\n \"description\": \"Shortcut for `rows: [{ [measure.name]: value }]`. Ignored when `rows` is set.\"\n },\n \"options\": {\n \"type\": \"object\",\n \"properties\": {\n \"fontSize\": {\n \"type\": \"number\"\n },\n \"displayNullAs\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"measure\"\n ]\n },\n \"LineComparisonSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"lineComparison\"\n },\n \"xAxis\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"measures\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/FieldRef\"\n }\n }\n ]\n },\n \"comparisonRows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"Rows for the comparison period, same shape as `rows`; aligned by position.\"\n },\n \"comparisonLabel\": {\n \"type\": \"string\",\n \"description\": \"Label for the comparison, e.g. 'Previous period'.\"\n },\n \"dateRange\": {\n \"$ref\": \"#/$defs/DateRangeSpec\",\n \"description\": \"Periods covered; derived from each row set's time extent when omitted.\"\n },\n \"comparisonDateRange\": {\n \"$ref\": \"#/$defs/DateRangeSpec\"\n },\n \"granularity\": {\n \"$ref\": \"#/$defs/Granularity\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"showComparisonAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Second x-axis showing the comparison period's dates.\"\n },\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showLogarithmicScale\": {\n \"type\": \"boolean\"\n },\n \"xAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Category-axis label (vertical orientation; see header).\"\n },\n \"yAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Value-axis label.\"\n },\n \"yAxisRangeMin\": {\n \"type\": \"number\",\n \"description\": \"Value-axis range.\"\n },\n \"yAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"reverseXAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse the category order.\"\n },\n \"xAxisMaxItems\": {\n \"type\": \"number\",\n \"description\": \"Cap on rendered categories.\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n }\n }\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"measures\",\n \"xAxis\"\n ]\n },\n \"LineComparisonWithKpiTabsSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"lineComparisonWithKpiTabs\"\n },\n \"xAxis\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"measures\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/FieldRef\"\n }\n }\n ]\n },\n \"comparisonRows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n }\n },\n \"kpiRows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"See LineWithKpiTabsSpec.kpiRows; derived from `rows` when omitted.\"\n },\n \"kpiComparisonRows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"Headline numbers for the comparison period; derived from `comparisonRows`.\"\n },\n \"comparisonLabel\": {\n \"type\": \"string\"\n },\n \"dateRange\": {\n \"$ref\": \"#/$defs/DateRangeSpec\"\n },\n \"comparisonDateRange\": {\n \"$ref\": \"#/$defs/DateRangeSpec\"\n },\n \"granularity\": {\n \"$ref\": \"#/$defs/Granularity\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"showComparisonAxis\": {\n \"type\": \"boolean\"\n },\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showLogarithmicScale\": {\n \"type\": \"boolean\"\n },\n \"xAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Category-axis label (vertical orientation; see header).\"\n },\n \"yAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Value-axis label.\"\n },\n \"yAxisRangeMin\": {\n \"type\": \"number\",\n \"description\": \"Value-axis range.\"\n },\n \"yAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"reverseXAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse the category order.\"\n },\n \"xAxisMaxItems\": {\n \"type\": \"number\",\n \"description\": \"Cap on rendered categories.\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n }\n }\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"measures\",\n \"xAxis\"\n ]\n },\n \"LineGroupedSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"lineGrouped\"\n },\n \"xAxis\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"groupBy\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"Dimension that splits the measure into one line per value.\"\n },\n \"measure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"granularity\": {\n \"$ref\": \"#/$defs/Granularity\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showLogarithmicScale\": {\n \"type\": \"boolean\"\n },\n \"xAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Category-axis label (vertical orientation; see header).\"\n },\n \"yAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Value-axis label.\"\n },\n \"yAxisRangeMin\": {\n \"type\": \"number\",\n \"description\": \"Value-axis range.\"\n },\n \"yAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"reverseXAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse the category order.\"\n },\n \"xAxisMaxItems\": {\n \"type\": \"number\",\n \"description\": \"Cap on rendered categories.\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n }\n }\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"groupBy\",\n \"measure\",\n \"xAxis\"\n ]\n },\n \"LineSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"line\"\n },\n \"xAxis\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"measures\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/FieldRef\"\n }\n }\n ],\n \"description\": \"One measure per line.\"\n },\n \"granularity\": {\n \"$ref\": \"#/$defs/Granularity\",\n \"description\": \"When `xAxis` is a time field: its bucket size.\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showLogarithmicScale\": {\n \"type\": \"boolean\"\n },\n \"xAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Category-axis label (vertical orientation; see header).\"\n },\n \"yAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Value-axis label.\"\n },\n \"yAxisRangeMin\": {\n \"type\": \"number\",\n \"description\": \"Value-axis range.\"\n },\n \"yAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"reverseXAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse the category order.\"\n },\n \"xAxisMaxItems\": {\n \"type\": \"number\",\n \"description\": \"Cap on rendered categories.\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n }\n }\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"measures\",\n \"xAxis\"\n ]\n },\n \"LineWithKpiTabsSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"lineWithKpiTabs\"\n },\n \"xAxis\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"measures\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/FieldRef\"\n }\n }\n ],\n \"description\": \"One measure per KPI tab; each tab plots its measure as the line.\"\n },\n \"kpiRows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"One row holding each measure's headline number for the tabs. Derived by summing `rows` when omitted.\"\n },\n \"granularity\": {\n \"$ref\": \"#/$defs/Granularity\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showLogarithmicScale\": {\n \"type\": \"boolean\"\n },\n \"xAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Category-axis label (vertical orientation; see header).\"\n },\n \"yAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Value-axis label.\"\n },\n \"yAxisRangeMin\": {\n \"type\": \"number\",\n \"description\": \"Value-axis range.\"\n },\n \"yAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"reverseXAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse the category order.\"\n },\n \"xAxisMaxItems\": {\n \"type\": \"number\",\n \"description\": \"Cap on rendered categories.\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n }\n }\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"measures\",\n \"xAxis\"\n ]\n },\n \"NativeDataType\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"time\",\n \"boolean\"\n ]\n },\n \"PieSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"enum\": [\n \"pie\",\n \"donut\"\n ]\n },\n \"dimension\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"measure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showValueLabelsAsPercentage\": {\n \"type\": \"boolean\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n }\n }\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"dimension\",\n \"measure\"\n ]\n },\n \"PivotSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"pivot\"\n },\n \"rowDimension\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"columnDimension\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"measures\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/FieldRef\"\n }\n }\n ]\n },\n \"subRowDimension\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"Expandable second row level. Requires `subRows`.\"\n },\n \"subRows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"Rows for the sub-row level, long format including the parent row key.\"\n },\n \"options\": {\n \"type\": \"object\",\n \"properties\": {\n \"displayNullAs\": {\n \"type\": \"string\"\n },\n \"columnWidth\": {\n \"type\": \"number\"\n },\n \"firstColumnWidth\": {\n \"type\": \"number\"\n }\n },\n \"additionalProperties\": false\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"columnDimension\",\n \"measures\",\n \"rowDimension\"\n ]\n },\n \"ScatterSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"scatter\"\n },\n \"xMeasure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"yMeasure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"pointDimension\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"Dimension identifying each point.\"\n },\n \"groupByDimension\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"Optional dimension that colors points by group.\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showPointLabels\": {\n \"type\": \"boolean\",\n \"description\": \"Label each point with its dimension value.\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showLogarithmicScale\": {\n \"type\": \"boolean\"\n },\n \"xAxisLabel\": {\n \"type\": \"string\"\n },\n \"yAxisLabel\": {\n \"type\": \"string\"\n },\n \"xAxisRangeMin\": {\n \"type\": \"number\"\n },\n \"xAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"yAxisRangeMin\": {\n \"type\": \"number\"\n },\n \"yAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"reverseXAxis\": {\n \"type\": \"boolean\"\n },\n \"pointColor\": {\n \"type\": \"string\",\n \"description\": \"CSS color for ungrouped points.\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n }\n }\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"pointDimension\",\n \"xMeasure\",\n \"yMeasure\"\n ]\n },\n \"SpecField\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"Row key: values are read from `rows[i][name]`.\"\n },\n \"title\": {\n \"type\": \"string\",\n \"description\": \"Display name. Defaults to `name`.\"\n },\n \"type\": {\n \"$ref\": \"#/$defs/NativeDataType\",\n \"description\": \"Inferred from the row values when omitted.\"\n },\n \"role\": {\n \"type\": \"string\",\n \"enum\": [\n \"dimension\",\n \"measure\"\n ],\n \"description\": \"Only meaningful where a chart takes mixed columns (`table`): whether the field is a category (`dimension`) or a numeric value (`measure`). Inferred from `type`/row values when omitted.\"\n },\n \"format\": {\n \"$ref\": \"#/$defs/SpecFieldFormat\"\n }\n },\n \"required\": [\n \"name\"\n ],\n \"additionalProperties\": false\n },\n \"SpecFieldFormat\": {\n \"type\": \"object\",\n \"properties\": {\n \"prefix\": {\n \"type\": \"string\",\n \"description\": \"Prefix.\"\n },\n \"suffix\": {\n \"type\": \"string\",\n \"description\": \"Suffix.\"\n },\n \"displayName\": {\n \"type\": \"string\",\n \"description\": \"Display name.\"\n },\n \"maxCharacters\": {\n \"type\": \"number\",\n \"description\": \"Maximum characters. Applies to string fields.\"\n },\n \"decimalPlaces\": {\n \"type\": \"number\",\n \"description\": \"Decimal places. Applies to number fields.\"\n },\n \"currency\": {\n \"type\": \"string\",\n \"description\": \"Currency. e.g. EUR. Applies to number fields.\"\n },\n \"abbreviateLargeNumber\": {\n \"type\": \"boolean\",\n \"description\": \"Abbreviate large number. Applies to number fields.\"\n },\n \"color\": {\n \"type\": \"string\",\n \"description\": \"Color.\"\n },\n \"showValueAsPercentage\": {\n \"type\": \"boolean\",\n \"description\": \"Show values as percentage.\"\n },\n \"ignoreEmptyDate\": {\n \"type\": \"boolean\",\n \"description\": \"Ignore empty dates. When enabled, dates with no data will be omitted instead of shown as empty. Applies to time fields.\"\n },\n \"lineColor\": {\n \"type\": \"string\",\n \"description\": \"Line color.\"\n },\n \"dashedLine\": {\n \"type\": \"boolean\",\n \"description\": \"Dashed line.\"\n },\n \"connectGaps\": {\n \"type\": \"boolean\",\n \"description\": \"Connect gaps.\"\n },\n \"fillUnderLine\": {\n \"type\": \"boolean\",\n \"description\": \"Fill under line.\"\n },\n \"useSecondaryAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Assign to secondary axis.\"\n },\n \"previousLineColor\": {\n \"type\": \"string\",\n \"description\": \"Previous line color.\"\n },\n \"lineDashed\": {\n \"type\": \"boolean\",\n \"description\": \"Primary line dashed.\"\n },\n \"previousLineDashed\": {\n \"type\": \"boolean\",\n \"description\": \"Compared line dashed.\"\n },\n \"invertChangeColors\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse positive/negative colors.\"\n },\n \"reverseTrendDirection\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse trend direction. Reverses the up/down trend arrow independently of \\\"Reverse positive/negative colors\\\" above. Existing dashboards keep their current look until this is changed explicitly.\"\n },\n \"displayChangeAsPercentage\": {\n \"type\": \"boolean\",\n \"description\": \"Display change as %.\"\n },\n \"percentageDecimalPlaces\": {\n \"type\": \"number\",\n \"description\": \"Percentage decimal places.\"\n },\n \"columnAggregation\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"sum\",\n \"min\",\n \"max\",\n \"average\"\n ]\n },\n \"description\": \"Show column calculation.\"\n },\n \"rowAggregation\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"sum\",\n \"min\",\n \"max\",\n \"average\"\n ]\n },\n \"description\": \"Show row calculation.\"\n },\n \"showAsPercentage\": {\n \"type\": \"boolean\",\n \"description\": \"Show as percentage. If turned on, other measures may be ignored.\"\n },\n \"width\": {\n \"type\": \"number\",\n \"description\": \"Width. You can input a number in pixels e.g. 400.\"\n },\n \"align\": {\n \"type\": \"string\",\n \"enum\": [\n \"left\",\n \"center\",\n \"right\"\n ],\n \"description\": \"Align.\"\n },\n \"tableCellStyle\": {\n \"type\": \"string\",\n \"enum\": [\n \"Bold\",\n \"Italic\",\n \"Positive vs Negative\"\n ],\n \"description\": \"Table cell style.\"\n },\n \"displayFormat\": {\n \"type\": \"string\",\n \"enum\": [\n \"Markdown\",\n \"Json\"\n ],\n \"description\": \"Display format.\"\n },\n \"displayNullAs\": {\n \"type\": \"string\",\n \"description\": \"Rendered in place of null/undefined values.\"\n }\n },\n \"additionalProperties\": false,\n \"description\": \"Per-field options, applied via the field's `inputs`: formatting (prefix, suffix, decimalPlaces, …) plus chart-specific ones such as a pivot table's columnAggregation/rowAggregation. Time-axis settings live on the chart.\"\n },\n \"SpecRow\": {\n \"type\": \"object\",\n \"additionalProperties\": {}\n },\n \"TableSpec\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"const\": \"table\"\n },\n \"columns\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"description\": \"Columns, in display order. `role` disambiguates dimension vs measure.\"\n },\n \"options\": {\n \"type\": \"object\",\n \"properties\": {\n \"showIndex\": {\n \"type\": \"boolean\",\n \"description\": \"Number the rows.\"\n },\n \"displayNullAs\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n }\n },\n \"required\": [\n \"chart\",\n \"columns\"\n ]\n }\n }\n} as const;\n\n/** The same fields flattened into one root object, for `input_schema` / `parameters`. Guides a producer; validate with chartSpecSchema. */\nexport const chartSpecToolSchema: ToolInputSchema = {\n \"type\": \"object\",\n \"description\": \"A chart to render. `chart` selects the kind and which other fields apply. A field (`dimension`, `measure`, `measures`, `xAxis`, ...) is a bare row-key string or a { name, ... } object. Options use vertical orientation for every kind: `xAxis`/`xAxisLabel` is the category axis and `yAxisRange*` the value range, even for horizontal variants. Set `granularity` on the chart, never on a field, when the category axis is a time field. `rows` is long format with zone-less ISO time strings.\\nFields by chart kind (every kind also accepts options, title, description, rows, loading, error):\\nbar, barHorizontal: dimension, measures (optional: granularity)\\nbarGrouped, barGroupedHorizontal, barStacked, barStackedHorizontal: xAxis, groupBy, measure (optional: granularity)\\nline: xAxis, measures (optional: granularity)\\nlineGrouped: xAxis, groupBy, measure (optional: granularity)\\nlineWithKpiTabs: xAxis, measures (optional: kpiRows, granularity)\\nlineComparison: xAxis, measures (optional: comparisonRows, comparisonLabel, dateRange, comparisonDateRange, granularity)\\nlineComparisonWithKpiTabs: xAxis, measures (optional: comparisonRows, kpiRows, kpiComparisonRows, comparisonLabel, dateRange, comparisonDateRange, granularity)\\narea: xAxis, measure (optional: groupBy, granularity)\\nbarLine: dimension, barMeasures (optional: lineMeasures, granularity)\\npie, donut: dimension, measure\\ndonutLabel: dimension, measure (optional: innerLabel)\\nscatter: xMeasure, yMeasure, pointDimension (optional: groupByDimension)\\nbubble: xMeasure, yMeasure, bubbleSizeMeasure, pointDimension (optional: groupByDimension)\\nkpi: measure (optional: value)\\nkpiComparison: measure (optional: value, comparisonValue, comparisonRows, comparisonLabel, dateRange, comparisonDateRange)\\ntable: columns\\nheatmap: rowDimension, columnDimension, measure\\npivot: rowDimension, columnDimension, measures (optional: subRowDimension, subRows)\",\n \"properties\": {\n \"chart\": {\n \"type\": \"string\",\n \"enum\": [\n \"bar\",\n \"barHorizontal\",\n \"barGrouped\",\n \"barGroupedHorizontal\",\n \"barStacked\",\n \"barStackedHorizontal\",\n \"line\",\n \"lineGrouped\",\n \"lineWithKpiTabs\",\n \"lineComparison\",\n \"lineComparisonWithKpiTabs\",\n \"area\",\n \"barLine\",\n \"pie\",\n \"donut\",\n \"donutLabel\",\n \"scatter\",\n \"bubble\",\n \"kpi\",\n \"kpiComparison\",\n \"table\",\n \"heatmap\",\n \"pivot\"\n ],\n \"description\": \"Chart kind. Selects which of the other fields apply (see the root description).\"\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"rows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"The data, long format: one row per category (× group) combination. Omit while loading. Time values are zone-less ISO strings — the renderer also accepts `YYYY-MM-DD` and epoch milliseconds and normalizes.\"\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"description\": \"Force the loading state, e.g. while more rows stream in.\"\n },\n \"error\": {\n \"type\": \"string\",\n \"description\": \"Render the error state with this message instead of data.\"\n },\n \"dimension\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"Category dimension.\"\n },\n \"measures\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/FieldRef\"\n }\n }\n ],\n \"description\": \"`bar`, `barHorizontal`: One measure per bar series. `line`: One measure per line. `lineWithKpiTabs`: One measure per KPI tab; each tab plots its measure as the line.\"\n },\n \"granularity\": {\n \"$ref\": \"#/$defs/Granularity\",\n \"description\": \"`bar`, `barHorizontal`: When `dimension` is a time field: its bucket size. `barGrouped`, `barGroupedHorizontal`, `barStacked`, `barStackedHorizontal`, `line`: When `xAxis` is a time field: its bucket size.\"\n },\n \"options\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"showTooltips\": {\n \"type\": \"boolean\"\n },\n \"showValueLabels\": {\n \"type\": \"boolean\"\n },\n \"showLogarithmicScale\": {\n \"type\": \"boolean\"\n },\n \"xAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Category-axis label (vertical orientation; see header).\"\n },\n \"yAxisLabel\": {\n \"type\": \"string\",\n \"description\": \"Value-axis label.\"\n },\n \"yAxisRangeMin\": {\n \"type\": \"number\",\n \"description\": \"Value-axis range.\"\n },\n \"yAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"reverseXAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse the category order.\"\n },\n \"xAxisMaxItems\": {\n \"type\": \"number\",\n \"description\": \"Cap on rendered categories.\"\n },\n \"showLegend\": {\n \"type\": \"boolean\"\n },\n \"maxLegendItems\": {\n \"type\": \"number\"\n },\n \"showTotalLabels\": {\n \"type\": \"boolean\"\n },\n \"showComparisonAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Second x-axis showing the comparison period's dates.\"\n },\n \"showValueLabelsLine\": {\n \"type\": \"boolean\"\n },\n \"yAxisSecondaryLabel\": {\n \"type\": \"string\",\n \"description\": \"Right (line) axis.\"\n },\n \"yAxisSecondaryMin\": {\n \"type\": \"number\"\n },\n \"yAxisSecondaryMax\": {\n \"type\": \"number\"\n },\n \"showValueLabelsAsPercentage\": {\n \"type\": \"boolean\"\n },\n \"showPointLabels\": {\n \"type\": \"boolean\",\n \"description\": \"Label each point with its dimension value.\"\n },\n \"xAxisRangeMin\": {\n \"type\": \"number\"\n },\n \"xAxisRangeMax\": {\n \"type\": \"number\"\n },\n \"pointColor\": {\n \"type\": \"string\",\n \"description\": \"CSS color for ungrouped points.\"\n },\n \"bubbleRadiusMin\": {\n \"type\": \"number\"\n },\n \"bubbleRadiusMax\": {\n \"type\": \"number\"\n },\n \"fontSize\": {\n \"type\": \"number\"\n },\n \"displayNullAs\": {\n \"type\": \"string\"\n },\n \"changeFontSize\": {\n \"type\": \"number\"\n },\n \"displayChangeAsPercentage\": {\n \"type\": \"boolean\"\n },\n \"reversePositiveNegativeColors\": {\n \"type\": \"boolean\",\n \"description\": \"When a decrease is good (costs, churn).\"\n },\n \"percentageDecimalPlaces\": {\n \"type\": \"number\"\n },\n \"showIndex\": {\n \"type\": \"boolean\",\n \"description\": \"Number the rows.\"\n },\n \"showValues\": {\n \"type\": \"boolean\",\n \"description\": \"Print the measure value in each cell.\"\n },\n \"minColor\": {\n \"type\": \"string\",\n \"description\": \"CSS colors for the value scale.\"\n },\n \"midColor\": {\n \"type\": \"string\"\n },\n \"maxColor\": {\n \"type\": \"string\"\n },\n \"minThreshold\": {\n \"type\": \"string\",\n \"description\": \"Values at/below this render as minColor.\"\n },\n \"maxThreshold\": {\n \"type\": \"string\",\n \"description\": \"Values at/above this render as maxColor.\"\n },\n \"columnWidth\": {\n \"type\": \"number\"\n },\n \"firstColumnWidth\": {\n \"type\": \"number\"\n }\n }\n },\n \"xAxis\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"Category axis dimension (renders on y for horizontal variants).\"\n },\n \"groupBy\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"`barGrouped`, `barGroupedHorizontal`, `barStacked`, `barStackedHorizontal`: Dimension that splits each category into grouped/stacked bars. `lineGrouped`: Dimension that splits the measure into one line per value. `area`: Stacking dimension. Omit for a single-series area.\"\n },\n \"measure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"kpiRows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"`lineWithKpiTabs`: One row holding each measure's headline number for the tabs. Derived by summing `rows` when omitted. `lineComparisonWithKpiTabs`: See LineWithKpiTabsSpec.kpiRows; derived from `rows` when omitted.\"\n },\n \"comparisonRows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"`lineComparison`: Rows for the comparison period, same shape as `rows`; aligned by position. `kpiComparison`: Rows for the comparison period, same shape as `rows`.\"\n },\n \"comparisonLabel\": {\n \"type\": \"string\",\n \"description\": \"Label for the comparison, e.g. 'Previous period'.\"\n },\n \"dateRange\": {\n \"$ref\": \"#/$defs/DateRangeSpec\",\n \"description\": \"`lineComparison`: Periods covered; derived from each row set's time extent when omitted. `kpiComparison`: Period the main value covers.\"\n },\n \"comparisonDateRange\": {\n \"$ref\": \"#/$defs/DateRangeSpec\",\n \"description\": \"Period the comparison value covers.\"\n },\n \"kpiComparisonRows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"Headline numbers for the comparison period; derived from `comparisonRows`.\"\n },\n \"barMeasures\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/FieldRef\"\n }\n }\n ],\n \"description\": \"Measures drawn as bars (left axis).\"\n },\n \"lineMeasures\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/FieldRef\"\n }\n }\n ],\n \"description\": \"Measures drawn as lines (right axis).\"\n },\n \"innerLabel\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"type\": \"string\"\n },\n \"measure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"value\": {\n \"type\": [\n \"number\",\n \"string\"\n ]\n }\n },\n \"additionalProperties\": false,\n \"description\": \"The headline number in the donut's center. Omitted fields are derived: `measure` defaults to the main measure, `value` to the sum of the rows.\"\n },\n \"xMeasure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"yMeasure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"pointDimension\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"Dimension identifying each point.\"\n },\n \"groupByDimension\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"Optional dimension that colors points by group.\"\n },\n \"bubbleSizeMeasure\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"value\": {\n \"type\": [\n \"number\",\n \"string\"\n ],\n \"description\": \"`kpi`: Shortcut for `rows: [{ [measure.name]: value }]`. Ignored when `rows` is set. `kpiComparison`: Shortcut for `rows`; see KpiSpec.value.\"\n },\n \"comparisonValue\": {\n \"type\": [\n \"number\",\n \"string\"\n ],\n \"description\": \"The value compared against. Shortcut for `comparisonRows`.\"\n },\n \"columns\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"description\": \"Columns, in display order. `role` disambiguates dimension vs measure.\"\n },\n \"rowDimension\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"columnDimension\": {\n \"$ref\": \"#/$defs/FieldRef\"\n },\n \"subRowDimension\": {\n \"$ref\": \"#/$defs/FieldRef\",\n \"description\": \"Expandable second row level. Requires `subRows`.\"\n },\n \"subRows\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/$defs/SpecRow\"\n },\n \"description\": \"Rows for the sub-row level, long format including the parent row key.\"\n }\n },\n \"required\": [\n \"chart\"\n ],\n \"additionalProperties\": false,\n \"$defs\": {\n \"DateRangeSpec\": {\n \"type\": \"object\",\n \"properties\": {\n \"from\": {\n \"type\": \"string\"\n },\n \"to\": {\n \"type\": \"string\"\n }\n },\n \"additionalProperties\": false,\n \"description\": \"ISO date strings (`YYYY-MM-DD` or full timestamps), no zone suffix.\"\n },\n \"FieldRef\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"$ref\": \"#/$defs/SpecField\"\n }\n ],\n \"description\": \"A field is a bare row-key string or a full descriptor.\"\n },\n \"Granularity\": {\n \"type\": \"string\",\n \"enum\": [\n \"second\",\n \"minute\",\n \"hour\",\n \"day\",\n \"week\",\n \"month\",\n \"quarter\",\n \"year\"\n ]\n },\n \"NativeDataType\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"time\",\n \"boolean\"\n ]\n },\n \"SpecField\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"Row key: values are read from `rows[i][name]`.\"\n },\n \"title\": {\n \"type\": \"string\",\n \"description\": \"Display name. Defaults to `name`.\"\n },\n \"type\": {\n \"$ref\": \"#/$defs/NativeDataType\",\n \"description\": \"Inferred from the row values when omitted.\"\n },\n \"role\": {\n \"type\": \"string\",\n \"enum\": [\n \"dimension\",\n \"measure\"\n ],\n \"description\": \"Only meaningful where a chart takes mixed columns (`table`): whether the field is a category (`dimension`) or a numeric value (`measure`). Inferred from `type`/row values when omitted.\"\n },\n \"format\": {\n \"$ref\": \"#/$defs/SpecFieldFormat\"\n }\n },\n \"required\": [\n \"name\"\n ],\n \"additionalProperties\": false\n },\n \"SpecFieldFormat\": {\n \"type\": \"object\",\n \"properties\": {\n \"prefix\": {\n \"type\": \"string\",\n \"description\": \"Prefix.\"\n },\n \"suffix\": {\n \"type\": \"string\",\n \"description\": \"Suffix.\"\n },\n \"displayName\": {\n \"type\": \"string\",\n \"description\": \"Display name.\"\n },\n \"maxCharacters\": {\n \"type\": \"number\",\n \"description\": \"Maximum characters. Applies to string fields.\"\n },\n \"decimalPlaces\": {\n \"type\": \"number\",\n \"description\": \"Decimal places. Applies to number fields.\"\n },\n \"currency\": {\n \"type\": \"string\",\n \"description\": \"Currency. e.g. EUR. Applies to number fields.\"\n },\n \"abbreviateLargeNumber\": {\n \"type\": \"boolean\",\n \"description\": \"Abbreviate large number. Applies to number fields.\"\n },\n \"color\": {\n \"type\": \"string\",\n \"description\": \"Color.\"\n },\n \"showValueAsPercentage\": {\n \"type\": \"boolean\",\n \"description\": \"Show values as percentage.\"\n },\n \"ignoreEmptyDate\": {\n \"type\": \"boolean\",\n \"description\": \"Ignore empty dates. When enabled, dates with no data will be omitted instead of shown as empty. Applies to time fields.\"\n },\n \"lineColor\": {\n \"type\": \"string\",\n \"description\": \"Line color.\"\n },\n \"dashedLine\": {\n \"type\": \"boolean\",\n \"description\": \"Dashed line.\"\n },\n \"connectGaps\": {\n \"type\": \"boolean\",\n \"description\": \"Connect gaps.\"\n },\n \"fillUnderLine\": {\n \"type\": \"boolean\",\n \"description\": \"Fill under line.\"\n },\n \"useSecondaryAxis\": {\n \"type\": \"boolean\",\n \"description\": \"Assign to secondary axis.\"\n },\n \"previousLineColor\": {\n \"type\": \"string\",\n \"description\": \"Previous line color.\"\n },\n \"lineDashed\": {\n \"type\": \"boolean\",\n \"description\": \"Primary line dashed.\"\n },\n \"previousLineDashed\": {\n \"type\": \"boolean\",\n \"description\": \"Compared line dashed.\"\n },\n \"invertChangeColors\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse positive/negative colors.\"\n },\n \"reverseTrendDirection\": {\n \"type\": \"boolean\",\n \"description\": \"Reverse trend direction. Reverses the up/down trend arrow independently of \\\"Reverse positive/negative colors\\\" above. Existing dashboards keep their current look until this is changed explicitly.\"\n },\n \"displayChangeAsPercentage\": {\n \"type\": \"boolean\",\n \"description\": \"Display change as %.\"\n },\n \"percentageDecimalPlaces\": {\n \"type\": \"number\",\n \"description\": \"Percentage decimal places.\"\n },\n \"columnAggregation\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"sum\",\n \"min\",\n \"max\",\n \"average\"\n ]\n },\n \"description\": \"Show column calculation.\"\n },\n \"rowAggregation\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"sum\",\n \"min\",\n \"max\",\n \"average\"\n ]\n },\n \"description\": \"Show row calculation.\"\n },\n \"showAsPercentage\": {\n \"type\": \"boolean\",\n \"description\": \"Show as percentage. If turned on, other measures may be ignored.\"\n },\n \"width\": {\n \"type\": \"number\",\n \"description\": \"Width. You can input a number in pixels e.g. 400.\"\n },\n \"align\": {\n \"type\": \"string\",\n \"enum\": [\n \"left\",\n \"center\",\n \"right\"\n ],\n \"description\": \"Align.\"\n },\n \"tableCellStyle\": {\n \"type\": \"string\",\n \"enum\": [\n \"Bold\",\n \"Italic\",\n \"Positive vs Negative\"\n ],\n \"description\": \"Table cell style.\"\n },\n \"displayFormat\": {\n \"type\": \"string\",\n \"enum\": [\n \"Markdown\",\n \"Json\"\n ],\n \"description\": \"Display format.\"\n },\n \"displayNullAs\": {\n \"type\": \"string\",\n \"description\": \"Rendered in place of null/undefined values.\"\n }\n },\n \"additionalProperties\": false,\n \"description\": \"Per-field options, applied via the field's `inputs`: formatting (prefix, suffix, decimalPlaces, …) plus chart-specific ones such as a pivot table's columnAggregation/rowAggregation. Time-axis settings live on the chart.\"\n },\n \"SpecRow\": {\n \"type\": \"object\",\n \"additionalProperties\": {}\n }\n }\n};\n","// AI entry point: everything a model-facing integration needs to produce a\n// ChartSpec (src/spec.ts) and have <ChartFromSpec> render it. Nothing here\n// imports React or a provider SDK, so it is safe in a server route.\n\nimport { chartSpecSchema, chartSpecToolSchema } from './spec.schema.generated';\n\nexport { chartSpecSchema, chartSpecToolSchema };\nexport type { ToolInputSchema } from './spec.schema.generated';\n\nconst TOOL_NAME = 'render_chart';\n\nconst TOOL_DESCRIPTION =\n \"Render a chart, KPI or table in the user's app from a JSON spec. Set `chart` to the kind, name the row fields to plot \" +\n '(a bare row-key string such as \"revenue\", or { name, title, format }), and pass the data in `rows` as an array of flat ' +\n 'objects in long format: one row per category and group combination, using only values you were given. Time values must ' +\n 'be zone-less ISO strings such as \"2025-03-01T00:00:00.000\"; set `granularity` when the category axis is time. Format ' +\n \"numbers with a field's `format` ({ prefix, suffix, decimalPlaces }). Options always use vertical orientation: \" +\n '`xAxis`/`xAxisLabel` is the category axis even for horizontal bars. One call renders one chart.';\n\n/**\n * Anthropic Messages API tool definition for rendering a chart. `input_schema`\n * is `chartSpecToolSchema`: the spec flattened to a root object, because the\n * API rejects a top-level anyOf. The tool input is a `ChartSpec`.\n *\n * @example\n * const res = await anthropic.messages.create({\n * model, max_tokens: 4096, system: chartGuidance, messages,\n * tools: [renderChartTool],\n * });\n * const call = res.content.find((block) => block.type === 'tool_use'); // <ChartFromSpec spec={call.input} />\n */\nexport const renderChartTool = {\n name: TOOL_NAME,\n description: TOOL_DESCRIPTION,\n input_schema: chartSpecToolSchema,\n} as const;\n\n/**\n * The same tool as an OpenAI function-calling definition (Chat Completions\n * `tools`). Not `strict`: the spec has free-form `rows` and `format`, which\n * strict mode cannot express.\n *\n * @example\n * const res = await openai.chat.completions.create({\n * model, messages: [{ role: 'system', content: chartGuidance }, ...messages],\n * tools: [renderChartToolOpenAI],\n * });\n * const spec = JSON.parse(res.choices[0].message.tool_calls[0].function.arguments); // <ChartFromSpec spec={spec} />\n */\nexport const renderChartToolOpenAI = {\n type: 'function',\n function: {\n name: TOOL_NAME,\n description: TOOL_DESCRIPTION,\n parameters: chartSpecToolSchema,\n },\n} as const;\n\n/**\n * Model-facing guidance: which chart kind to pick and the data rules. About\n * 3 KB of plain text; append it to a system prompt next to the tool.\n *\n * @example\n * const system = `You are a data analyst.\\n\\n${chartGuidance}`;\n * await anthropic.messages.create({\n * model, max_tokens: 4096, system, messages,\n * tools: [renderChartTool],\n * });\n */\nexport const chartGuidance = `Charts: call ${TOOL_NAME} to show data. One call per chart; pick the kind from the shape of the data.\n\nChoosing \\`chart\\`:\n- bar: one measure (or a few) compared across categories.\n- barHorizontal: the same, when labels are long or there are more than ~8 categories.\n- barGrouped, barGroupedHorizontal: a measure split by a second category (\\`groupBy\\`), parts side by side.\n- barStacked, barStackedHorizontal: the same split stacked, to show how the parts add up to a total.\n- line: a trend over time or another ordered x axis; one line per entry in \\`measures\\`.\n- lineGrouped: one measure drawn as a line per value of \\`groupBy\\`.\n- lineWithKpiTabs: a trend with one KPI tab per measure (the tab shows the measure's total);\n good for dashboards-in-one-chart like \"revenue / orders / signups over time\".\n- lineComparison: this period against a previous one (\\`rows\\` vs \\`comparisonRows\\`, aligned by\n position); set \\`comparisonLabel\\`, e.g. \"Previous period\".\n- lineComparisonWithKpiTabs: the comparison plus KPI tabs; headline numbers are derived from the\n rows unless \\`kpiRows\\`/\\`kpiComparisonRows\\` are given.\n- area: volume over time; add \\`groupBy\\` to stack the parts.\n- barLine: bars (\\`barMeasures\\`) plus lines (\\`lineMeasures\\`) on a second axis, e.g. volume and a rate.\n- pie, donut: only shares of a whole: at most 8 slices, non-negative values. Otherwise use a bar chart.\n- donutLabel: a donut with a headline number in the center (\\`innerLabel\\`: { text, value } — the\n value defaults to the sum of the rows).\n- scatter: the relationship between two measures, one point per \\`pointDimension\\`.\n- bubble: scatter plus a third measure as point size (\\`bubbleSizeMeasure\\`).\n- kpi: one headline number.\n- kpiComparison: a number against another period (\\`value\\`, \\`comparisonValue\\`); set\n \\`options.reversePositiveNegativeColors\\` when lower is better.\n- table: row-level detail or exact values; mixed text and number \\`columns\\`.\n- heatmap: one measure across two categories as colour intensity (weekday by hour).\n- pivot: the same two-way layout with numbers in the cells, several measures and optional sub-rows.\n\nData rules:\n- \\`rows\\` is an array of flat objects in long format: one row per category and group combination.\n Never spread groups across columns; name the group field in \\`groupBy\\` instead.\n- Use only values from the data you were given. Omit \\`rows\\` while data is loading (set \\`loading: true\\`),\n or set \\`error\\` to show a message instead.\n- A field is a row key as a bare string (\"revenue\"), or { name, title?, type?, role?, format? } when it\n needs a display title or formatting. \\`type\\` ('string' | 'number' | 'time' | 'boolean') is inferred from rows.\n- Time values are zone-less ISO strings: \"2025-03-01T00:00:00.000\" (\"2025-03-01\" is also accepted).\n Never add a Z or a UTC offset.\n- When the category axis (\\`dimension\\` or \\`xAxis\\`) is a time field, set \\`granularity\\` on the chart,\n never on the field: second, minute, hour, day, week, month, quarter or year.\n The rows must already be bucketed at that granularity.\n- Format numbers with the field's \\`format\\`: { prefix: \"$\", suffix: \"%\", decimalPlaces: 1 }.\n Also available: displayName, displayNullAs, maxCharacters.\n- Options are always written in vertical orientation, including for horizontal variants:\n \\`options.xAxisLabel\\` labels the category axis; \\`options.yAxisLabel\\`, \\`options.yAxisRangeMin\\`\n and \\`options.yAxisRangeMax\\` the value axis. The renderer swaps them.\n- \\`kpi\\` and \\`kpiComparison\\` accept \\`value\\` (and \\`comparisonValue\\`) instead of \\`rows\\`.\n- In \\`table\\`, set a column's \\`role\\` ('dimension' | 'measure') only when it is ambiguous.\n- Give every chart a short \\`title\\` that says what it shows.`;\n"],"names":[],"mappings":"AAYO,MAAM,kBAAkB;AAAA,EAC7B,WAAW;AAAA,EACX,SAAS;AAAA,EACT,eAAe;AAAA,EACf,SAAS;AAAA,IACP;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,IAEV;AAAA,MACE,QAAQ;AAAA,IAAA;AAAA,EACV;AAAA,EAEF,SAAS;AAAA,IACP,YAAY;AAAA,MACV,QAAQ;AAAA,MACR,wBAAwB;AAAA,MACxB,cAAc;AAAA,QACZ,SAAS;AAAA,UACP,QAAQ;AAAA,UACR,SAAS;AAAA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AA,QAAA;AAAA,QAEjB,kBAAkB;AAAA,UAChB,QAAQ;AAAA,UACR,QAAQ;AAAA,YACN;AAAA,YACA;AAAA,YACA;AAAA,UAAA;AAAA,UAEF,eAAe;AAAA,QAAA;AAAA,QAEjB,iBAAiB;AAAA,UACf,QAAQ;AAAA,UACR,QAAQ;AAAA,YACN;AAAA,YACA;AAAA,UAAA;AAAA,UAEF,eAAe;AAAA,QAAA;AAAA,QAEjB,iBAAiB;AAAA,UACf,QAAQ;AAAA,UACR,eAAe;AAAA,QAAA;AAAA,MACjB;AAAA,MAEF,wBAAwB;AAAA,MACxB,eAAe;AAAA,IAAA;AAAA,IAEjB,WAAW;AAAA,MACT,QAAQ;AAAA,MACR,wBAAwB,CAAA;AAAA,IAAC;AAAA,EAC3B;AAEJ;ACvkFA,MAAM,YAAY;AAElB,MAAM,mBACJ;AAmBK,MAAM,kBAAkB;AAAA,EAC7B,MAAM;AAAA,EACN,aAAa;AAAA,EACb,cAAc;AAChB;AAcO,MAAM,wBAAwB;AAAA,EACnC,MAAM;AAAA,EACN,UAAU;AAAA,IACR,MAAM;AAAA,IACN,aAAa;AAAA,IACb,YAAY;AAAA,EAAA;AAEhB;AAaO,MAAM,gBAAgB,gBAAgB,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
@@ -0,0 +1,120 @@
1
+ import { ComponentProps } from 'react';
2
+ import { KpiChart } from '@embeddable.com/remarkable-ui';
3
+ export { BarChart, BarChartProps, DonutChart, KpiChart, LineChart, LineChartProps, PieChart, PieChartProps, getBarChartOptions, getChartColors, getChartjsAxisOptions, getDonutChartOptions, getLineChartOptions, getPieChartOptions, getStyle, getStyleNumber } from '@embeddable.com/remarkable-ui';
4
+ import { T as Theme } from './chunks/EditorCard.d-CcLiXQ7c.js';
5
+ import { DimensionOrMeasure, DataResponse, Dimension, TimeRange, Granularity, Measure } from './index.js';
6
+ export { C as ChartCard, d as ChartCardHeaderProps, e as ComparisonPeriodOption, E as EditorCard, f as EditorCardProps, g as ThemeFormatter, h as asChartCardHeaderProps, i as defaultComparisonPeriodOptions } from './chunks/EditorCard.d-CcLiXQ7c.js';
7
+ import { ChartData, ChartOptions } from 'chart.js';
8
+ export { default as i18n } from 'i18next';
9
+
10
+ declare const i18nSetup: (theme: Theme) => void;
11
+
12
+ declare const resolveI18nString: (value: string, args?: Record<string, any>) => string;
13
+ declare const resolveI18nProps: <T extends object>(props: T) => T;
14
+
15
+ type GetThemeFormatter = {
16
+ string: (key: string) => string;
17
+ number: (value: number | bigint, options?: Intl.NumberFormatOptions) => string;
18
+ dateTime: (value: Date, options?: Intl.DateTimeFormatOptions) => string;
19
+ dimensionOrMeasureTitle: (key: DimensionOrMeasure) => string;
20
+ data: (key: DimensionOrMeasure, value: any) => string;
21
+ };
22
+ declare const getThemeFormatter: (theme: Theme) => GetThemeFormatter;
23
+
24
+ type UseFillGapsProps = {
25
+ results: DataResponse | undefined;
26
+ dimension: Dimension;
27
+ orderDirection?: 'asc' | 'desc';
28
+ externalDateBounds?: TimeRange;
29
+ };
30
+ declare function useFillGaps(props: UseFillGapsProps): DataResponse;
31
+
32
+ declare const getDimensionWithGranularity: (dimension: Dimension, granularity?: Granularity) => Dimension;
33
+
34
+ /**
35
+ * Constructs a TimeRange covering the full granularity bucket for a clicked time-axis bar.
36
+ * e.g. granularity=month, value="2024-01-01" → { from: 2024-01-01T00:00:00Z, to: 2024-01-31T23:59:59Z }
37
+ */
38
+ declare const getTimeRangeFromDimensionValue: ({ value, stateGranularity, dimension, }: {
39
+ value?: string;
40
+ stateGranularity?: Granularity;
41
+ dimension?: Dimension;
42
+ }) => TimeRange;
43
+
44
+ declare const getClientContextTimezone: (tz?: string) => string | undefined;
45
+
46
+ declare const getComparisonPeriodDateRange: (primaryDateRange: TimeRange, comparisonPeriod: string | undefined, theme: Theme) => TimeRange;
47
+
48
+ declare const groupTailAsOther: (data: DataResponse["data"], dimension: Dimension, measures: Measure[], maxItems?: number) => {
49
+ [attr: string]: any;
50
+ }[];
51
+
52
+ type GetDimensionMeasureColorProps = {
53
+ dimensionOrMeasure: Dimension | Measure;
54
+ theme: Theme;
55
+ value: string;
56
+ color: 'background' | 'border';
57
+ index: number;
58
+ chartColors: string[];
59
+ usedColors?: Set<string>;
60
+ };
61
+ declare const getDimensionMeasureColor: ({ dimensionOrMeasure, theme, color, value, index, chartColors, usedColors, }: GetDimensionMeasureColorProps) => string;
62
+
63
+ declare const getBarStackedChartProData: (props: {
64
+ data: DataResponse["data"];
65
+ dimension: Dimension;
66
+ groupDimension: Dimension;
67
+ measure: Measure;
68
+ axisOrder?: string[];
69
+ }, theme: Theme) => ChartData<"bar">;
70
+ declare const getBarChartProData: (props: {
71
+ data: DataResponse["data"];
72
+ dimension: Dimension;
73
+ measures: Measure[];
74
+ maxItems?: number;
75
+ }, theme?: Theme) => ChartData<"bar">;
76
+ declare const getBarChartProOptions: (options: {
77
+ measures: Measure[];
78
+ dimension: Dimension;
79
+ horizontal: boolean;
80
+ data: ChartData<"bar">;
81
+ }, theme: Theme) => Partial<ChartOptions<"bar">>;
82
+ declare const getBarStackedChartProOptions: (options: {
83
+ measures: Measure[];
84
+ dimension: Dimension;
85
+ groupDimension: Dimension;
86
+ horizontal: boolean;
87
+ data: ChartData<"bar">;
88
+ }, theme: Theme) => Partial<ChartOptions<"bar">>;
89
+
90
+ declare const getLineChartProData: (props: {
91
+ data: DataResponse["data"];
92
+ dimension: Dimension;
93
+ measures: Measure[];
94
+ hasMinMaxYAxisRange: boolean;
95
+ maxItems?: number;
96
+ }, theme: Theme) => ChartData<"line">;
97
+ declare const getLineChartProOptions: (options: {
98
+ dimension: Dimension;
99
+ measures: Measure[];
100
+ data: ChartData<"line">;
101
+ }, theme: Theme) => ChartOptions<"line">;
102
+
103
+ declare const getPieChartProData: (props: {
104
+ data: DataResponse["data"];
105
+ dimension: Dimension;
106
+ measure: Measure;
107
+ maxLegendItems?: number;
108
+ }, theme?: Theme) => ChartData<"pie">;
109
+ declare const getPieChartProOptions: (props: {
110
+ measure: Measure;
111
+ dimension: Dimension;
112
+ }, theme?: Theme) => Partial<ChartOptions<"pie">>;
113
+
114
+ /** The resolved theme from the nearest <ChartsProvider>. */
115
+ declare const useChartsTheme: () => Theme;
116
+
117
+ type KpiChartProps = ComponentProps<typeof KpiChart>;
118
+
119
+ export { Theme, getBarChartProData, getBarChartProOptions, getBarStackedChartProData, getBarStackedChartProOptions, getClientContextTimezone, getComparisonPeriodDateRange, getDimensionMeasureColor, getDimensionWithGranularity, getLineChartProData, getLineChartProOptions, getPieChartProData, getPieChartProOptions, getThemeFormatter, getTimeRangeFromDimensionValue, groupTailAsOther, i18nSetup, resolveI18nProps, resolveI18nString, useChartsTheme, useFillGaps };
120
+ export type { GetDimensionMeasureColorProps, KpiChartProps };
package/dist/build.js ADDED
@@ -0,0 +1,56 @@
1
+ import './styles.js';
2
+ import { u as useTheme } from "./chunks/pies.utils-CneQQ7wE.js";
3
+ import { B, C, D, E, K, L, P, a, d, g, b, c, e, f, h, i, j, k, l, m, n, o, p, q, r, s, t, v, w, x, y, z, A, F, G } from "./chunks/pies.utils-CneQQ7wE.js";
4
+ import { default as default2 } from "i18next";
5
+ const getDimensionWithGranularity = (dimension, granularity) => {
6
+ const currentGranularity = granularity ?? dimension.inputs?.granularity;
7
+ return {
8
+ ...dimension,
9
+ inputs: {
10
+ ...dimension.inputs,
11
+ granularity: currentGranularity
12
+ }
13
+ };
14
+ };
15
+ const useChartsTheme = () => useTheme();
16
+ export {
17
+ B as BarChart,
18
+ C as ChartCard,
19
+ D as DonutChart,
20
+ E as EditorCard,
21
+ K as KpiChart,
22
+ L as LineChart,
23
+ P as PieChart,
24
+ a as asChartCardHeaderProps,
25
+ d as defaultComparisonPeriodOptions,
26
+ g as getBarChartOptions,
27
+ b as getBarChartProData,
28
+ c as getBarChartProOptions,
29
+ e as getBarStackedChartProData,
30
+ f as getBarStackedChartProOptions,
31
+ h as getChartColors,
32
+ i as getChartjsAxisOptions,
33
+ j as getClientContextTimezone,
34
+ k as getComparisonPeriodDateRange,
35
+ l as getDimensionMeasureColor,
36
+ getDimensionWithGranularity,
37
+ m as getDonutChartOptions,
38
+ n as getLineChartOptions,
39
+ o as getLineChartProData,
40
+ p as getLineChartProOptions,
41
+ q as getPieChartOptions,
42
+ r as getPieChartProData,
43
+ s as getPieChartProOptions,
44
+ t as getStyle,
45
+ v as getStyleNumber,
46
+ w as getThemeFormatter,
47
+ x as getTimeRangeFromDimensionValue,
48
+ y as groupTailAsOther,
49
+ default2 as i18n,
50
+ z as i18nSetup,
51
+ A as resolveI18nProps,
52
+ F as resolveI18nString,
53
+ useChartsTheme,
54
+ G as useFillGaps
55
+ };
56
+ //# sourceMappingURL=build.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.js","sources":["../src/generated/components/charts/utils/granularity.utils.ts","../src/build/index.ts"],"sourcesContent":["import { Dimension, Granularity } from '../../../../runtime/core';\n\nexport const getDimensionWithGranularity = (\n dimension: Dimension,\n granularity?: Granularity,\n): Dimension => {\n const currentGranularity = granularity ?? dimension.inputs?.granularity;\n\n return {\n ...dimension,\n inputs: {\n ...dimension.inputs,\n granularity: currentGranularity,\n },\n };\n};\n","// Build entry point: the toolkit the built-in charts are made from, for\n// building your own chart that formats, colours, fills gaps and handles\n// loading/empty/error exactly like them. Render inside <ChartsProvider>.\n//\n// Names match remarkable-pro / remarkable-ui so their docs and the\n// build-component skill carry over. A `…Pro…` builder is the value-formatting\n// overlay; merge it onto the matching remarkable-ui `get…ChartOptions` base,\n// never use it alone (see the \"Build your own chart\" docs).\n\nimport type { ComponentProps } from 'react';\nimport type { KpiChart } from '@embeddable.com/remarkable-ui';\nimport { useTheme } from '../runtime/react';\nimport type { Theme } from '../generated/theme/theme.types';\n\n/** The resolved theme from the nearest <ChartsProvider>. */\nexport const useChartsTheme = (): Theme => useTheme() as Theme;\nexport type { Theme };\n\n// Theme: i18n and value formatting\nexport { i18nSetup, i18n } from '../generated/theme/i18n/i18n';\nexport { resolveI18nProps, resolveI18nString } from '../generated/components/component.utils';\nexport { getThemeFormatter } from '../generated/theme/formatter/formatter.utils';\nexport type { ThemeFormatter } from '../generated/theme/formatter/formatter.types';\n\n// Data: time series and comparison periods\nexport { useFillGaps } from '../generated/components/charts/charts.fillGaps.hooks';\nexport { getDimensionWithGranularity } from '../generated/components/charts/utils/granularity.utils';\nexport { getTimeRangeFromDimensionValue } from '../generated/components/utils/dimension.utils';\nexport { getClientContextTimezone } from '../generated/theme/utils/clientContext.utils';\nexport {\n defaultComparisonPeriodOptions,\n type ComparisonPeriodOption,\n} from '../generated/theme/defaults/defaults.ComparisonPeriods.constants';\nexport { getComparisonPeriodDateRange } from '../generated/components/utils/timeRange.utils';\nexport { groupTailAsOther } from '../generated/components/charts/charts.utils';\n\n// Colour and theme tokens\nexport {\n getDimensionMeasureColor,\n type GetDimensionMeasureColorProps,\n} from '../generated/theme/styles/styles.utils';\nexport { getChartColors, getStyle, getStyleNumber } from '@embeddable.com/remarkable-ui';\n\n// Card chrome: header, loading, empty and error states, download menu\nexport {\n ChartCard,\n asChartCardHeaderProps,\n type ChartCardHeaderProps,\n} from '../generated/components/charts/shared/ChartCard/ChartCard';\nexport { EditorCard, type EditorCardProps } from '../generated/components/editors/shared/EditorCard/EditorCard';\n\n// Chart.js primitives and their themed option bases (remarkable-ui)\nexport {\n BarChart,\n type BarChartProps,\n LineChart,\n type LineChartProps,\n PieChart,\n type PieChartProps,\n DonutChart,\n KpiChart,\n getBarChartOptions,\n getLineChartOptions,\n getPieChartOptions,\n getDonutChartOptions,\n getChartjsAxisOptions,\n} from '@embeddable.com/remarkable-ui';\nexport type KpiChartProps = ComponentProps<typeof KpiChart>;\n\n// Data and option builders from dimensions/measures (remarkable-pro)\nexport {\n getBarChartProData,\n getBarChartProOptions,\n getBarStackedChartProData,\n getBarStackedChartProOptions,\n} from '../generated/components/charts/bars/bars.utils';\nexport {\n getLineChartProData,\n getLineChartProOptions,\n} from '../generated/components/charts/lines/LineChartDefaultPro/LineChartDefaultPro.utils';\nexport { getPieChartProData, getPieChartProOptions } from '../generated/components/charts/pies/pies.utils';\n"],"names":[],"mappings":";;;AAEO,MAAM,8BAA8B,CACzC,WACA,gBACc;AACd,QAAM,qBAAqB,eAAe,UAAU,QAAQ;AAE5D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ;AAAA,MACN,GAAG,UAAU;AAAA,MACb,aAAa;AAAA,IAAA;AAAA,EACf;AAEJ;ACAO,MAAM,iBAAiB,MAAa,SAAA;"}