Manta Developers
GitHub
Menu

@manta-eu/react/chart-schemas

Reference for @manta-eu/react/chart-schemas as it is on main.

Type Aliases

Annotation

Annotation = z.infer<typeof annotationSchema>


AnnotationStat

AnnotationStat = z.infer<typeof annotationStatSchema>


AnnotationTone

AnnotationTone = z.infer<typeof annotationToneSchema>


AreaChartData

AreaChartData = SeriesChartData<z.infer<typeof areaChartFieldsSchema>, { x: string | number; y: number; }>


BarChartData

BarChartData = SeriesChartData<z.infer<typeof barChartFieldsSchema>, { name: string; value: number; }>


ChartData

ChartData = z.infer<typeof chartSchema>


ChartSeries

ChartSeries = z.infer<typeof chartSeriesSchema>


ChartType

ChartType = ChartData["type"]


ComposedChartData

ComposedChartData = SeriesChartData<z.infer<typeof composedChartFieldsSchema>, { barValue: number; lineValue: number; name: string; }>


ComposedChartSeries

ComposedChartSeries = z.infer<typeof composedChartSeriesSchema>


GenerateChartInput

GenerateChartInput = z.infer<typeof generateChartInputSchema>


LineChartData

LineChartData = SeriesChartData<z.infer<typeof lineChartFieldsSchema>, { x: string | number; y: number; }>


PieChartData

PieChartData = z.infer<typeof pieChartSchema>


RadarChartData

RadarChartData = z.infer<typeof radarChartSchema>


ScatterChartData

ScatterChartData = z.infer<typeof scatterChartSchema>


SeriesChartData

SeriesChartData<Chart, Point> = Omit<Chart, "data" | "series"> & object | Chart & object

Type Parameters

Chart

Chart extends object

Point

Point

Variables

annotationSchema

const annotationSchema: ZodDiscriminatedUnion<[ZodObject<{ axis: ZodEnum<{ x: "x"; y: "y"; }>; color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-line">; label: ZodOptional<ZodString>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: "danger"; info: "info"; neutral: "neutral"; success: "success"; warning: "warning"; }>>; value: ZodUnion<readonly [ZodString, ZodNumber]>; }, $strip>, ZodObject<{ axis: ZodOptional<ZodEnum<{ x: "x"; y: "y"; }>>; color: ZodOptional<ZodString>; kind: ZodLiteral<"stat-line">; label: ZodOptional<ZodString>; series: ZodOptional<ZodUnion<readonly [ZodEnum<{ bar: "bar"; line: "line"; }>, ZodString]>>; stat: ZodEnum<{ average: "average"; max: "max"; median: "median"; min: "min"; p90: "p90"; }>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: "danger"; info: "info"; neutral: "neutral"; success: "success"; warning: "warning"; }>>; }, $strip>, ZodObject<{ axis: ZodEnum<{ x: "x"; y: "y"; }>; color: ZodOptional<ZodString>; from: ZodUnion<readonly [ZodString, ZodNumber]>; kind: ZodLiteral<"reference-area">; label: ZodOptional<ZodString>; to: ZodUnion<readonly [ZodString, ZodNumber]>; tone: ZodOptional<ZodEnum<{ danger: "danger"; info: "info"; neutral: "neutral"; success: "success"; warning: "warning"; }>>; }, $strip>, ZodObject<{ color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-point">; label: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: "danger"; info: "info"; neutral: "neutral"; success: "success"; warning: "warning"; }>>; x: ZodUnion<readonly [ZodString, ZodNumber]>; y: ZodNumber; }, $strip>], "kind">


annotationSeriesValues

const annotationSeriesValues: readonly ["bar", "line"]


annotationStats

const annotationStats: readonly ["average", "median", "min", "max", "p90"]


annotationStatSchema

const annotationStatSchema: ZodEnum<{ average: "average"; max: "max"; median: "median"; min: "min"; p90: "p90"; }>


annotationTones

const annotationTones: readonly ["danger", "warning", "success", "info", "neutral"]


annotationToneSchema

const annotationToneSchema: ZodEnum<{ danger: "danger"; info: "info"; neutral: "neutral"; success: "success"; warning: "warning"; }>


areaChartFieldsSchema

