Skip to content

histogram operations

5 min read · Updated 29 Oct 2026

Reference for @astrato-io/visualizations@0.6.5.

All visualization types

Use each schema below for the request’s payload, not for the whole operation request. Names and payloads are specific to this visualization type. An operation can still require particular fields or chart state; see its description.

Add dimension

Add a new dimension to the chart

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Engine key of the field to be added as a dimension, eg. \"[Cars].[Horsepower]\""
}
},
"required": ["key"],
"additionalProperties": false,
"title": "Add dimension schema"
}

Add measure axis band

Add a shaded band on the primary measure axis between two measure values

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"start": {
"type": "number",
"description": "Measure axis value where the band starts"
},
"end": {
"type": "number",
"description": "Measure axis value where the band ends"
},
"color": {
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
"label": {
"description": "Text drawn inside the band",
"type": "string"
}
},
"required": ["start", "end"],
"additionalProperties": false,
"title": "Add measure axis band schema"
}

Duplicate dimension

Create a copy of an existing dimension

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the dimension to be duplicated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the dimension to be duplicated"
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
"additionalProperties": false,
"title": "Duplicate dimension schema"
}

Remove dimension

Remove a dimension from the chart

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the dimension to be removed"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the dimension to be removed"
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
"additionalProperties": false,
"title": "Remove dimension schema"
}

Remove measure axis band

Remove one shaded band from the primary measure axis by its position

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Zero-based position of the band to remove"
}
},
"required": ["index"],
"additionalProperties": false,
"title": "Remove measure axis band schema"
}

Animations

Turn the chart animations on or off. They are on by default; the host can still disable them regardless of this setting

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"description": "Whether the chart animates when it first renders and when its data changes"
}
},
"required": ["enabled"],
"additionalProperties": false,
"title": "Set animation enabled schema"
}

Axis label color

Change the color of axis value labels

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"labelColor": {
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
]
},
"axisName": {
"type": "string",
"enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
}
},
"required": ["axisName"],
"additionalProperties": false,
"title": "Axis label color schema"
}

Axis line color

Change the color of axis lines

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"lineColor": {
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
]
},
"axisName": {
"type": "string",
"enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
}
},
"required": ["axisName"],
"additionalProperties": false,
"title": "Axis line color schema"
}

Axis range maximum

Set the maximum of a measure axis. Applies only when the axis range option is minmax or max, e.g. to give several charts the same scale.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"axisName": {
"type": "string",
"enum": ["primaryMeasure"]
},
"maxValue": {
"type": "number"
}
},
"required": ["axisName", "maxValue"],
"additionalProperties": false,
"title": "Axis range max schema"
}

Axis range minimum

Set the minimum of a measure axis. Applies only when the axis range option is minmax or min, e.g. to give several charts the same scale.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"axisName": {
"type": "string",
"enum": ["primaryMeasure"]
},
"minValue": {
"type": "number"
}
},
"required": ["axisName", "minValue"],
"additionalProperties": false,
"title": "Axis range min schema"
}

Axis range

Choose how a measure axis range is set: auto fits the data, minmax fixes both ends, min or max fixes one end. Fixed ends take their values from setAxisRangeMin and setAxisRangeMax.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"axisName": {
"type": "string",
"enum": ["primaryMeasure"]
},
"axisRangeOption": {
"type": "string",
"enum": ["auto", "minmax", "max", "min"]
}
},
"required": ["axisName", "axisRangeOption"],
"additionalProperties": false,
"title": "Axis range option schema"
}

Axis starts at zero

Make an auto-ranged measure axis always include zero. Applies only when the axis range option is auto.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"axisName": {
"type": "string",
"enum": ["primaryMeasure"]
},
"startsAtZero": {
"type": "boolean"
}
},
"required": ["axisName", "startsAtZero"],
"additionalProperties": false,
"title": "Axis starts at zero schema"
}

Axis tick color

