Docs Charts Radial & KPI

MarimekkoChart

React example follows below.
ts
import { MarimekkoChart } from "@grassroot/charts-react";
const grouped = [
{
id: "north-america",
label: "North America",
values: [
{
series: "Enterprise",
value: 72,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 38,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 21,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 14,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "europe",
label: "Europe",
values: [
{
series: "Enterprise",
value: 44,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 31,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 18,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 16,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "uk-ireland",
label: "UK and Ireland",
values: [
{
series: "Enterprise",
value: 28,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 22,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 12,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 19,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "apac",
label: "APAC",
values: [
{
series: "Enterprise",
value: 26,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 21,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 14,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 8,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "latam",
label: "Latin America",
values: [
{
series: "Enterprise",
value: 14,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 11,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 6,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 4,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "mea",
label: "Middle East and Africa",
values: [
{
series: "Enterprise",
value: 11,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 8,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 5,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 3,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
];
export default function MarimekkoChartDemo() {
return (
<div>
<MarimekkoChart
data={grouped}
ariaLabel="466 million dollars in annual recurring revenue by six regions and four customer segments, 2026" />
</div>
);
}
ts
<script setup lang="ts">
import { MarimekkoChart } from "@grassroot/charts-vue";
const grouped = [
{
id: "north-america",
label: "North America",
values: [
{
series: "Enterprise",
value: 72,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 38,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 21,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 14,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "europe",
label: "Europe",
values: [
{
series: "Enterprise",
value: 44,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 31,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 18,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 16,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "uk-ireland",
label: "UK and Ireland",
values: [
{
series: "Enterprise",
value: 28,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 22,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 12,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 19,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "apac",
label: "APAC",
values: [
{
series: "Enterprise",
value: 26,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 21,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 14,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 8,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "latam",
label: "Latin America",
values: [
{
series: "Enterprise",
value: 14,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 11,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 6,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 4,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "mea",
label: "Middle East and Africa",
values: [
{
series: "Enterprise",
value: 11,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 8,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 5,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 3,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
];
</script>
<template>
<MarimekkoChart
:data="grouped"
aria-label="466 million dollars in annual recurring revenue by six regions and four customer segments, 2026" />
</template>
ts
import { ChangeDetectionStrategy, Component } from "@angular/core";
import { GrassrootMarimekkoChart } from "@grassroot/charts-angular";
@Component({
selector: "app-marimekko-chart-chart-demo",
standalone: true,
imports: [GrassrootMarimekkoChart],
changeDetection: ChangeDetectionStrategy.OnPush,
template: `<grassroot-marimekko-chart
[data]="grouped"
ariaLabel="466 million dollars in annual recurring revenue by six regions and four customer segments, 2026"
/>`,
})
export class MarimekkoChartDemoComponent {
readonly grouped = [
{
id: "north-america",
label: "North America",
values: [
{
series: "Enterprise",
value: 72,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 38,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 21,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 14,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "europe",
label: "Europe",
values: [
{
series: "Enterprise",
value: 44,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 31,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 18,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 16,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "uk-ireland",
label: "UK and Ireland",
values: [
{
series: "Enterprise",
value: 28,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 22,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 12,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 19,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "apac",
label: "APAC",
values: [
{
series: "Enterprise",
value: 26,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 21,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 14,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 8,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "latam",
label: "Latin America",
values: [
{
series: "Enterprise",
value: 14,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 11,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 6,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 4,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "mea",
label: "Middle East and Africa",
values: [
{
series: "Enterprise",
value: 11,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 8,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 5,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 3,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
];
}
export default MarimekkoChartDemoComponent;
ts
<script lang="ts">
import { MarimekkoChart } from "@grassroot/charts-svelte";
const grouped = [
{
id: "north-america",
label: "North America",
values: [
{
series: "Enterprise",
value: 72,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 38,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 21,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 14,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "europe",
label: "Europe",
values: [
{
series: "Enterprise",
value: 44,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 31,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 18,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 16,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "uk-ireland",
label: "UK and Ireland",
values: [
{
series: "Enterprise",
value: 28,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 22,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 12,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 19,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "apac",
label: "APAC",
values: [
{
series: "Enterprise",
value: 26,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 21,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 14,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 8,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "latam",
label: "Latin America",
values: [
{
series: "Enterprise",
value: 14,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 11,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 6,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 4,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "mea",
label: "Middle East and Africa",
values: [
{
series: "Enterprise",
value: 11,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 8,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 5,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 3,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
];
</script>
<MarimekkoChart
data={grouped}
ariaLabel="466 million dollars in annual recurring revenue by six regions and four customer segments, 2026" />
ts
/** @jsxImportSource solid-js */
import { MarimekkoChart } from "@grassroot/charts-solid";
const grouped = [
{
id: "north-america",
label: "North America",
values: [
{
series: "Enterprise",
value: 72,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 38,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 21,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 14,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "europe",
label: "Europe",
values: [
{
series: "Enterprise",
value: 44,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 31,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 18,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 16,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "uk-ireland",
label: "UK and Ireland",
values: [
{
series: "Enterprise",
value: 28,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 22,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 12,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 19,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "apac",
label: "APAC",
values: [
{
series: "Enterprise",
value: 26,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 21,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 14,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 8,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "latam",
label: "Latin America",
values: [
{
series: "Enterprise",
value: 14,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 11,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 6,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 4,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
{
id: "mea",
label: "Middle East and Africa",
values: [
{
series: "Enterprise",
value: 11,
color: "var(--accent)",
pattern: { kind: "diagonal" as const },
},
{
series: "Mid-market",
value: 8,
color: "var(--vs-success)",
pattern: { kind: "dots" as const },
},
{
series: "Self-serve",
value: 5,
color: "var(--vs-info)",
pattern: { kind: "crosshatch" as const },
},
{
series: "Public sector",
value: 3,
color: "var(--vs-warning)",
pattern: { kind: "diagonal" as const },
},
],
},
];
export default function MarimekkoChartDemo() {
return (
<MarimekkoChart
data={grouped}
ariaLabel="466 million dollars in annual recurring revenue by six regions and four customer segments, 2026" />
);
}

Installation

API Reference

Import

import { MarimekkoChart } from "@grassroot/charts-react";

Props

Prop
Type
Default
Requirement
Description
data
readonly GroupedBarGroup[]
—
required
—
legend
boolean | import("@grassroot/chart-spec").LegendConfig | undefined
—
optional
—
tooltip
boolean | import("./base").ExpandedChartTooltipConfig<unknown> | undefined
—
optional
—
animation
boolean | import("./base").ExpandedChartAnimationConfig | undefined
—
optional
—
onHiddenSeriesChange
((ids: readonly string[]) => void) | undefined
—
optional
—
onActiveDatumChange
((id: string | null) => void) | undefined
—
optional
—
renderer
ChartRenderer | undefined
—
optional
—
className
string | undefined
—
optional
—
theme
import("@grassroot/theme").PartialChartTheme | undefined
—
optional
—
title
string | undefined
—
optional
—
description
string | undefined
—
optional
—
ariaLabel
string | undefined
—
optional
—
keyboardNavigation
boolean | undefined
—
optional
—
width
number | undefined
—
optional
—
Prop
data
Type
readonly GroupedBarGroup[]
Default
—
Requirement
required
Description
—
Prop
legend
Type
boolean | import("@grassroot/chart-spec").LegendConfig | undefined
Default
—
Requirement
optional
Description
—
Prop
tooltip
Type
boolean | import("./base").ExpandedChartTooltipConfig<unknown> | undefined
Default
—
Requirement
optional
Description
—
Prop
animation
Type
boolean | import("./base").ExpandedChartAnimationConfig | undefined
Default
—
Requirement
optional
Description
—
Prop
onHiddenSeriesChange
Type
((ids: readonly string[]) => void) | undefined
Default
—
Requirement
optional
Description
—
Prop
onActiveDatumChange
Type
((id: string | null) => void) | undefined
Default
—
Requirement
optional
Description
—
Prop
renderer
Type
ChartRenderer | undefined
Default
—
Requirement
optional
Description
—
Prop
className
Type
string | undefined
Default
—
Requirement
optional
Description
—
Prop
theme
Type
import("@grassroot/theme").PartialChartTheme | undefined
Default
—
Requirement
optional
Description
—
Prop
title
Type
string | undefined
Default
—
Requirement
optional
Description
—
Prop
description
Type
string | undefined
Default
—
Requirement
optional
Description
—
Prop
ariaLabel
Type
string | undefined
Default
—
Requirement
optional
Description
—
Prop
keyboardNavigation
Type
boolean | undefined
Default
—
Requirement
optional
Description
—
Prop
width
Type
number | undefined
Default
—
Requirement
optional
Description
—
Prop
height
Type
number | undefined
Default
—
Requirement
optional
Description
—
Prop
gpuBackend
Type
ChartGpuBackend | undefined
Default
—
Requirement
optional
Description
—
Prop
rendererStrategy
Type
Partial<import("@grassroot/core").ChartRendererStrategy> | undefined
Default
—
Requirement
optional
Description
—
Prop
renderPlanMode
Type
"svg" | "host" | undefined
Default
—
Requirement
optional
Description
—
Prop
showGrid
Type
boolean | undefined
Default
—
Requirement
optional
Description
—
Prop
interactive
Type
boolean | undefined
Default
—
Requirement
optional
Description
Gates every pointer/keyboard interaction the shell owns (hit-test on pointer move, focus-to-first, arrow navigation, Escape) and, with `keyboardNavigation`, whether the plot surface is focusable at all.
Prop
hiddenSeries
Type
readonly string[] | undefined
Default
—
Requirement
optional
Description
—
Prop
defaultHiddenSeries
Type
readonly string[] | undefined
Default
—
Requirement
optional
Description
—
Prop
activeDatum
Type
string | null | undefined
Default
—
Requirement
optional
Description
—
Prop
defaultActiveDatum
Type
string | null | undefined
Default
—
Requirement
optional
Description
Uncontrolled initial value for the `activeDatum`/`onActiveDatumChange` pair.
Prop
speed
Type
number | undefined
Default
—
Requirement
optional
Description
Playback-speed multiplier for entrance/ambient motion.
Prop
morphDurationMs
Type
number | undefined
Default
—
Requirement
optional
Description
How long a dataset change tweens, in milliseconds.
Prop
replayToken
Type
string | number | undefined
Default
—
Requirement
optional
Description
Changing this value replays the entrance animation.

Events

EventPayload
onHiddenSeriesChange((ids: readonly string[]) => void) | undefined
onActiveDatumChange((id: string | null) => void) | undefined

Content regions

  • children
  • dataSummary

Native attributes

Standard DOM and ARIA attributes not listed above spread onto the root element.

Import

import { MarimekkoChart } from "@grassroot/charts-vue";

Props

Prop
Type
Default
Requirement
className
string | undefined
—
optional
gpuBackend
"auto" | "webgpu" | "webgl2" | undefined
—
optional
width
number | undefined
—
optional
height
number | undefined
—
optional
renderer
ChartRenderer | undefined
—
optional
rendererStrategy
Partial<ChartRendererStrategy> | undefined
—
optional
renderPlanMode
"svg" | "host" | undefined
"host"
optional
showGrid
boolean | undefined
—
optional
legend
boolean | LegendConfig | undefined
false
optional
tooltip
boolean | TooltipBehaviorConfig | undefined
true
optional
animation
ChartAnimationInput | undefined
—
optional
interactive
boolean | undefined
true
optional
keyboardNavigation
boolean | undefined
true
optional
hiddenSeries
readonly string[] | undefined
—
optional
Prop
className
Type
string | undefined
Default
—
Requirement
optional
Prop
gpuBackend
Type
"auto" | "webgpu" | "webgl2" | undefined
Default
—
Requirement
optional
Prop
width
Type
number | undefined
Default
—
Requirement
optional
Prop
height
Type
number | undefined
Default
—
Requirement
optional
Prop
renderer
Type
ChartRenderer | undefined
Default
—
Requirement
optional
Prop
rendererStrategy
Type
Partial<ChartRendererStrategy> | undefined
Default
—
Requirement
optional
Prop
renderPlanMode
Type
"svg" | "host" | undefined
Default
"host"
Requirement
optional
Prop
showGrid
Type
boolean | undefined
Default
—
Requirement
optional
Prop
legend
Type
boolean | LegendConfig | undefined
Default
false
Requirement
optional
Prop
tooltip
Type
boolean | TooltipBehaviorConfig | undefined
Default
true
Requirement
optional
Prop
animation
Type
ChartAnimationInput | undefined
Default
—
Requirement
optional
Prop
interactive
Type
boolean | undefined
Default
true
Requirement
optional
Prop
keyboardNavigation
Type
boolean | undefined
Default
true
Requirement
optional
Prop
hiddenSeries
Type
readonly string[] | undefined
Default
—
Requirement
optional
Prop
defaultHiddenSeries
Type
readonly string[] | undefined
Default
() => []
Requirement
optional
Prop
activeDatum
Type
string | null | undefined
Default
—
Requirement
optional
Prop
defaultActiveDatum
Type
string | null | undefined
Default
null
Requirement
optional
Prop
speed
Type
number | undefined
Default
—
Requirement
optional
Prop
morphDurationMs
Type
number | undefined
Default
—
Requirement
optional
Prop
replayToken
Type
string | number | undefined
Default
—
Requirement
optional
Prop
theme
Type
PartialChartTheme | undefined
Default
—
Requirement
optional
Prop
title
Type
string | undefined
Default
—
Requirement
optional
Prop
description
Type
string | undefined
Default
—
Requirement
optional
Prop
ariaLabel
Type
string | undefined
Default
—
Requirement
optional
Prop
data
Type
readonly MarimekkoGroup[]
Default
—
Requirement
required

Events

EventPayload
hiddenSeriesChange[ids: readonly string[]]
activeDatumChange[id: string | null]

Content regions

  • dataSummary
  • default

Import

import { ChangeDetectionStrategy, Component } from "@angular/core";
import { GrassrootMarimekkoChart } from "@grassroot/charts-angular";

Props

Prop
Type
Default
Requirement
renderer
ChartRenderer
—
optional
gpuBackend
ChartGpuBackend
—
optional
rendererStrategy
Partial<ChartRendererStrategy>
—
optional
renderPlanMode
"svg" | "host"
"host"
optional
ariaLabel
string
—
optional
title
string
—
optional
description
string
—
optional
theme
PartialChartTheme
—
optional
animation
ChartAnimationInput
—
optional
interactive
boolean
true
optional
keyboardNavigation
boolean
true
optional
tooltip
boolean | TooltipBehaviorConfig
true
optional
legend
boolean | LegendConfig
—
optional
hiddenSeries
readonly string[]
—
optional
Prop
renderer
Type
ChartRenderer
Default
—
Requirement
optional
Prop
gpuBackend
Type
ChartGpuBackend
Default
—
Requirement
optional
Prop
rendererStrategy
Type
Partial<ChartRendererStrategy>
Default
—
Requirement
optional
Prop
renderPlanMode
Type
"svg" | "host"
Default
"host"
Requirement
optional
Prop
ariaLabel
Type
string
Default
—
Requirement
optional
Prop
title
Type
string
Default
—
Requirement
optional
Prop
description
Type
string
Default
—
Requirement
optional
Prop
theme
Type
PartialChartTheme
Default
—
Requirement
optional
Prop
animation
Type
ChartAnimationInput
Default
—
Requirement
optional
Prop
interactive
Type
boolean
Default
true
Requirement
optional
Prop
keyboardNavigation
Type
boolean
Default
true
Requirement
optional
Prop
tooltip
Type
boolean | TooltipBehaviorConfig
Default
true
Requirement
optional
Prop
legend
Type
boolean | LegendConfig
Default
—
Requirement
optional
Prop
hiddenSeries
Type
readonly string[]
Default
—
Requirement
optional
Prop
defaultHiddenSeries
Type
readonly string[]
Default
[]
Requirement
optional
Prop
activeDatum
Type
string | null
Default
—
Requirement
optional
Prop
defaultActiveDatum
Type
string | null
Default
null
Requirement
optional
Prop
speed
Type
number
Default
—
Requirement
optional
Prop
morphDurationMs
Type
number
Default
—
Requirement
optional
Prop
replayToken
Type
string | number
Default
—
Requirement
optional
Prop
data
Type
readonly MarimekkoGroup[]
Default
—
Requirement
required
Prop
width
Type
number
Default
—
Requirement
optional
Prop
height
Type
number
Default
—
Requirement
optional
Prop
showGrid
Type
boolean
Default
—
Requirement
optional
Prop
className
Type
string
Default
—
Requirement
optional

Events

EventPayload
activeDatumChangestring | null
hiddenSeriesChangereadonly string[]

Content regions

  • dataSummary
  • default

Import

import { MarimekkoChart } from "@grassroot/charts-svelte";

Props

Prop
Type
Default
Requirement
data
readonly MarimekkoGroup[]
—
required
onHiddenSeriesChange
(ids: readonly string[]) => void
—
optional
onActiveDatumChange
(id: string | null) => void
—
optional
class
string
—
optional
style
string
—
optional
width
number
—
optional
height
number
—
optional
renderer
ChartRenderer
—
optional
gpuBackend
ChartGpuBackend
—
optional
rendererStrategy
Partial<ChartRendererStrategy>
—
optional
renderPlanMode
"svg" | "host"
"host"
optional
showGrid
boolean
—
optional
legend
boolean | LegendConfig
false
optional
tooltip
boolean | TooltipBehaviorConfig
true
optional
Prop
data
Type
readonly MarimekkoGroup[]
Default
—
Requirement
required
Prop
onHiddenSeriesChange
Type
(ids: readonly string[]) => void
Default
—
Requirement
optional
Prop
onActiveDatumChange
Type
(id: string | null) => void
Default
—
Requirement
optional
Prop
class
Type
string
Default
—
Requirement
optional
Prop
style
Type
string
Default
—
Requirement
optional
Prop
width
Type
number
Default
—
Requirement
optional
Prop
height
Type
number
Default
—
Requirement
optional
Prop
renderer
Type
ChartRenderer
Default
—
Requirement
optional
Prop
gpuBackend
Type
ChartGpuBackend
Default
—
Requirement
optional
Prop
rendererStrategy
Type
Partial<ChartRendererStrategy>
Default
—
Requirement
optional
Prop
renderPlanMode
Type
"svg" | "host"
Default
"host"
Requirement
optional
Prop
showGrid
Type
boolean
Default
—
Requirement
optional
Prop
legend
Type
boolean | LegendConfig
Default
false
Requirement
optional
Prop
tooltip
Type
boolean | TooltipBehaviorConfig
Default
true
Requirement
optional
Prop
animation
Type
ChartAnimationInput
Default
—
Requirement
optional
Prop
interactive
Type
boolean
Default
true
Requirement
optional
Prop
keyboardNavigation
Type
boolean
Default
true
Requirement
optional
Prop
hiddenSeries
Type
readonly string[]
Default
—
Requirement
optional
Prop
defaultHiddenSeries
Type
readonly string[]
Default
—
Requirement
optional
Prop
activeDatum
Type
string | null
Default
—
Requirement
optional
Prop
defaultActiveDatum
Type
string | null
Default
—
Requirement
optional
Prop
speed
Type
number
Default
—
Requirement
optional
Prop
morphDurationMs
Type
number
Default
—
Requirement
optional
Prop
replayToken
Type
string | number
Default
—
Requirement
optional
Prop
theme
Type
PartialChartTheme
Default
—
Requirement
optional
Prop
title
Type
string
Default
—
Requirement
optional
Prop
description
Type
string
Default
—
Requirement
optional
Prop
ariaLabel
Type
string
Default
—
Requirement
optional

Events

EventPayload
onHiddenSeriesChange(ids: readonly string[]) => void
onActiveDatumChange(id: string | null) => void

Content regions

  • children
  • dataSummary

Import

import { MarimekkoChart } from "@grassroot/charts-solid";

Props

Prop
Type
Default
Requirement
data
readonly MarimekkoGroup[]
—
required
onActiveDatumChange
(id: string | null) => void
—
optional
onHiddenSeriesChange
(ids: readonly string[]) => void
—
optional
class
string
—
optional
style
JSX.CSSProperties
—
optional
width
number
—
optional
height
number
—
optional
renderer
ChartRenderer
—
optional
gpuBackend
ChartGpuBackend
"auto"
optional
rendererStrategy
Partial<ChartRendererStrategy>
—
optional
renderPlanMode
"svg" | "host"
"host"
optional
showGrid
boolean
—
optional
legend
boolean | LegendConfig
—
optional
tooltip
boolean | TooltipBehaviorConfig
—
optional
Prop
data
Type
readonly MarimekkoGroup[]
Default
—
Requirement
required
Prop
onActiveDatumChange
Type
(id: string | null) => void
Default
—
Requirement
optional
Prop
onHiddenSeriesChange
Type
(ids: readonly string[]) => void
Default
—
Requirement
optional
Prop
class
Type
string
Default
—
Requirement
optional
Prop
style
Type
JSX.CSSProperties
Default
—
Requirement
optional
Prop
width
Type
number
Default
—
Requirement
optional
Prop
height
Type
number
Default
—
Requirement
optional
Prop
renderer
Type
ChartRenderer
Default
—
Requirement
optional
Prop
gpuBackend
Type
ChartGpuBackend
Default
"auto"
Requirement
optional
Prop
rendererStrategy
Type
Partial<ChartRendererStrategy>
Default
—
Requirement
optional
Prop
renderPlanMode
Type
"svg" | "host"
Default
"host"
Requirement
optional
Prop
showGrid
Type
boolean
Default
—
Requirement
optional
Prop
legend
Type
boolean | LegendConfig
Default
—
Requirement
optional
Prop
tooltip
Type
boolean | TooltipBehaviorConfig
Default
—
Requirement
optional
Prop
animation
Type
ChartAnimationInput
Default
—
Requirement
optional
Prop
interactive
Type
boolean
Default
—
Requirement
optional
Prop
keyboardNavigation
Type
boolean
Default
—
Requirement
optional
Prop
hiddenSeries
Type
readonly string[]
Default
—
Requirement
optional
Prop
defaultHiddenSeries
Type
readonly string[]
Default
—
Requirement
optional
Prop
activeDatum
Type
string | null
Default
—
Requirement
optional
Prop
defaultActiveDatum
Type
string | null
Default
—
Requirement
optional
Prop
speed
Type
number
Default
—
Requirement
optional
Prop
morphDurationMs
Type
number
Default
—
Requirement
optional
Prop
replayToken
Type
string | number
Default
—
Requirement
optional
Prop
theme
Type
PartialChartTheme
Default
—
Requirement
optional
Prop
title
Type
string
Default
—
Requirement
optional
Prop
description
Type
string
Default
—
Requirement
optional
Prop
ariaLabel
Type
string
Default
—
Requirement
optional

Events

EventPayload
onActiveDatumChange(id: string | null) => void
onHiddenSeriesChange(ids: readonly string[]) => void

Content regions

  • children
  • dataSummary