const areaChartFieldsSchema: ZodObject<{ annotations: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{ axis: ZodEnum<{ x: "x"; y: "y"; }>; color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-line">; label: ZodOptional<ZodString>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; value: ZodUnion<readonly [ZodString, ZodNumber]>; }, $strip>, ZodObject<{ axis: ZodOptional<ZodEnum<{ x: …; y: …; }>>; color: ZodOptional<ZodString>; kind: ZodLiteral<"stat-line">; label: ZodOptional<ZodString>; series: ZodOptional<ZodUnion<readonly […, …]>>; stat: ZodEnum<{ average: "average"; max: "max"; median: "median"; min: "min"; p90: "p90"; }>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; }, $strip>, ZodObject<{ axis: ZodEnum<{ x: "x"; y: "y"; }>; color: ZodOptional<ZodString>; from: ZodUnion<readonly [ZodString, ZodNumber]>; kind: ZodLiteral<"reference-area">; label: ZodOptional<ZodString>; to: ZodUnion<readonly [ZodString, ZodNumber]>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; }, $strip>, ZodObject<{ color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-point">; label: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; x: ZodUnion<readonly [ZodString, ZodNumber]>; y: ZodNumber; }, $strip>], "kind">>>; data: ZodArray<ZodObject<{ x: ZodUnion<readonly [ZodString, ZodNumber]>; y: ZodOptional<ZodNumber>; }, $loose>>; height: ZodOptional<ZodNumber>; rightAxisLabel: ZodOptional<ZodString>; series: ZodOptional<ZodArray<ZodObject<{ axis: ZodOptional<ZodEnum<{ left: "left"; right: "right"; }>>; key: ZodString; label: ZodOptional<ZodString>; }, $strip>>>; showValueLabels: ZodOptional<ZodBoolean>; stacked: ZodOptional<ZodBoolean>; title: ZodOptional<ZodString>; type: ZodLiteral<"area">; xAxisLabel: ZodOptional<ZodString>; yAxisLabel: ZodOptional<ZodString>; }, $strip>


areaChartSchema