Change the color of axis tick marks

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"tickColor": {
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
]
},
"axisName": {
"type": "string",
"enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
}
},
"required": ["axisName"],
"additionalProperties": false,
"title": "Axis tick color schema"
}

Axis title

Set a custom title for an axis

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"axisTitle": {
"type": "string"
},
"axisName": {
"type": "string",
"enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
}
},
"required": ["axisName"],
"additionalProperties": false,
"title": "Axis title schema"
}

Axis title color

Change the color of axis titles

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"titleColor": {
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
]
},
"axisName": {
"type": "string",
"enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
}
},
"required": ["axisName"],
"additionalProperties": false,
"title": "Axis title color schema"
}

Coloring type

Set how colors are applied to the chart

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "string",
"enum": ["single", "categorical", "gradient", "perEachMeasure", "perEachDimension"],
"title": "Coloring type schema"
}

Dimension format string

Set the custom display format string for a dimension. This changes label formatting only and does not change temporal grouping.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the dimension to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the dimension to be updated"
},
"formatString": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
"additionalProperties": false,
"title": "Dimension format string schema"
}

Dimension format type

Set the display format type used by a dimension. This changes label formatting only and does not change temporal grouping.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the dimension to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the dimension to be updated"
},
"formatType": {
"anyOf": [
{
"type": "string",
"enum": [
"custom",
"inherit",
"none",
"defaultNumber",
"defaultMoney",
"numberNoDecimal",
"number1Decimal",
"number2Decimal",
"abbreviationAuto",
"abbreviationNoDecimal",
"abbreviation1Decimal",
"abbreviation2Decimal",
"percentageNoDecimal",
"percentage1Decimal",
"percentage2Decimal",
"money0Decimal",
"money2Decimal",
"durationDays",
"durationHours",
"durationMinutes",
"durationSeconds"
]
},
{
"type": "string",
"enum": [
"defaultDate",
"defaultDatetime",
"defaultTime",
"ddmmyyyy",
"ddmmyyyy2",
"ddmmyyyy3",
"yyyymmdd",
"mmddyyyy",
"mmddyyyy2",
"ddmmmmyyyy",
"ddmmmyyyy",
"ddmmmyy",
"mmmmddyyyy",
"yyyy",
"yy",
"mmmyyyy",
"yyyymmm",
"yyyymmmm",
"mmyyyy",
"yyyymm",
"mmmmyyyy",
"yyyywn",
"wnyyyy",
"yywn",
"yyyyq",
"qyyyy",
"yyyymmddhhmmss",
"yyyymmddhmmss",
"yyyymmddhhmm",
"yyyymmddhh",
"yyyymmddhmm",
"yyyymmddh",
"ddmmmyyyyhhmmss",
"ddmmmyyyyhmmss",
"ddmmmyyyyhhmm",
"ddmmmyyyyhmm",
"ddmmmyyyyh",
"hhmmss",
"hhmm",
"hmm",
"h",
"hh",
"hmmss",
"month",
"month2",
"monthn",
"month3",
"quarter",
"quarter2",
"week1",
"week2",
"week3",
"day",
"dayOfWeek",
"hhn",
"hn"
]
}
]
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "formatType"],
"additionalProperties": false,
"title": "Dimension format type schema"
}

Dimension temporal grouping

Set the temporal grouping of a date dimension. Use mode “level” with dateLevel for year-aware buckets such as month-over-time, mode “part” with datePart for date parts such as month-of-year, or mode “none” to clear temporal grouping.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"oneOf": [
{
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the dimension to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the dimension to be updated"
},
"mode": {
"type": "string",
"const": "none"
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "mode"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the dimension to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the dimension to be updated"
},
"mode": {
"type": "string",
"const": "level"
},
"dateLevel": {
"type": "string",
"enum": [
"year",
"year-end",
"quarter",
"quarter-end",
"month",
"month-end",
"week",
"week-end",
"day",
"hour",
"minute",
"second"
]
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "mode", "dateLevel"],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the dimension to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the dimension to be updated"
},
"mode": {
"type": "string",
"const": "part"
},
"datePart": {
"type": "string",
"enum": [
"year",
"month",
"day",
"dayofweekiso",
"dayofyear",
"weekiso",
"quarter",
"yearofweekiso",
"hour",
"minute",
"second"
]
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "mode", "datePart"],
"additionalProperties": false
}
],
"title": "Dimension temporal grouping schema"
}

