+ {showTooltip && (
+
+
+ switchToMark(MarkTypes.POINT)}
+ >
+
+
+ switchToMark(MarkTypes.LINE)}
+ >
+
+
+ switchToMark(MarkTypes.AREA)}
+ >
+
+
+ switchToMark(MarkTypes.BAR)}
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )}
+ {children}
+
+ );
+}
diff --git a/dashi/src/lib/types/state/component.ts b/dashi/src/lib/types/state/component.ts
index 8b4020ab..eb55dcbf 100644
--- a/dashi/src/lib/types/state/component.ts
+++ b/dashi/src/lib/types/state/component.ts
@@ -1,5 +1,6 @@
import { type CSSProperties } from "react";
import type { VisualizationSpec } from "react-vega";
+import type { TopLevelParameter } from "vega-lite/src/spec/toplevel";
export type ComponentType = "Button" | "Checkbox" | "Dropdown" | "Plot" | "Box";
@@ -37,13 +38,17 @@ export interface CheckboxState extends ComponentState {
export interface PlotState extends ComponentState {
type: "Plot";
- chart:
- | (VisualizationSpec & {
- datasets?: Record