const areaChartSchema: ZodPipe<ZodObject<{ annotations: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{ axis: ZodEnum<{ x: …; y: …; }>; color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-line">; label: ZodOptional<ZodString>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<…>>; value: ZodUnion<readonly […, …]>; }, $strip>, ZodObject<{ axis: ZodOptional<ZodEnum<…>>; color: ZodOptional<ZodString>; kind: ZodLiteral<"stat-line">; label: ZodOptional<ZodString>; series: ZodOptional<ZodUnion<…>>; stat: ZodEnum<{ average: …; max: …; median: …; min: …; p90: …; }>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<…>>; }, $strip>, ZodObject<{ axis: ZodEnum<{ x: …; y: …; }>; color: ZodOptional<ZodString>; from: ZodUnion<readonly […, …]>; kind: ZodLiteral<"reference-area">; label: ZodOptional<ZodString>; to: ZodUnion<readonly […, …]>; tone: ZodOptional<ZodEnum<…>>; }, $strip>, ZodObject<{ color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-point">; label: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<…>>; x: ZodUnion<readonly […, …]>; y: ZodNumber; }, $strip>], "kind">>>; data: ZodArray<ZodObject<{ x: ZodUnion<readonly [ZodString, ZodNumber]>; y: ZodOptional<ZodNumber>; }, $loose>>; height: ZodOptional<ZodNumber>; rightAxisLabel: ZodOptional<ZodString>; series: ZodOptional<ZodArray<ZodObject<{ axis: ZodOptional<ZodEnum<{ left: "left"; right: "right"; }>>; key: ZodString; label: ZodOptional<ZodString>; }, $strip>>>; showValueLabels: ZodOptional<ZodBoolean>; stacked: ZodOptional<ZodBoolean>; title: ZodOptional<ZodString>; type: ZodLiteral<"area">; xAxisLabel: ZodOptional<ZodString>; yAxisLabel: ZodOptional<ZodString>; }, $strip>, ZodTransform<Omit<{ annotations?: ({ axis: … | …; color?: … | …; kind: "reference-line"; label?: … | …; strokeDasharray?: … | …; tone?: … | … | … | … | … | …; value: … | …; } | { axis?: … | … | …; color?: … | …; kind: "stat-line"; label?: … | …; series?: … | …; stat: … | … | … | … | …; strokeDasharray?: … | …; tone?: … | … | … | … | … | …; } | { axis: … | …; color?: … | …; from: … | …; kind: "reference-area"; label?: … | …; to: … | …; tone?: … | … | … | … | … | …; } | { color?: … | …; kind: "reference-point"; label?: … | …; tone?: … | … | … | … | … | …; x: … | …; y: number; })[]; data: object[]; height?: number; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; stacked?: boolean; title?: string; type: "area"; xAxisLabel?: string; yAxisLabel?: string; }, "data" | "series"> & object | object & object, { annotations?: ({ axis: "x" | "y"; color?: string; kind: "reference-line"; label?: string; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; value: string | number; } | { axis?: "x" | "y"; color?: string; kind: "stat-line"; label?: string; series?: string; stat: "average" | "median" | "min" | "max" | "p90"; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { axis: "x" | "y"; color?: string; from: string | number; kind: "reference-area"; label?: string; to: string | number; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { color?: string; kind: "reference-point"; label?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; x: string | number; y: number; })[]; data: object[]; height?: number; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; stacked?: boolean; title?: string; type: "area"; xAxisLabel?: string; yAxisLabel?: string; }>>


barChartFieldsSchema

const barChartFieldsSchema: ZodObject<{ annotations: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{ axis: ZodEnum<{ x: "x"; y: "y"; }>; color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-line">; label: ZodOptional<ZodString>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; value: ZodUnion<readonly [ZodString, ZodNumber]>; }, $strip>, ZodObject<{ axis: ZodOptional<ZodEnum<{ x: …; y: …; }>>; color: ZodOptional<ZodString>; kind: ZodLiteral<"stat-line">; label: ZodOptional<ZodString>; series: ZodOptional<ZodUnion<readonly […, …]>>; stat: ZodEnum<{ average: "average"; max: "max"; median: "median"; min: "min"; p90: "p90"; }>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; }, $strip>, ZodObject<{ axis: ZodEnum<{ x: "x"; y: "y"; }>; color: ZodOptional<ZodString>; from: ZodUnion<readonly [ZodString, ZodNumber]>; kind: ZodLiteral<"reference-area">; label: ZodOptional<ZodString>; to: ZodUnion<readonly [ZodString, ZodNumber]>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; }, $strip>, ZodObject<{ color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-point">; label: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; x: ZodUnion<readonly [ZodString, ZodNumber]>; y: ZodNumber; }, $strip>], "kind">>>; data: ZodArray<ZodObject<{ name: ZodString; value: ZodOptional<ZodNumber>; }, $loose>>; height: ZodOptional<ZodNumber>; rightAxisLabel: ZodOptional<ZodString>; series: ZodOptional<ZodArray<ZodObject<{ axis: ZodOptional<ZodEnum<{ left: "left"; right: "right"; }>>; key: ZodString; label: ZodOptional<ZodString>; }, $strip>>>; showValueLabels: ZodOptional<ZodBoolean>; stacked: ZodOptional<ZodBoolean>; title: ZodOptional<ZodString>; type: ZodLiteral<"bar">; xAxisLabel: ZodOptional<ZodString>; yAxisLabel: ZodOptional<ZodString>; }, $strip>


barChartSchema

const barChartSchema: ZodPipe<ZodObject<{ annotations: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{ axis: ZodEnum<{ x: …; y: …; }>; color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-line">; label: ZodOptional<ZodString>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<…>>; value: ZodUnion<readonly […, …]>; }, $strip>, ZodObject<{ axis: ZodOptional<ZodEnum<…>>; color: ZodOptional<ZodString>; kind: ZodLiteral<"stat-line">; label: ZodOptional<ZodString>; series: ZodOptional<ZodUnion<…>>; stat: ZodEnum<{ average: …; max: …; median: …; min: …; p90: …; }>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<…>>; }, $strip>, ZodObject<{ axis: ZodEnum<{ x: …; y: …; }>; color: ZodOptional<ZodString>; from: ZodUnion<readonly […, …]>; kind: ZodLiteral<"reference-area">; label: ZodOptional<ZodString>; to: ZodUnion<readonly […, …]>; tone: ZodOptional<ZodEnum<…>>; }, $strip>, ZodObject<{ color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-point">; label: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<…>>; x: ZodUnion<readonly […, …]>; y: ZodNumber; }, $strip>], "kind">>>; data: ZodArray<ZodObject<{ name: ZodString; value: ZodOptional<ZodNumber>; }, $loose>>; height: ZodOptional<ZodNumber>; rightAxisLabel: ZodOptional<ZodString>; series: ZodOptional<ZodArray<ZodObject<{ axis: ZodOptional<ZodEnum<{ left: "left"; right: "right"; }>>; key: ZodString; label: ZodOptional<ZodString>; }, $strip>>>; showValueLabels: ZodOptional<ZodBoolean>; stacked: ZodOptional<ZodBoolean>; title: ZodOptional<ZodString>; type: ZodLiteral<"bar">; xAxisLabel: ZodOptional<ZodString>; yAxisLabel: ZodOptional<ZodString>; }, $strip>, ZodTransform<Omit<{ annotations?: ({ axis: … | …; color?: … | …; kind: "reference-line"; label?: … | …; strokeDasharray?: … | …; tone?: … | … | … | … | … | …; value: … | …; } | { axis?: … | … | …; color?: … | …; kind: "stat-line"; label?: … | …; series?: … | …; stat: … | … | … | … | …; strokeDasharray?: … | …; tone?: … | … | … | … | … | …; } | { axis: … | …; color?: … | …; from: … | …; kind: "reference-area"; label?: … | …; to: … | …; tone?: … | … | … | … | … | …; } | { color?: … | …; kind: "reference-point"; label?: … | …; tone?: … | … | … | … | … | …; x: … | …; y: number; })[]; data: object[]; height?: number; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; stacked?: boolean; title?: string; type: "bar"; xAxisLabel?: string; yAxisLabel?: string; }, "data" | "series"> & object | object & object, { annotations?: ({ axis: "x" | "y"; color?: string; kind: "reference-line"; label?: string; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; value: string | number; } | { axis?: "x" | "y"; color?: string; kind: "stat-line"; label?: string; series?: string; stat: "average" | "median" | "min" | "max" | "p90"; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { axis: "x" | "y"; color?: string; from: string | number; kind: "reference-area"; label?: string; to: string | number; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { color?: string; kind: "reference-point"; label?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; x: string | number; y: number; })[]; data: object[]; height?: number; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; stacked?: boolean; title?: string; type: "bar"; xAxisLabel?: string; yAxisLabel?: string; }>>


chartSchema

const chartSchema: ZodDiscriminatedUnion<[ZodPipe<ZodObject<{ annotations: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{ axis: …; color: …; kind: …; label: …; strokeDasharray: …; tone: …; value: …; }, $strip>, ZodObject<{ axis: …; color: …; kind: …; label: …; series: …; stat: …; strokeDasharray: …; tone: …; }, $strip>, ZodObject<{ axis: …; color: …; from: …; kind: …; label: …; to: …; tone: …; }, $strip>, ZodObject<{ color: …; kind: …; label: …; tone: …; x: …; y: …; }, $strip>], "kind">>>; data: ZodArray<ZodObject<{ x: ZodUnion<readonly [ZodString, ZodNumber]>; y: ZodOptional<ZodNumber>; }, $loose>>; height: ZodOptional<ZodNumber>; rightAxisLabel: ZodOptional<ZodString>; series: ZodOptional<ZodArray<ZodObject<{ axis: ZodOptional<ZodEnum<…>>; key: ZodString; label: ZodOptional<ZodString>; }, $strip>>>; showValueLabels: ZodOptional<ZodBoolean>; title: ZodOptional<ZodString>; type: ZodLiteral<"line">; xAxisLabel: ZodOptional<ZodString>; yAxisLabel: ZodOptional<ZodString>; }, $strip>, ZodTransform<Omit<{ annotations?: (… | … | … | …)[]; data: object[]; height?: number; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; title?: string; type: "line"; xAxisLabel?: string; yAxisLabel?: string; }, "data" | "series"> & object | object & object, { annotations?: ({ axis: "x" | "y"; color?: string; kind: "reference-line"; label?: string; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; value: string | number; } | { axis?: "x" | "y"; color?: string; kind: "stat-line"; label?: string; series?: string; stat: "average" | "median" | "min" | "max" | "p90"; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { axis: "x" | "y"; color?: string; from: string | number; kind: "reference-area"; label?: string; to: string | number; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { color?: string; kind: "reference-point"; label?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; x: string | number; y: number; })[]; data: object[]; height?: number; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; title?: string; type: "line"; xAxisLabel?: string; yAxisLabel?: string; }>>, ZodPipe<ZodObject<{ annotations: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{ axis: …; color: …; kind: …; label: …; strokeDasharray: …; tone: …; value: …; }, $strip>, ZodObject<{ axis: …; color: …; kind: …; label: …; series: …; stat: …; strokeDasharray: …; tone: …; }, $strip>, ZodObject<{ axis: …; color: …; from: …; kind: …; label: …; to: …; tone: …; }, $strip>, ZodObject<{ color: …; kind: …; label: …; tone: …; x: …; y: …; }, $strip>], "kind">>>; data: ZodArray<ZodObject<{ x: ZodUnion<readonly [ZodString, ZodNumber]>; y: ZodOptional<ZodNumber>; }, $loose>>; height: ZodOptional<ZodNumber>; rightAxisLabel: ZodOptional<ZodString>; series: ZodOptional<ZodArray<ZodObject<{ axis: ZodOptional<ZodEnum<…>>; key: ZodString; label: ZodOptional<ZodString>; }, $strip>>>; showValueLabels: ZodOptional<ZodBoolean>; stacked: ZodOptional<ZodBoolean>; title: ZodOptional<ZodString>; type: ZodLiteral<"area">; xAxisLabel: ZodOptional<ZodString>; yAxisLabel: ZodOptional<ZodString>; }, $strip>, ZodTransform<Omit<{ annotations?: (… | … | … | …)[]; data: object[]; height?: number; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; stacked?: boolean; title?: string; type: "area"; xAxisLabel?: string; yAxisLabel?: string; }, "data" | "series"> & object | object & object, { annotations?: ({ axis: "x" | "y"; color?: string; kind: "reference-line"; label?: string; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; value: string | number; } | { axis?: "x" | "y"; color?: string; kind: "stat-line"; label?: string; series?: string; stat: "average" | "median" | "min" | "max" | "p90"; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { axis: "x" | "y"; color?: string; from: string | number; kind: "reference-area"; label?: string; to: string | number; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { color?: string; kind: "reference-point"; label?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; x: string | number; y: number; })[]; data: object[]; height?: number; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; stacked?: boolean; title?: string; type: "area"; xAxisLabel?: string; yAxisLabel?: string; }>>, ZodPipe<ZodObject<{ annotations: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{ axis: …; color: …; kind: …; label: …; strokeDasharray: …; tone: …; value: …; }, $strip>, ZodObject<{ axis: …; color: …; kind: …; label: …; series: …; stat: …; strokeDasharray: …; tone: …; }, $strip>, ZodObject<{ axis: …; color: …; from: …; kind: …; label: …; to: …; tone: …; }, $strip>, ZodObject<{ color: …; kind: …; label: …; tone: …; x: …; y: …; }, $strip>], "kind">>>; data: ZodArray<ZodObject<{ name: ZodString; value: ZodOptional<ZodNumber>; }, $loose>>; height: ZodOptional<ZodNumber>; rightAxisLabel: ZodOptional<ZodString>; series: ZodOptional<ZodArray<ZodObject<{ axis: ZodOptional<ZodEnum<…>>; key: ZodString; label: ZodOptional<ZodString>; }, $strip>>>; showValueLabels: ZodOptional<ZodBoolean>; stacked: ZodOptional<ZodBoolean>; title: ZodOptional<ZodString>; type: ZodLiteral<"bar">; xAxisLabel: ZodOptional<ZodString>; yAxisLabel: ZodOptional<ZodString>; }, $strip>, ZodTransform<Omit<{ annotations?: (… | … | … | …)[]; data: object[]; height?: number; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; stacked?: boolean; title?: string; type: "bar"; xAxisLabel?: string; yAxisLabel?: string; }, "data" | "series"> & object | object & object, { annotations?: ({ axis: "x" | "y"; color?: string; kind: "reference-line"; label?: string; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; value: string | number; } | { axis?: "x" | "y"; color?: string; kind: "stat-line"; label?: string; series?: string; stat: "average" | "median" | "min" | "max" | "p90"; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { axis: "x" | "y"; color?: string; from: string | number; kind: "reference-area"; label?: string; to: string | number; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { color?: string; kind: "reference-point"; label?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; x: string | number; y: number; })[]; data: object[]; height?: number; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; stacked?: boolean; title?: string; type: "bar"; xAxisLabel?: string; yAxisLabel?: string; }>>], "type">


chartSeriesAxes

const chartSeriesAxes: readonly ["left", "right"]


chartSeriesKinds

const chartSeriesKinds: readonly ["bar", "line"]


chartSeriesSchema

const chartSeriesSchema: ZodObject<{ axis: ZodOptional<ZodEnum<{ left: "left"; right: "right"; }>>; key: ZodString; label: ZodOptional<ZodString>; }, $strip>


composedChartFieldsSchema

const composedChartFieldsSchema: ZodObject<{ annotations: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{ axis: ZodEnum<{ x: "x"; y: "y"; }>; color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-line">; label: ZodOptional<ZodString>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; value: ZodUnion<readonly [ZodString, ZodNumber]>; }, $strip>, ZodObject<{ axis: ZodOptional<ZodEnum<{ x: …; y: …; }>>; color: ZodOptional<ZodString>; kind: ZodLiteral<"stat-line">; label: ZodOptional<ZodString>; series: ZodOptional<ZodUnion<readonly […, …]>>; stat: ZodEnum<{ average: "average"; max: "max"; median: "median"; min: "min"; p90: "p90"; }>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; }, $strip>, ZodObject<{ axis: ZodEnum<{ x: "x"; y: "y"; }>; color: ZodOptional<ZodString>; from: ZodUnion<readonly [ZodString, ZodNumber]>; kind: ZodLiteral<"reference-area">; label: ZodOptional<ZodString>; to: ZodUnion<readonly [ZodString, ZodNumber]>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; }, $strip>, ZodObject<{ color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-point">; label: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; x: ZodUnion<readonly [ZodString, ZodNumber]>; y: ZodNumber; }, $strip>], "kind">>>; barLabel: ZodOptional<ZodString>; data: ZodArray<ZodObject<{ barValue: ZodOptional<ZodNumber>; lineValue: ZodOptional<ZodNumber>; name: ZodString; }, $loose>>; height: ZodOptional<ZodNumber>; lineLabel: ZodOptional<ZodString>; rightAxisLabel: ZodOptional<ZodString>; series: ZodOptional<ZodArray<ZodObject<{ axis: ZodOptional<ZodEnum<{ left: "left"; right: "right"; }>>; key: ZodString; kind: ZodEnum<{ bar: "bar"; line: "line"; }>; label: ZodOptional<ZodString>; }, $strip>>>; showValueLabels: ZodOptional<ZodBoolean>; stacked: ZodOptional<ZodBoolean>; title: ZodOptional<ZodString>; type: ZodLiteral<"composed">; xAxisLabel: ZodOptional<ZodString>; yAxisLabel: ZodOptional<ZodString>; }, $strip>


composedChartSchema

const composedChartSchema: ZodPipe<ZodObject<{ annotations: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{ axis: ZodEnum<{ x: …; y: …; }>; color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-line">; label: ZodOptional<ZodString>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<…>>; value: ZodUnion<readonly […, …]>; }, $strip>, ZodObject<{ axis: ZodOptional<ZodEnum<…>>; color: ZodOptional<ZodString>; kind: ZodLiteral<"stat-line">; label: ZodOptional<ZodString>; series: ZodOptional<ZodUnion<…>>; stat: ZodEnum<{ average: …; max: …; median: …; min: …; p90: …; }>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<…>>; }, $strip>, ZodObject<{ axis: ZodEnum<{ x: …; y: …; }>; color: ZodOptional<ZodString>; from: ZodUnion<readonly […, …]>; kind: ZodLiteral<"reference-area">; label: ZodOptional<ZodString>; to: ZodUnion<readonly […, …]>; tone: ZodOptional<ZodEnum<…>>; }, $strip>, ZodObject<{ color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-point">; label: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<…>>; x: ZodUnion<readonly […, …]>; y: ZodNumber; }, $strip>], "kind">>>; barLabel: ZodOptional<ZodString>; data: ZodArray<ZodObject<{ barValue: ZodOptional<ZodNumber>; lineValue: ZodOptional<ZodNumber>; name: ZodString; }, $loose>>; height: ZodOptional<ZodNumber>; lineLabel: ZodOptional<ZodString>; rightAxisLabel: ZodOptional<ZodString>; series: ZodOptional<ZodArray<ZodObject<{ axis: ZodOptional<ZodEnum<{ left: "left"; right: "right"; }>>; key: ZodString; kind: ZodEnum<{ bar: "bar"; line: "line"; }>; label: ZodOptional<ZodString>; }, $strip>>>; showValueLabels: ZodOptional<ZodBoolean>; stacked: ZodOptional<ZodBoolean>; title: ZodOptional<ZodString>; type: ZodLiteral<"composed">; xAxisLabel: ZodOptional<ZodString>; yAxisLabel: ZodOptional<ZodString>; }, $strip>, ZodTransform<Omit<{ annotations?: ({ axis: … | …; color?: … | …; kind: "reference-line"; label?: … | …; strokeDasharray?: … | …; tone?: … | … | … | … | … | …; value: … | …; } | { axis?: … | … | …; color?: … | …; kind: "stat-line"; label?: … | …; series?: … | …; stat: … | … | … | … | …; strokeDasharray?: … | …; tone?: … | … | … | … | … | …; } | { axis: … | …; color?: … | …; from: … | …; kind: "reference-area"; label?: … | …; to: … | …; tone?: … | … | … | … | … | …; } | { color?: … | …; kind: "reference-point"; label?: … | …; tone?: … | … | … | … | … | …; x: … | …; y: number; })[]; barLabel?: string; data: object[]; height?: number; lineLabel?: string; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; stacked?: boolean; title?: string; type: "composed"; xAxisLabel?: string; yAxisLabel?: string; }, "data" | "series"> & object | object & object, { annotations?: ({ axis: "x" | "y"; color?: string; kind: "reference-line"; label?: string; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; value: string | number; } | { axis?: "x" | "y"; color?: string; kind: "stat-line"; label?: string; series?: string; stat: "average" | "median" | "min" | "max" | "p90"; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { axis: "x" | "y"; color?: string; from: string | number; kind: "reference-area"; label?: string; to: string | number; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { color?: string; kind: "reference-point"; label?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; x: string | number; y: number; })[]; barLabel?: string; data: object[]; height?: number; lineLabel?: string; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; stacked?: boolean; title?: string; type: "composed"; xAxisLabel?: string; yAxisLabel?: string; }>>


composedChartSeriesSchema

const composedChartSeriesSchema: ZodObject<{ axis: ZodOptional<ZodEnum<{ left: "left"; right: "right"; }>>; key: ZodString; kind: ZodEnum<{ bar: "bar"; line: "line"; }>; label: ZodOptional<ZodString>; }, $strip>


generateChartInputSchema

const generateChartInputSchema: ZodObject<{ annotations: ZodOptional<ZodArray<ZodObject<{ axis: ZodOptional<ZodEnum<{ x: "x"; y: "y"; }>>; color: ZodOptional<ZodString>; from: ZodOptional<ZodUnion<readonly [ZodString, ZodNumber]>>; kind: ZodEnum<{ reference-area: "reference-area"; reference-line: "reference-line"; reference-point: "reference-point"; stat-line: "stat-line"; }>; label: ZodOptional<ZodString>; series: ZodOptional<ZodUnion<readonly [ZodEnum<{ bar: …; line: …; }>, ZodString]>>; stat: ZodOptional<ZodEnum<{ average: "average"; max: "max"; median: "median"; min: "min"; p90: "p90"; }>>; strokeDasharray: ZodOptional<ZodString>; to: ZodOptional<ZodUnion<readonly [ZodString, ZodNumber]>>; tone: ZodOptional<ZodEnum<{ danger: "danger"; info: "info"; neutral: "neutral"; success: "success"; warning: "warning"; }>>; value: ZodOptional<ZodUnion<readonly [ZodString, ZodNumber]>>; x: ZodOptional<ZodUnion<readonly [ZodString, ZodNumber]>>; y: ZodOptional<ZodNumber>; }, $strip>>>; barLabel: ZodOptional<ZodString>; data: ZodArray<ZodObject<{ barValue: ZodOptional<ZodNumber>; lineValue: ZodOptional<ZodNumber>; name: ZodOptional<ZodString>; subject: ZodOptional<ZodString>; value: ZodOptional<ZodNumber>; x: ZodOptional<ZodUnion<readonly [ZodString, ZodNumber]>>; y: ZodOptional<ZodNumber>; }, $loose>>; height: ZodOptional<ZodNumber>; lineLabel: ZodOptional<ZodString>; rightAxisLabel: ZodOptional<ZodString>; series: ZodOptional<ZodArray<ZodObject<{ axis: ZodOptional<ZodEnum<{ left: "left"; right: "right"; }>>; key: ZodString; kind: ZodOptional<ZodEnum<{ bar: "bar"; line: "line"; }>>; label: ZodOptional<ZodString>; }, $strip>>>; showValueLabels: ZodOptional<ZodBoolean>; stacked: ZodOptional<ZodBoolean>; title: ZodOptional<ZodString>; type: ZodEnum<{ area: "area"; bar: "bar"; composed: "composed"; line: "line"; pie: "pie"; radar: "radar"; scatter: "scatter"; }>; xAxisLabel: ZodOptional<ZodString>; yAxisLabel: ZodOptional<ZodString>; }, $strip>


lineChartFieldsSchema

const lineChartFieldsSchema: ZodObject<{ annotations: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{ axis: ZodEnum<{ x: "x"; y: "y"; }>; color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-line">; label: ZodOptional<ZodString>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; value: ZodUnion<readonly [ZodString, ZodNumber]>; }, $strip>, ZodObject<{ axis: ZodOptional<ZodEnum<{ x: …; y: …; }>>; color: ZodOptional<ZodString>; kind: ZodLiteral<"stat-line">; label: ZodOptional<ZodString>; series: ZodOptional<ZodUnion<readonly […, …]>>; stat: ZodEnum<{ average: "average"; max: "max"; median: "median"; min: "min"; p90: "p90"; }>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; }, $strip>, ZodObject<{ axis: ZodEnum<{ x: "x"; y: "y"; }>; color: ZodOptional<ZodString>; from: ZodUnion<readonly [ZodString, ZodNumber]>; kind: ZodLiteral<"reference-area">; label: ZodOptional<ZodString>; to: ZodUnion<readonly [ZodString, ZodNumber]>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; }, $strip>, ZodObject<{ color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-point">; label: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; x: ZodUnion<readonly [ZodString, ZodNumber]>; y: ZodNumber; }, $strip>], "kind">>>; data: ZodArray<ZodObject<{ x: ZodUnion<readonly [ZodString, ZodNumber]>; y: ZodOptional<ZodNumber>; }, $loose>>; height: ZodOptional<ZodNumber>; rightAxisLabel: ZodOptional<ZodString>; series: ZodOptional<ZodArray<ZodObject<{ axis: ZodOptional<ZodEnum<{ left: "left"; right: "right"; }>>; key: ZodString; label: ZodOptional<ZodString>; }, $strip>>>; showValueLabels: ZodOptional<ZodBoolean>; title: ZodOptional<ZodString>; type: ZodLiteral<"line">; xAxisLabel: ZodOptional<ZodString>; yAxisLabel: ZodOptional<ZodString>; }, $strip>


lineChartSchema

const lineChartSchema: ZodPipe<ZodObject<{ annotations: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{ axis: ZodEnum<{ x: …; y: …; }>; color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-line">; label: ZodOptional<ZodString>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<…>>; value: ZodUnion<readonly […, …]>; }, $strip>, ZodObject<{ axis: ZodOptional<ZodEnum<…>>; color: ZodOptional<ZodString>; kind: ZodLiteral<"stat-line">; label: ZodOptional<ZodString>; series: ZodOptional<ZodUnion<…>>; stat: ZodEnum<{ average: …; max: …; median: …; min: …; p90: …; }>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<…>>; }, $strip>, ZodObject<{ axis: ZodEnum<{ x: …; y: …; }>; color: ZodOptional<ZodString>; from: ZodUnion<readonly […, …]>; kind: ZodLiteral<"reference-area">; label: ZodOptional<ZodString>; to: ZodUnion<readonly […, …]>; tone: ZodOptional<ZodEnum<…>>; }, $strip>, ZodObject<{ color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-point">; label: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<…>>; x: ZodUnion<readonly […, …]>; y: ZodNumber; }, $strip>], "kind">>>; data: ZodArray<ZodObject<{ x: ZodUnion<readonly [ZodString, ZodNumber]>; y: ZodOptional<ZodNumber>; }, $loose>>; height: ZodOptional<ZodNumber>; rightAxisLabel: ZodOptional<ZodString>; series: ZodOptional<ZodArray<ZodObject<{ axis: ZodOptional<ZodEnum<{ left: "left"; right: "right"; }>>; key: ZodString; label: ZodOptional<ZodString>; }, $strip>>>; showValueLabels: ZodOptional<ZodBoolean>; title: ZodOptional<ZodString>; type: ZodLiteral<"line">; xAxisLabel: ZodOptional<ZodString>; yAxisLabel: ZodOptional<ZodString>; }, $strip>, ZodTransform<Omit<{ annotations?: ({ axis: … | …; color?: … | …; kind: "reference-line"; label?: … | …; strokeDasharray?: … | …; tone?: … | … | … | … | … | …; value: … | …; } | { axis?: … | … | …; color?: … | …; kind: "stat-line"; label?: … | …; series?: … | …; stat: … | … | … | … | …; strokeDasharray?: … | …; tone?: … | … | … | … | … | …; } | { axis: … | …; color?: … | …; from: … | …; kind: "reference-area"; label?: … | …; to: … | …; tone?: … | … | … | … | … | …; } | { color?: … | …; kind: "reference-point"; label?: … | …; tone?: … | … | … | … | … | …; x: … | …; y: number; })[]; data: object[]; height?: number; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; title?: string; type: "line"; xAxisLabel?: string; yAxisLabel?: string; }, "data" | "series"> & object | object & object, { annotations?: ({ axis: "x" | "y"; color?: string; kind: "reference-line"; label?: string; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; value: string | number; } | { axis?: "x" | "y"; color?: string; kind: "stat-line"; label?: string; series?: string; stat: "average" | "median" | "min" | "max" | "p90"; strokeDasharray?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { axis: "x" | "y"; color?: string; from: string | number; kind: "reference-area"; label?: string; to: string | number; tone?: "danger" | "warning" | "success" | "info" | "neutral"; } | { color?: string; kind: "reference-point"; label?: string; tone?: "danger" | "warning" | "success" | "info" | "neutral"; x: string | number; y: number; })[]; data: object[]; height?: number; rightAxisLabel?: string; series?: object[]; showValueLabels?: boolean; title?: string; type: "line"; xAxisLabel?: string; yAxisLabel?: string; }>>


maxChartSeries

const maxChartSeries: 4 = chartColorPalette.length


pieChartSchema

const pieChartSchema: ZodObject<{ data: ZodArray<ZodObject<{ name: ZodString; value: ZodNumber; }, $strip>>; height: ZodOptional<ZodNumber>; title: ZodOptional<ZodString>; type: ZodLiteral<"pie">; }, $strip>


radarChartSchema

const radarChartSchema: ZodObject<{ data: ZodArray<ZodObject<{ subject: ZodString; value: ZodNumber; }, $strip>>; height: ZodOptional<ZodNumber>; title: ZodOptional<ZodString>; type: ZodLiteral<"radar">; }, $strip>


scatterChartSchema

const scatterChartSchema: ZodObject<{ annotations: ZodOptional<ZodArray<ZodDiscriminatedUnion<[ZodObject<{ axis: ZodEnum<{ x: "x"; y: "y"; }>; color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-line">; label: ZodOptional<ZodString>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; value: ZodUnion<readonly [ZodString, ZodNumber]>; }, $strip>, ZodObject<{ axis: ZodOptional<ZodEnum<{ x: …; y: …; }>>; color: ZodOptional<ZodString>; kind: ZodLiteral<"stat-line">; label: ZodOptional<ZodString>; series: ZodOptional<ZodUnion<readonly […, …]>>; stat: ZodEnum<{ average: "average"; max: "max"; median: "median"; min: "min"; p90: "p90"; }>; strokeDasharray: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; }, $strip>, ZodObject<{ axis: ZodEnum<{ x: "x"; y: "y"; }>; color: ZodOptional<ZodString>; from: ZodUnion<readonly [ZodString, ZodNumber]>; kind: ZodLiteral<"reference-area">; label: ZodOptional<ZodString>; to: ZodUnion<readonly [ZodString, ZodNumber]>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; }, $strip>, ZodObject<{ color: ZodOptional<ZodString>; kind: ZodLiteral<"reference-point">; label: ZodOptional<ZodString>; tone: ZodOptional<ZodEnum<{ danger: …; info: …; neutral: …; success: …; warning: …; }>>; x: ZodUnion<readonly [ZodString, ZodNumber]>; y: ZodNumber; }, $strip>], "kind">>>; data: ZodArray<ZodObject<{ x: ZodNumber; y: ZodNumber; }, $strip>>; height: ZodOptional<ZodNumber>; showValueLabels: ZodOptional<ZodBoolean>; title: ZodOptional<ZodString>; type: ZodLiteral<"scatter">; xAxisLabel: ZodOptional<ZodString>; yAxisLabel: ZodOptional<ZodString>; }, $strip>