Enable continuous axis

Use continuous scale for numeric or date values on axis

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"continuousAxis": {
"type": "boolean"
}
},
"additionalProperties": false,
"title": "Enable continuous axis schema"
}

Invert axis

Reverse the direction of an axis. axisName defaults to the dimension axis; pass a measure axis to flip its value scale, e.g. to put rank 1 at the top.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"invertAxis": {
"type": "boolean"
},
"axisName": {
"type": "string",
"enum": ["dimension", "primaryMeasure"]
}
},
"required": ["invertAxis"],
"additionalProperties": false,
"title": "Invert axis schema"
}

Axis label overlap

Control how axis labels behave when they overlap

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"labelOverlap": {
"type": "string",
"enum": ["auto", "show-last"]
}
},
"additionalProperties": false,
"title": "Label overlap schema"
}

Legend enabled

Show or hide the chart legend

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "boolean",
"description": "Enable legend",
"title": "Legend enabled schema"
}

Legend label color

Change the color of legend text labels

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"anyOf": [
{
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
{
"type": "null"
}
],
"description": "Legend item label font color (hexadecimal color code)",
"title": "Legend item label fill schema"
}

Legend label font size

Adjust the font size of legend labels

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "number",
"title": "Legend item label font size schema"
}

Enable legend label characters limit

Enable or disable character limit for legend labels

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Limit characters by maxGlyphCount",
"title": "Legend item label limit characters schema",
"type": "boolean"
}

Legend label characters limit

Set the maximum number of characters shown in legend labels

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Maximum number of glyphs in the legend item label",
"title": "Legend item label max glyph count schema",
"type": ["number", "null"]
}

Legend position

Change where the legend appears on the chart

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "string",
"enum": ["left", "right", "top", "bottom"],
"description": "Legend position",
"title": "Legend position schema"
}

Legend title

Set a custom title for the legend

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Legend title text",
"title": "Legend title schema",
"type": ["string", "null"]
}

Measure axis bands

Replace all shaded bands on the primary measure axis. Each band fills the plot between two measure values

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"bands": {
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "number",
"description": "Measure axis value where the band starts"
},
"end": {
"type": "number",
"description": "Measure axis value where the band ends"
},
"color": {
"description": "Band fill as #RRGGBB or #RRGGBBAA; defaults to a light grey when omitted",
"type": "string",
"pattern": "^#([0-9a-fA-F]{6}|[0-9a-fA-F]{8})$"
},
"label": {
"description": "Text drawn inside the band",
"type": "string"
}
},
"required": ["start", "end"],
"additionalProperties": false
},
"description": "Bands to draw, in order; an empty array removes all bands"
}
},
"required": ["bands"],
"additionalProperties": false,
"title": "Set measure axis bands schema"
}

Measure currency

Set the currency symbol used by a measure formatter

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the measure to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the measure to be updated"
},
"currency": {
"type": "string"
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
"additionalProperties": false,
"title": "Measure currency schema"
}

Measure currency is prefix

Set whether measure currency symbol is prefixed

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the measure to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the measure to be updated"
},
"currencyIsPrefix": {
"type": "boolean"
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
"additionalProperties": false,
"title": "Measure currency is prefix schema"
}

Measure format string

Set the custom format string for a measure

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the measure to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the measure to be updated"
},
"formatString": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
"additionalProperties": false,
"title": "Measure format string schema"
}

Measure format type

Set the format type used by a measure

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the measure to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the measure to be updated"
},
"formatType": {
"anyOf": [
{
"type": "string",
"enum": [
"custom",
"inherit",
"none",
"defaultNumber",
"defaultMoney",
"numberNoDecimal",
"number1Decimal",
"number2Decimal",
"abbreviationAuto",
"abbreviationNoDecimal",
"abbreviation1Decimal",
"abbreviation2Decimal",
"percentageNoDecimal",
"percentage1Decimal",
"percentage2Decimal",
"money0Decimal",
"money2Decimal",
"durationDays",
"durationHours",
"durationMinutes",
"durationSeconds"
]
},
{
"type": "string",
"enum": [
"defaultDate",
"defaultDatetime",
"defaultTime",
"ddmmyyyy",
"ddmmyyyy2",
"ddmmyyyy3",
"yyyymmdd",
"mmddyyyy",
"mmddyyyy2",
"ddmmmmyyyy",
"ddmmmyyyy",
"ddmmmyy",
"mmmmddyyyy",
"yyyy",
"yy",
"mmmyyyy",
"yyyymmm",
"yyyymmmm",
"mmyyyy",
"yyyymm",
"mmmmyyyy",
"yyyywn",
"wnyyyy",
"yywn",
"yyyyq",
"qyyyy",
"yyyymmddhhmmss",
"yyyymmddhmmss",
"yyyymmddhhmm",
"yyyymmddhh",
"yyyymmddhmm",
"yyyymmddh",
"ddmmmyyyyhhmmss",
"ddmmmyyyyhmmss",
"ddmmmyyyyhhmm",
"ddmmmyyyyhmm",
"ddmmmyyyyh",
"hhmmss",
"hhmm",
"hmm",
"h",
"hh",
"hmmss",
"month",
"month2",
"monthn",
"month3",
"quarter",
"quarter2",
"week1",
"week2",
"week3",
"day",
"dayOfWeek",
"hhn",
"hn"
]
}
]
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "formatType"],
"additionalProperties": false,
"title": "Measure format type schema"
}

Measure negative type

Set how negative values are displayed for a measure formatter

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the measure to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the measure to be updated"
},
"negativeType": {
"type": "string",
"enum": ["symbol", "parenthesis"]
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature"],
"additionalProperties": false,
"title": "Measure negative type schema"
}

Orientation

Set the orientation of the histogram chart

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Histogram chart orientation schema",
"type": "string",
"enum": ["horizontal", "vertical"]
}

Show axis labels

Show or hide value labels on chart axes

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"showLabels": {
"type": "boolean"
},
"axisName": {
"type": "string",
"enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
}
},
"required": ["axisName"],
"additionalProperties": false,
"title": "Axis labels schema"
}

Show axis line

Show or hide the axis lines on the chart

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"showAxisLine": {
"type": "boolean"
},
"axisName": {
"type": "string",
"enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
}
},
"required": ["axisName"],
"additionalProperties": false,
"title": "Axis line schema"
}

Show axis ticks

Show or hide tick marks on chart axes

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"showAxisTicks": {
"type": "boolean"
},
"axisName": {
"type": "string",
"enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
}
},
"required": ["axisName"],
"additionalProperties": false,
"title": "Axis ticks schema"
}

Show axis title

Show or hide axis titles on the chart

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"showAxisName": {
"type": "boolean"
},
"axisName": {
"type": "string",
"enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
}
},
"required": ["axisName"],
"additionalProperties": false,
"title": "Axis title schema"
}

Show axis tooltip

Show or hide tooltips when hovering over axis values

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"showAxisTooltip": {
"type": "boolean"
},
"axisName": {
"type": "string",
"enum": ["primaryMeasure", "secondaryMeasure", "dimension"]
}
},
"required": ["axisName"],
"additionalProperties": false,
"title": "Show axis tooltip schema"
}

Sorting direction

Set sorting direction for all matching sortable items by name

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"sortDirection": {
"type": "string",
"enum": ["ascending", "descending"]
}
},
"required": ["name", "sortDirection"],
"additionalProperties": false,
"title": "Sorting direction by name schema"
}

Sorting enabled

Enable or disable sorting for all matching sortable items by name

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"enabled": {
"type": "boolean"
}
},
"required": ["name"],
"additionalProperties": false,
"title": "Sorting enabled by name schema"
}

Set static filter group

Replace all static filters with a nested AND/OR filter group.

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "Replace all static filters with this nested AND/OR filter group.",
"title": "Set static filter group schema",
"$ref": "#/$defs/__schema0",
"$defs": {
"__schema0": {
"type": "object",
"properties": {
"operator": {
"type": "string",
"enum": ["and", "or"]
},
"filters": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"properties": {
"fieldKey": {
"type": "string",
"description": "Exact key from the visualization available data response, eg. \"[Cars].[Horsepower]\". Do not use the visible field label."
},
"operator": {
"anyOf": [
{
"type": "string",
"enum": [
"equals",
"doesNotEqual",
"greaterThan",
"lessThan",
"greaterThanOrEqualTo",
"lessThanOrEqualTo",
"isBetween",
"isNotBetween",
"isNull",
"notNull",
"contains",
"excludes",
"like",
"notLike",
"startsWith",
"endsWith",
"predefined_date_range",
"previous",
"current",
"before",
"after",
"inList",
"excludedFromList",
"divider"
]
},
{
"type": "string",
"enum": [
"ytd",
"mtd",
"qtd",
"wtd",
"pytd",
"pmtd",
"pqtd",
"pwtd",
"l12m",
"l90d",
"l30d",
"l7d",
"cy",
"cq",
"cm",
"py",
"pm",
"pq",
"pw",
"today",
"yesterday",
"mindate",
"maxdate"
]
}
]
},
"values": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
},
"valueFrom": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
},
"valueTo": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
},
"secondValue": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "variable"
},
"variableName": {
"type": "string"
}
},
"required": ["type", "variableName"],
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
"dateFilter": {
"anyOf": [
{
"type": "string",
"enum": [
"ytd",
"mtd",
"qtd",
"wtd",
"pytd",
"pmtd",
"pqtd",
"pwtd",
"l12m",
"l90d",
"l30d",
"l7d",
"cy",
"cq",
"cm",
"py",
"pm",
"pq",
"pw",
"today",
"yesterday",
"mindate",
"maxdate"
]
},
{
"type": "null"
}
]
}
},
"required": ["fieldKey", "operator", "values"],
"additionalProperties": false
},
{
"$ref": "#/$defs/__schema0"
}
]
}
}
},
"required": ["operator", "filters"],
"additionalProperties": false
}
}
}

Toggle dimension

Enable or disable a dimension in the chart

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the dimension to be toggled"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the dimension to be toggled"
},
"enabled": {
"type": "boolean",
"description": "Whether the dimension should be enabled or disabled"
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "enabled"],
"additionalProperties": false,
"title": "Toggle dimension schema"
}

Toggle dimension by name

Enable, disable, or toggle a dimension by its name

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"operation": {
"type": "string",
"enum": ["enable", "disable", "toggle"]
}
},
"required": ["name", "operation"],
"additionalProperties": false,
"title": "Toggle dimension by name schema"
}

Update dimension

Modify properties of an existing dimension

Payload schema

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"dataItemInternalKey": {
"type": "string",
"description": "Internal key of the data item of the dimension to be updated"
},
"dataItemUniqueSignature": {
"type": "string",
"description": "Unique signature of the data item of the dimension to be updated"
},
"changes": {
"type": "object",
"properties": {
"customLabel": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"value": {
"type": "string"
}
},
"required": ["enabled"],
"additionalProperties": false
},
"showNullValues": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"required": ["dataItemInternalKey", "dataItemUniqueSignature", "changes"],
"additionalProperties": false,
"title": "Update dimension schema"
}