@elaraai/east-ui 0.0.1-beta.3 → 0.0.1-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/src/buttons/button/index.d.ts +57 -0
- package/dist/src/buttons/button/index.d.ts.map +1 -1
- package/dist/src/buttons/button/index.js +57 -0
- package/dist/src/buttons/button/index.js.map +1 -1
- package/dist/src/buttons/icon-button/index.d.ts +62 -0
- package/dist/src/buttons/icon-button/index.d.ts.map +1 -1
- package/dist/src/buttons/icon-button/index.js +62 -0
- package/dist/src/buttons/icon-button/index.js.map +1 -1
- package/dist/src/charts/index.d.ts +603 -18
- package/dist/src/charts/index.d.ts.map +1 -1
- package/dist/src/charts/index.js +603 -20
- package/dist/src/charts/index.js.map +1 -1
- package/dist/src/charts/sparkline/index.d.ts +47 -0
- package/dist/src/charts/sparkline/index.d.ts.map +1 -1
- package/dist/src/charts/sparkline/index.js +47 -0
- package/dist/src/charts/sparkline/index.js.map +1 -1
- package/dist/src/collections/data-list/index.d.ts +89 -0
- package/dist/src/collections/data-list/index.d.ts.map +1 -1
- package/dist/src/collections/data-list/index.js +89 -0
- package/dist/src/collections/data-list/index.js.map +1 -1
- package/dist/src/collections/gantt/index.d.ts +692 -4
- package/dist/src/collections/gantt/index.d.ts.map +1 -1
- package/dist/src/collections/gantt/index.js +177 -4
- package/dist/src/collections/gantt/index.js.map +1 -1
- package/dist/src/collections/table/index.d.ts +511 -0
- package/dist/src/collections/table/index.d.ts.map +1 -1
- package/dist/src/collections/table/index.js +99 -0
- package/dist/src/collections/table/index.js.map +1 -1
- package/dist/src/collections/tree-view/index.d.ts +170 -0
- package/dist/src/collections/tree-view/index.d.ts.map +1 -1
- package/dist/src/collections/tree-view/index.js +170 -0
- package/dist/src/collections/tree-view/index.js.map +1 -1
- package/dist/src/component.d.ts +103 -0
- package/dist/src/component.d.ts.map +1 -1
- package/dist/src/component.js +15 -1
- package/dist/src/component.js.map +1 -1
- package/dist/src/container/card/index.d.ts +266 -0
- package/dist/src/container/card/index.d.ts.map +1 -1
- package/dist/src/container/card/index.js +60 -0
- package/dist/src/container/card/index.js.map +1 -1
- package/dist/src/disclosure/accordion/index.d.ts +495 -0
- package/dist/src/disclosure/accordion/index.d.ts.map +1 -1
- package/dist/src/disclosure/accordion/index.js +83 -0
- package/dist/src/disclosure/accordion/index.js.map +1 -1
- package/dist/src/disclosure/carousel/index.d.ts +266 -4
- package/dist/src/disclosure/carousel/index.d.ts.map +1 -1
- package/dist/src/disclosure/carousel/index.js +60 -4
- package/dist/src/disclosure/carousel/index.js.map +1 -1
- package/dist/src/disclosure/tabs/index.d.ts +591 -0
- package/dist/src/disclosure/tabs/index.d.ts.map +1 -1
- package/dist/src/disclosure/tabs/index.js +179 -0
- package/dist/src/disclosure/tabs/index.js.map +1 -1
- package/dist/src/display/avatar/index.d.ts +35 -0
- package/dist/src/display/avatar/index.d.ts.map +1 -1
- package/dist/src/display/avatar/index.js +35 -0
- package/dist/src/display/avatar/index.js.map +1 -1
- package/dist/src/display/badge/index.d.ts +35 -0
- package/dist/src/display/badge/index.d.ts.map +1 -1
- package/dist/src/display/badge/index.js +35 -0
- package/dist/src/display/badge/index.js.map +1 -1
- package/dist/src/display/icon/index.d.ts +78 -6
- package/dist/src/display/icon/index.d.ts.map +1 -1
- package/dist/src/display/icon/index.js +78 -6
- package/dist/src/display/icon/index.js.map +1 -1
- package/dist/src/display/stat/index.d.ts +67 -2
- package/dist/src/display/stat/index.d.ts.map +1 -1
- package/dist/src/display/stat/index.js +68 -3
- package/dist/src/display/stat/index.js.map +1 -1
- package/dist/src/display/tag/index.d.ts +48 -0
- package/dist/src/display/tag/index.d.ts.map +1 -1
- package/dist/src/display/tag/index.js +48 -0
- package/dist/src/display/tag/index.js.map +1 -1
- package/dist/src/feedback/alert/index.d.ts +64 -0
- package/dist/src/feedback/alert/index.d.ts.map +1 -1
- package/dist/src/feedback/alert/index.js +64 -0
- package/dist/src/feedback/alert/index.js.map +1 -1
- package/dist/src/feedback/progress/index.d.ts +54 -0
- package/dist/src/feedback/progress/index.d.ts.map +1 -1
- package/dist/src/feedback/progress/index.js +54 -0
- package/dist/src/feedback/progress/index.js.map +1 -1
- package/dist/src/forms/checkbox/index.d.ts +38 -0
- package/dist/src/forms/checkbox/index.d.ts.map +1 -1
- package/dist/src/forms/checkbox/index.js +38 -0
- package/dist/src/forms/checkbox/index.js.map +1 -1
- package/dist/src/forms/field/index.d.ts +248 -0
- package/dist/src/forms/field/index.d.ts.map +1 -1
- package/dist/src/forms/field/index.js +42 -0
- package/dist/src/forms/field/index.js.map +1 -1
- package/dist/src/forms/fieldset/index.d.ts +30 -3
- package/dist/src/forms/fieldset/index.d.ts.map +1 -1
- package/dist/src/forms/fieldset/index.js +30 -3
- package/dist/src/forms/fieldset/index.js.map +1 -1
- package/dist/src/forms/file-upload/index.d.ts +48 -4
- package/dist/src/forms/file-upload/index.d.ts.map +1 -1
- package/dist/src/forms/file-upload/index.js +48 -4
- package/dist/src/forms/file-upload/index.js.map +1 -1
- package/dist/src/forms/input/index.d.ts +93 -14
- package/dist/src/forms/input/index.d.ts.map +1 -1
- package/dist/src/forms/input/index.js +93 -14
- package/dist/src/forms/input/index.js.map +1 -1
- package/dist/src/forms/select/index.d.ts +10 -6
- package/dist/src/forms/select/index.d.ts.map +1 -1
- package/dist/src/forms/select/index.js +10 -6
- package/dist/src/forms/select/index.js.map +1 -1
- package/dist/src/forms/slider/index.d.ts +15 -0
- package/dist/src/forms/slider/index.d.ts.map +1 -1
- package/dist/src/forms/slider/index.js +15 -0
- package/dist/src/forms/slider/index.js.map +1 -1
- package/dist/src/forms/switch/index.d.ts +20 -0
- package/dist/src/forms/switch/index.d.ts.map +1 -1
- package/dist/src/forms/switch/index.js +20 -0
- package/dist/src/forms/switch/index.js.map +1 -1
- package/dist/src/forms/tags-input/index.d.ts +33 -4
- package/dist/src/forms/tags-input/index.d.ts.map +1 -1
- package/dist/src/forms/tags-input/index.js +33 -4
- package/dist/src/forms/tags-input/index.js.map +1 -1
- package/dist/src/forms/textarea/index.d.ts +36 -4
- package/dist/src/forms/textarea/index.d.ts.map +1 -1
- package/dist/src/forms/textarea/index.js +36 -4
- package/dist/src/forms/textarea/index.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/layout/box/index.d.ts +341 -0
- package/dist/src/layout/box/index.d.ts.map +1 -1
- package/dist/src/layout/box/index.js +135 -0
- package/dist/src/layout/box/index.js.map +1 -1
- package/dist/src/layout/grid/index.d.ts +515 -0
- package/dist/src/layout/grid/index.d.ts.map +1 -1
- package/dist/src/layout/grid/index.js +103 -0
- package/dist/src/layout/grid/index.js.map +1 -1
- package/dist/src/layout/separator/index.d.ts +41 -0
- package/dist/src/layout/separator/index.d.ts.map +1 -1
- package/dist/src/layout/separator/index.js +41 -0
- package/dist/src/layout/separator/index.js.map +1 -1
- package/dist/src/layout/splitter/index.d.ts +504 -0
- package/dist/src/layout/splitter/index.d.ts.map +1 -1
- package/dist/src/layout/splitter/index.js +92 -0
- package/dist/src/layout/splitter/index.js.map +1 -1
- package/dist/src/layout/stack/index.d.ts +364 -0
- package/dist/src/layout/stack/index.d.ts.map +1 -1
- package/dist/src/layout/stack/index.js +158 -0
- package/dist/src/layout/stack/index.js.map +1 -1
- package/dist/src/overlays/action-bar/index.d.ts +105 -0
- package/dist/src/overlays/action-bar/index.d.ts.map +1 -1
- package/dist/src/overlays/action-bar/index.js +105 -0
- package/dist/src/overlays/action-bar/index.js.map +1 -1
- package/dist/src/overlays/dialog/index.d.ts +500 -0
- package/dist/src/overlays/dialog/index.d.ts.map +1 -1
- package/dist/src/overlays/dialog/index.js +88 -0
- package/dist/src/overlays/dialog/index.js.map +1 -1
- package/dist/src/overlays/drawer/index.d.ts +476 -0
- package/dist/src/overlays/drawer/index.d.ts.map +1 -1
- package/dist/src/overlays/drawer/index.js +64 -0
- package/dist/src/overlays/drawer/index.js.map +1 -1
- package/dist/src/overlays/hover-card/index.d.ts +489 -0
- package/dist/src/overlays/hover-card/index.d.ts.map +1 -1
- package/dist/src/overlays/hover-card/index.js +77 -0
- package/dist/src/overlays/hover-card/index.js.map +1 -1
- package/dist/src/overlays/menu/index.d.ts +338 -8
- package/dist/src/overlays/menu/index.d.ts.map +1 -1
- package/dist/src/overlays/menu/index.js +132 -8
- package/dist/src/overlays/menu/index.js.map +1 -1
- package/dist/src/overlays/popover/index.d.ts +496 -0
- package/dist/src/overlays/popover/index.d.ts.map +1 -1
- package/dist/src/overlays/popover/index.js +84 -0
- package/dist/src/overlays/popover/index.js.map +1 -1
- package/dist/src/overlays/toggle-tip/index.d.ts +273 -0
- package/dist/src/overlays/toggle-tip/index.d.ts.map +1 -1
- package/dist/src/overlays/toggle-tip/index.js +67 -0
- package/dist/src/overlays/toggle-tip/index.js.map +1 -1
- package/dist/src/overlays/tooltip/index.d.ts +284 -0
- package/dist/src/overlays/tooltip/index.d.ts.map +1 -1
- package/dist/src/overlays/tooltip/index.js +78 -0
- package/dist/src/overlays/tooltip/index.js.map +1 -1
- package/dist/src/typography/code/index.d.ts +61 -0
- package/dist/src/typography/code/index.d.ts.map +1 -0
- package/dist/src/typography/code/index.js +65 -0
- package/dist/src/typography/code/index.js.map +1 -0
- package/dist/src/typography/code/types.d.ts +56 -0
- package/dist/src/typography/code/types.d.ts.map +1 -0
- package/dist/src/typography/code/types.js +39 -0
- package/dist/src/typography/code/types.js.map +1 -0
- package/dist/src/typography/code-block/index.d.ts +86 -0
- package/dist/src/typography/code-block/index.d.ts.map +1 -0
- package/dist/src/typography/code-block/index.js +78 -0
- package/dist/src/typography/code-block/index.js.map +1 -0
- package/dist/src/typography/code-block/types.d.ts +100 -0
- package/dist/src/typography/code-block/types.d.ts.map +1 -0
- package/dist/src/typography/code-block/types.js +70 -0
- package/dist/src/typography/code-block/types.js.map +1 -0
- package/dist/src/typography/heading/index.d.ts +92 -0
- package/dist/src/typography/heading/index.d.ts.map +1 -0
- package/dist/src/typography/heading/index.js +73 -0
- package/dist/src/typography/heading/index.js.map +1 -0
- package/dist/src/typography/heading/types.d.ts +108 -0
- package/dist/src/typography/heading/types.d.ts.map +1 -0
- package/dist/src/typography/heading/types.js +76 -0
- package/dist/src/typography/heading/types.js.map +1 -0
- package/dist/src/typography/highlight/index.d.ts +48 -0
- package/dist/src/typography/highlight/index.d.ts.map +1 -0
- package/dist/src/typography/highlight/index.js +60 -0
- package/dist/src/typography/highlight/index.js.map +1 -0
- package/dist/src/typography/highlight/types.d.ts +26 -0
- package/dist/src/typography/highlight/types.d.ts.map +1 -0
- package/dist/src/typography/highlight/types.js +21 -0
- package/dist/src/typography/highlight/types.js.map +1 -0
- package/dist/src/typography/index.d.ts +16 -120
- package/dist/src/typography/index.d.ts.map +1 -1
- package/dist/src/typography/index.js +24 -128
- package/dist/src/typography/index.js.map +1 -1
- package/dist/src/typography/link/index.d.ts +56 -0
- package/dist/src/typography/link/index.d.ts.map +1 -0
- package/dist/src/typography/link/index.js +66 -0
- package/dist/src/typography/link/index.js.map +1 -0
- package/dist/src/typography/link/types.d.ts +49 -0
- package/dist/src/typography/link/types.d.ts.map +1 -0
- package/dist/src/typography/link/types.js +38 -0
- package/dist/src/typography/link/types.js.map +1 -0
- package/dist/src/typography/list/index.d.ts +59 -0
- package/dist/src/typography/list/index.d.ts.map +1 -0
- package/dist/src/typography/list/index.js +61 -0
- package/dist/src/typography/list/index.js.map +1 -0
- package/dist/src/typography/list/types.d.ts +47 -0
- package/dist/src/typography/list/types.d.ts.map +1 -0
- package/dist/src/typography/list/types.js +36 -0
- package/dist/src/typography/list/types.js.map +1 -0
- package/dist/src/typography/mark/index.d.ts +57 -0
- package/dist/src/typography/mark/index.d.ts.map +1 -0
- package/dist/src/typography/mark/index.js +58 -0
- package/dist/src/typography/mark/index.js.map +1 -0
- package/dist/src/typography/mark/types.d.ts +49 -0
- package/dist/src/typography/mark/types.d.ts.map +1 -0
- package/dist/src/typography/mark/types.js +38 -0
- package/dist/src/typography/mark/types.js.map +1 -0
- package/dist/src/typography/text/index.d.ts +122 -0
- package/dist/src/typography/text/index.d.ts.map +1 -0
- package/dist/src/typography/text/index.js +130 -0
- package/dist/src/typography/text/index.js.map +1 -0
- package/dist/src/typography/{types.d.ts → text/types.d.ts} +2 -2
- package/dist/src/typography/text/types.d.ts.map +1 -0
- package/dist/src/typography/{types.js → text/types.js} +1 -1
- package/dist/src/typography/text/types.js.map +1 -0
- package/package.json +1 -1
- package/dist/src/typography/types.d.ts.map +0 -1
- package/dist/src/typography/types.js.map +0 -1
|
@@ -67,54 +67,394 @@ import { ChartSeries, ChartSort, StackOffset, BarLayout, ChartGrid, ChartLegend,
|
|
|
67
67
|
* ```
|
|
68
68
|
*/
|
|
69
69
|
export declare const Chart: {
|
|
70
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* Creates an Area chart component.
|
|
72
|
+
*
|
|
73
|
+
* @param data - Array of data points
|
|
74
|
+
* @param series - Series configuration keyed by field names
|
|
75
|
+
* @param style - Optional styling configuration
|
|
76
|
+
* @returns An East expression representing the area chart component
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* Area charts display quantitative data as filled areas under lines.
|
|
80
|
+
* Supports stacking for showing part-to-whole relationships.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* import { East } from "@elaraai/east";
|
|
85
|
+
* import { Chart, UIComponentType } from "@elaraai/east-ui";
|
|
86
|
+
*
|
|
87
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
88
|
+
* return Chart.Area(
|
|
89
|
+
* [
|
|
90
|
+
* { month: "Jan", revenue: 186n, profit: 80n },
|
|
91
|
+
* { month: "Feb", revenue: 305n, profit: 120n },
|
|
92
|
+
* ],
|
|
93
|
+
* {
|
|
94
|
+
* revenue: { color: "teal.solid" },
|
|
95
|
+
* profit: { color: "purple.solid" },
|
|
96
|
+
* },
|
|
97
|
+
* { xAxis: Chart.Axis({ dataKey: "month" }) }
|
|
98
|
+
* );
|
|
99
|
+
* });
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
71
102
|
readonly Area: typeof createAreaChart;
|
|
72
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* Creates a Bar chart component.
|
|
105
|
+
*
|
|
106
|
+
* @param data - Array of data points
|
|
107
|
+
* @param series - Series configuration keyed by field names
|
|
108
|
+
* @param style - Optional styling configuration
|
|
109
|
+
* @returns An East expression representing the bar chart component
|
|
110
|
+
*
|
|
111
|
+
* @remarks
|
|
112
|
+
* Bar charts display categorical data with rectangular bars.
|
|
113
|
+
* Supports vertical and horizontal layouts, stacked and grouped modes.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```ts
|
|
117
|
+
* import { East } from "@elaraai/east";
|
|
118
|
+
* import { Chart, UIComponentType } from "@elaraai/east-ui";
|
|
119
|
+
*
|
|
120
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
121
|
+
* return Chart.Bar(
|
|
122
|
+
* [
|
|
123
|
+
* { category: "A", value: 100n },
|
|
124
|
+
* { category: "B", value: 200n },
|
|
125
|
+
* ],
|
|
126
|
+
* { value: { color: "blue.solid" } },
|
|
127
|
+
* { xAxis: Chart.Axis({ dataKey: "category" }) }
|
|
128
|
+
* );
|
|
129
|
+
* });
|
|
130
|
+
* ```
|
|
131
|
+
*/
|
|
73
132
|
readonly Bar: typeof createBarChart;
|
|
74
|
-
/**
|
|
133
|
+
/**
|
|
134
|
+
* Creates a Line chart component.
|
|
135
|
+
*
|
|
136
|
+
* @param data - Array of data points
|
|
137
|
+
* @param series - Series configuration keyed by field names
|
|
138
|
+
* @param style - Optional styling configuration
|
|
139
|
+
* @returns An East expression representing the line chart component
|
|
140
|
+
*
|
|
141
|
+
* @remarks
|
|
142
|
+
* Line charts display data points connected by line segments.
|
|
143
|
+
* Ideal for showing trends over time.
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```ts
|
|
147
|
+
* import { East } from "@elaraai/east";
|
|
148
|
+
* import { Chart, UIComponentType } from "@elaraai/east-ui";
|
|
149
|
+
*
|
|
150
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
151
|
+
* return Chart.Line(
|
|
152
|
+
* [
|
|
153
|
+
* { month: "Jan", revenue: 186n, profit: 80n },
|
|
154
|
+
* { month: "Feb", revenue: 305n, profit: 120n },
|
|
155
|
+
* ],
|
|
156
|
+
* {
|
|
157
|
+
* revenue: { color: "teal.solid" },
|
|
158
|
+
* profit: { color: "purple.solid" },
|
|
159
|
+
* },
|
|
160
|
+
* {
|
|
161
|
+
* xAxis: Chart.Axis({ dataKey: "month" }),
|
|
162
|
+
* showDots: true,
|
|
163
|
+
* }
|
|
164
|
+
* );
|
|
165
|
+
* });
|
|
166
|
+
* ```
|
|
167
|
+
*/
|
|
75
168
|
readonly Line: typeof createLineChart;
|
|
76
|
-
/**
|
|
169
|
+
/**
|
|
170
|
+
* Creates a Scatter chart component.
|
|
171
|
+
*
|
|
172
|
+
* @param data - Array of data points
|
|
173
|
+
* @param series - Series configuration keyed by field names
|
|
174
|
+
* @param style - Optional styling configuration
|
|
175
|
+
* @returns An East expression representing the scatter chart component
|
|
176
|
+
*
|
|
177
|
+
* @remarks
|
|
178
|
+
* Scatter charts display individual data points on a coordinate plane.
|
|
179
|
+
* Ideal for showing relationships between two variables.
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* ```ts
|
|
183
|
+
* import { East } from "@elaraai/east";
|
|
184
|
+
* import { Chart, UIComponentType } from "@elaraai/east-ui";
|
|
185
|
+
*
|
|
186
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
187
|
+
* return Chart.Scatter(
|
|
188
|
+
* [
|
|
189
|
+
* { x: 10n, y: 30n },
|
|
190
|
+
* { x: 20n, y: 40n },
|
|
191
|
+
* ],
|
|
192
|
+
* { y: { color: "purple.solid" } },
|
|
193
|
+
* { xAxis: Chart.Axis({ dataKey: "x" }) }
|
|
194
|
+
* );
|
|
195
|
+
* });
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
77
198
|
readonly Scatter: typeof createScatterChart;
|
|
78
|
-
/**
|
|
199
|
+
/**
|
|
200
|
+
* Creates a Pie or Donut chart component.
|
|
201
|
+
*
|
|
202
|
+
* @param data - Array of slice data
|
|
203
|
+
* @param style - Optional styling configuration
|
|
204
|
+
* @returns An East expression representing the pie chart component
|
|
205
|
+
*
|
|
206
|
+
* @remarks
|
|
207
|
+
* Pie charts display proportional data as slices of a circle.
|
|
208
|
+
* Set innerRadius for a donut chart appearance.
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* ```ts
|
|
212
|
+
* import { East } from "@elaraai/east";
|
|
213
|
+
* import { Chart, UIComponentType } from "@elaraai/east-ui";
|
|
214
|
+
*
|
|
215
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
216
|
+
* return Chart.Pie(
|
|
217
|
+
* [
|
|
218
|
+
* { name: "Chrome", value: 275n, color: "blue.solid" },
|
|
219
|
+
* { name: "Safari", value: 200n, color: "green.solid" },
|
|
220
|
+
* ],
|
|
221
|
+
* { showLabels: true }
|
|
222
|
+
* );
|
|
223
|
+
* });
|
|
224
|
+
* ```
|
|
225
|
+
*/
|
|
79
226
|
readonly Pie: typeof createPieChart;
|
|
80
|
-
/**
|
|
227
|
+
/**
|
|
228
|
+
* Creates a Radar chart component.
|
|
229
|
+
*
|
|
230
|
+
* @param data - Array of data points
|
|
231
|
+
* @param series - Series configuration keyed by field names
|
|
232
|
+
* @param style - Optional styling configuration
|
|
233
|
+
* @returns An East expression representing the radar chart component
|
|
234
|
+
*
|
|
235
|
+
* @remarks
|
|
236
|
+
* Radar charts display multivariate data on radial axes.
|
|
237
|
+
* Useful for comparing multiple attributes across entities.
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* ```ts
|
|
241
|
+
* import { East } from "@elaraai/east";
|
|
242
|
+
* import { Chart, UIComponentType } from "@elaraai/east-ui";
|
|
243
|
+
*
|
|
244
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
245
|
+
* return Chart.Radar(
|
|
246
|
+
* [
|
|
247
|
+
* { subject: "Math", A: 120n, B: 110n },
|
|
248
|
+
* { subject: "English", A: 98n, B: 130n },
|
|
249
|
+
* ],
|
|
250
|
+
* {
|
|
251
|
+
* A: { color: "teal.solid" },
|
|
252
|
+
* B: { color: "purple.solid" },
|
|
253
|
+
* },
|
|
254
|
+
* { dataKey: "subject" }
|
|
255
|
+
* );
|
|
256
|
+
* });
|
|
257
|
+
* ```
|
|
258
|
+
*/
|
|
81
259
|
readonly Radar: typeof createRadarChart;
|
|
82
|
-
/**
|
|
260
|
+
/**
|
|
261
|
+
* Creates a BarList component (Chakra-native horizontal bars).
|
|
262
|
+
*
|
|
263
|
+
* @param data - Array of bar items with name, value, and optional color/href
|
|
264
|
+
* @param style - Optional styling configuration
|
|
265
|
+
* @returns An East expression representing the bar list component
|
|
266
|
+
*
|
|
267
|
+
* @remarks
|
|
268
|
+
* BarList displays horizontal comparison bars with labels and values.
|
|
269
|
+
* Native Chakra component, not Recharts-based.
|
|
270
|
+
*
|
|
271
|
+
* @example
|
|
272
|
+
* ```ts
|
|
273
|
+
* import { East } from "@elaraai/east";
|
|
274
|
+
* import { Chart, UIComponentType } from "@elaraai/east-ui";
|
|
275
|
+
*
|
|
276
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
277
|
+
* return Chart.BarList(
|
|
278
|
+
* [
|
|
279
|
+
* { name: "Chrome", value: 275n },
|
|
280
|
+
* { name: "Safari", value: 200n },
|
|
281
|
+
* ],
|
|
282
|
+
* { colorPalette: "blue", showValue: true }
|
|
283
|
+
* );
|
|
284
|
+
* });
|
|
285
|
+
* ```
|
|
286
|
+
*/
|
|
83
287
|
readonly BarList: typeof createBarList;
|
|
84
|
-
/**
|
|
288
|
+
/**
|
|
289
|
+
* Creates a BarSegment component (proportional horizontal segments).
|
|
290
|
+
*
|
|
291
|
+
* @param data - Array of segment items with name, value, and optional color
|
|
292
|
+
* @param style - Optional styling configuration
|
|
293
|
+
* @returns An East expression representing the bar segment component
|
|
294
|
+
*
|
|
295
|
+
* @remarks
|
|
296
|
+
* BarSegment displays proportional segments in a single horizontal bar.
|
|
297
|
+
* Native Chakra component for showing percentage breakdowns.
|
|
298
|
+
*
|
|
299
|
+
* @example
|
|
300
|
+
* ```ts
|
|
301
|
+
* import { East } from "@elaraai/east";
|
|
302
|
+
* import { Chart, UIComponentType } from "@elaraai/east-ui";
|
|
303
|
+
*
|
|
304
|
+
* const example = East.function([], UIComponentType, $ => {
|
|
305
|
+
* return Chart.BarSegment(
|
|
306
|
+
* [
|
|
307
|
+
* { name: "Completed", value: 75n, color: "green.solid" },
|
|
308
|
+
* { name: "Remaining", value: 25n, color: "gray.solid" },
|
|
309
|
+
* ],
|
|
310
|
+
* { showLegend: true }
|
|
311
|
+
* );
|
|
312
|
+
* });
|
|
313
|
+
* ```
|
|
314
|
+
*/
|
|
85
315
|
readonly BarSegment: typeof createBarSegment;
|
|
86
|
-
/**
|
|
316
|
+
/**
|
|
317
|
+
* Helper function to create chart series configuration.
|
|
318
|
+
*
|
|
319
|
+
* @param config - Series configuration options
|
|
320
|
+
* @returns A series configuration object
|
|
321
|
+
*
|
|
322
|
+
* @remarks
|
|
323
|
+
* Used to define how a data field is rendered as a series in charts.
|
|
324
|
+
*/
|
|
87
325
|
readonly Series: typeof ChartSeries;
|
|
88
|
-
/**
|
|
326
|
+
/**
|
|
327
|
+
* Helper function to create chart sort configuration.
|
|
328
|
+
*
|
|
329
|
+
* @param config - Sort configuration options
|
|
330
|
+
* @returns A sort configuration object
|
|
331
|
+
*
|
|
332
|
+
* @remarks
|
|
333
|
+
* Used to sort data in BarList and BarSegment charts.
|
|
334
|
+
*/
|
|
89
335
|
readonly Sort: typeof ChartSort;
|
|
90
|
-
/**
|
|
336
|
+
/**
|
|
337
|
+
* Helper function to create chart grid configuration.
|
|
338
|
+
*
|
|
339
|
+
* @param config - Grid configuration options
|
|
340
|
+
* @returns A grid configuration object
|
|
341
|
+
*
|
|
342
|
+
* @remarks
|
|
343
|
+
* Controls the display of grid lines on Cartesian charts.
|
|
344
|
+
*/
|
|
91
345
|
readonly Grid: typeof ChartGrid;
|
|
92
|
-
/**
|
|
346
|
+
/**
|
|
347
|
+
* Helper function to create chart margin configuration.
|
|
348
|
+
*
|
|
349
|
+
* @param config - Margin configuration options
|
|
350
|
+
* @returns A margin configuration object
|
|
351
|
+
*
|
|
352
|
+
* @remarks
|
|
353
|
+
* Sets the margin around the chart content area.
|
|
354
|
+
*/
|
|
93
355
|
readonly Margin: typeof ChartMargin;
|
|
94
|
-
/**
|
|
356
|
+
/**
|
|
357
|
+
* Helper function to create stack offset configuration.
|
|
358
|
+
*
|
|
359
|
+
* @param offset - Stack offset type
|
|
360
|
+
* @returns A stack offset variant
|
|
361
|
+
*
|
|
362
|
+
* @remarks
|
|
363
|
+
* Controls how stacked series are offset (none, expand, wiggle, silhouette).
|
|
364
|
+
*/
|
|
95
365
|
readonly StackOffset: typeof StackOffset;
|
|
96
|
-
/**
|
|
366
|
+
/**
|
|
367
|
+
* Helper function to create bar layout configuration.
|
|
368
|
+
*
|
|
369
|
+
* @param layout - Bar layout type
|
|
370
|
+
* @returns A bar layout variant
|
|
371
|
+
*
|
|
372
|
+
* @remarks
|
|
373
|
+
* Controls bar orientation (horizontal or vertical).
|
|
374
|
+
*/
|
|
97
375
|
readonly BarLayout: typeof BarLayout;
|
|
98
|
-
/**
|
|
376
|
+
/**
|
|
377
|
+
* Helper function to create legend configuration.
|
|
378
|
+
*
|
|
379
|
+
* @param config - Legend configuration options
|
|
380
|
+
* @returns A legend configuration object
|
|
381
|
+
*
|
|
382
|
+
* @remarks
|
|
383
|
+
* Controls the display and positioning of the chart legend.
|
|
384
|
+
*/
|
|
99
385
|
readonly Legend: typeof ChartLegend;
|
|
100
|
-
/**
|
|
386
|
+
/**
|
|
387
|
+
* Helper function to create tooltip configuration.
|
|
388
|
+
*
|
|
389
|
+
* @param config - Tooltip configuration options
|
|
390
|
+
* @returns A tooltip configuration object
|
|
391
|
+
*
|
|
392
|
+
* @remarks
|
|
393
|
+
* Controls the display and behavior of chart tooltips.
|
|
394
|
+
*/
|
|
101
395
|
readonly Tooltip: typeof ChartTooltip;
|
|
102
|
-
/**
|
|
396
|
+
/**
|
|
397
|
+
* Helper function to create axis configuration.
|
|
398
|
+
*
|
|
399
|
+
* @param config - Axis configuration options
|
|
400
|
+
* @returns An axis configuration object
|
|
401
|
+
*
|
|
402
|
+
* @remarks
|
|
403
|
+
* Configures axis labels, tick formats, and visibility.
|
|
404
|
+
*/
|
|
103
405
|
readonly Axis: typeof ChartAxis;
|
|
406
|
+
/**
|
|
407
|
+
* Tick format helpers for axis labels.
|
|
408
|
+
*
|
|
409
|
+
* @remarks
|
|
410
|
+
* Provides type-safe formatters for different number and date formats.
|
|
411
|
+
*/
|
|
104
412
|
readonly TickFormat: {
|
|
413
|
+
/** Format as plain number */
|
|
105
414
|
readonly Number: typeof NumberTickFormat;
|
|
415
|
+
/** Format as currency */
|
|
106
416
|
readonly Currency: typeof CurrencyTickFormat;
|
|
417
|
+
/** Format as percentage */
|
|
107
418
|
readonly Percent: typeof PercentTickFormat;
|
|
419
|
+
/** Format as compact number (K, M, B) */
|
|
108
420
|
readonly Compact: typeof CompactTickFormat;
|
|
421
|
+
/** Format with custom unit */
|
|
109
422
|
readonly Unit: typeof UnitTickFormat;
|
|
423
|
+
/** Format in scientific notation */
|
|
110
424
|
readonly Scientific: typeof ScientificTickFormat;
|
|
425
|
+
/** Format in engineering notation */
|
|
111
426
|
readonly Engineering: typeof EngineeringTickFormat;
|
|
427
|
+
/** Format as date */
|
|
112
428
|
readonly Date: typeof DateTickFormat;
|
|
429
|
+
/** Format as time */
|
|
113
430
|
readonly Time: typeof TimeTickFormat;
|
|
431
|
+
/** Format as date and time */
|
|
114
432
|
readonly DateTime: typeof DateTimeTickFormat;
|
|
115
433
|
};
|
|
116
|
-
/**
|
|
434
|
+
/**
|
|
435
|
+
* East types for all chart components and configuration.
|
|
436
|
+
*
|
|
437
|
+
* @remarks
|
|
438
|
+
* Access these types for serialization or type-checking chart data structures.
|
|
439
|
+
*/
|
|
117
440
|
readonly Types: {
|
|
441
|
+
/**
|
|
442
|
+
* The concrete East type for chart series configuration.
|
|
443
|
+
*
|
|
444
|
+
* @remarks
|
|
445
|
+
* Defines how a data field is rendered as a series in multi-series charts.
|
|
446
|
+
* Mirrors Chakra's useChart series config.
|
|
447
|
+
*
|
|
448
|
+
* @property name - Data key name matching keys in data points (StringType)
|
|
449
|
+
* @property color - Chakra color token e.g. "teal.solid" (OptionType<StringType>)
|
|
450
|
+
* @property stackId - Stack group ID for stacking (OptionType<StringType>)
|
|
451
|
+
* @property label - Display label, defaults to name (OptionType<StringType>)
|
|
452
|
+
* @property stroke - Stroke/line color (OptionType<StringType>)
|
|
453
|
+
* @property strokeWidth - Stroke width in pixels (OptionType<IntegerType>)
|
|
454
|
+
* @property fill - Fill color (OptionType<StringType>)
|
|
455
|
+
* @property fillOpacity - Fill opacity 0-1 (OptionType<FloatType>)
|
|
456
|
+
* @property strokeDasharray - Dash pattern e.g. "5 5" (OptionType<StringType>)
|
|
457
|
+
*/
|
|
118
458
|
readonly Series: import("@elaraai/east").StructType<{
|
|
119
459
|
name: import("@elaraai/east").StringType;
|
|
120
460
|
color: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
@@ -126,6 +466,15 @@ export declare const Chart: {
|
|
|
126
466
|
fillOpacity: import("@elaraai/east").OptionType<import("@elaraai/east").FloatType>;
|
|
127
467
|
strokeDasharray: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
128
468
|
}>;
|
|
469
|
+
/**
|
|
470
|
+
* The concrete East type for chart sort configuration.
|
|
471
|
+
*
|
|
472
|
+
* @remarks
|
|
473
|
+
* Used to sort data in BarList and BarSegment charts.
|
|
474
|
+
*
|
|
475
|
+
* @property by - Data key to sort by (StringType)
|
|
476
|
+
* @property direction - Sort direction asc or desc (ChartSortDirectionType)
|
|
477
|
+
*/
|
|
129
478
|
readonly Sort: import("@elaraai/east").StructType<{
|
|
130
479
|
by: import("@elaraai/east").StringType;
|
|
131
480
|
direction: import("@elaraai/east").VariantType<{
|
|
@@ -133,10 +482,33 @@ export declare const Chart: {
|
|
|
133
482
|
desc: import("@elaraai/east").NullType;
|
|
134
483
|
}>;
|
|
135
484
|
}>;
|
|
485
|
+
/**
|
|
486
|
+
* Sort direction variant type.
|
|
487
|
+
*
|
|
488
|
+
* @remarks
|
|
489
|
+
* Controls ascending or descending sort order for charts.
|
|
490
|
+
*
|
|
491
|
+
* @property asc - Ascending order (smallest to largest)
|
|
492
|
+
* @property desc - Descending order (largest to smallest)
|
|
493
|
+
*/
|
|
136
494
|
readonly SortDirection: import("@elaraai/east").VariantType<{
|
|
137
495
|
asc: import("@elaraai/east").NullType;
|
|
138
496
|
desc: import("@elaraai/east").NullType;
|
|
139
497
|
}>;
|
|
498
|
+
/**
|
|
499
|
+
* The concrete East type for chart axis configuration.
|
|
500
|
+
*
|
|
501
|
+
* @remarks
|
|
502
|
+
* Configures X and Y axis display on Cartesian charts.
|
|
503
|
+
*
|
|
504
|
+
* @property dataKey - Field name for axis values (OptionType<StringType>)
|
|
505
|
+
* @property label - Axis label text (OptionType<StringType>)
|
|
506
|
+
* @property tickFormat - Format for tick labels (OptionType<TickFormatType>)
|
|
507
|
+
* @property hide - Whether to hide the axis (OptionType<BooleanType>)
|
|
508
|
+
* @property domain - Axis domain min/max (OptionType<ArrayType<FloatType>>)
|
|
509
|
+
* @property tickLine - Show tick lines (OptionType<BooleanType>)
|
|
510
|
+
* @property axisLine - Show axis line (OptionType<BooleanType>)
|
|
511
|
+
*/
|
|
140
512
|
readonly Axis: import("@elaraai/east").StructType<{
|
|
141
513
|
dataKey: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
142
514
|
label: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
@@ -327,6 +699,23 @@ export declare const Chart: {
|
|
|
327
699
|
}>>;
|
|
328
700
|
axisId: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
329
701
|
}>;
|
|
702
|
+
/**
|
|
703
|
+
* Tick format variant type for axis labels.
|
|
704
|
+
*
|
|
705
|
+
* @remarks
|
|
706
|
+
* Provides type-safe number and date formatting options for axis ticks.
|
|
707
|
+
*
|
|
708
|
+
* @property Number - Plain number format with decimal places
|
|
709
|
+
* @property Currency - Currency format with symbol and locale
|
|
710
|
+
* @property Percent - Percentage format
|
|
711
|
+
* @property Compact - Compact notation (K, M, B)
|
|
712
|
+
* @property Unit - Custom unit suffix
|
|
713
|
+
* @property Scientific - Scientific notation
|
|
714
|
+
* @property Engineering - Engineering notation
|
|
715
|
+
* @property Date - Date format
|
|
716
|
+
* @property Time - Time format
|
|
717
|
+
* @property DateTime - Date and time format
|
|
718
|
+
*/
|
|
330
719
|
readonly TickFormat: import("@elaraai/east").VariantType<{
|
|
331
720
|
number: import("@elaraai/east").StructType<{
|
|
332
721
|
minimumFractionDigits: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
@@ -500,6 +889,19 @@ export declare const Chart: {
|
|
|
500
889
|
hour12: import("@elaraai/east").OptionType<import("@elaraai/east").BooleanType>;
|
|
501
890
|
}>;
|
|
502
891
|
}>;
|
|
892
|
+
/**
|
|
893
|
+
* Curve type variant for line interpolation.
|
|
894
|
+
*
|
|
895
|
+
* @remarks
|
|
896
|
+
* Controls how line segments are interpolated between data points.
|
|
897
|
+
*
|
|
898
|
+
* @property linear - Straight line segments
|
|
899
|
+
* @property natural - Natural cubic spline (smooth)
|
|
900
|
+
* @property monotone - Monotone cubic interpolation (no overshoot)
|
|
901
|
+
* @property step - Step function (horizontal then vertical)
|
|
902
|
+
* @property stepBefore - Step before the point
|
|
903
|
+
* @property stepAfter - Step after the point
|
|
904
|
+
*/
|
|
503
905
|
readonly Curve: import("@elaraai/east").VariantType<{
|
|
504
906
|
linear: import("@elaraai/east").NullType;
|
|
505
907
|
natural: import("@elaraai/east").NullType;
|
|
@@ -508,16 +910,57 @@ export declare const Chart: {
|
|
|
508
910
|
stepBefore: import("@elaraai/east").NullType;
|
|
509
911
|
stepAfter: import("@elaraai/east").NullType;
|
|
510
912
|
}>;
|
|
913
|
+
/**
|
|
914
|
+
* Stack offset variant type.
|
|
915
|
+
*
|
|
916
|
+
* @remarks
|
|
917
|
+
* Controls how stacked series are offset relative to each other.
|
|
918
|
+
*
|
|
919
|
+
* @property none - No offset, standard stacking from zero
|
|
920
|
+
* @property expand - Normalize to percentage (0-100%)
|
|
921
|
+
* @property wiggle - Minimize deviation from center
|
|
922
|
+
* @property silhouette - Center the baseline
|
|
923
|
+
*/
|
|
511
924
|
readonly StackOffset: import("@elaraai/east").VariantType<{
|
|
512
925
|
none: import("@elaraai/east").NullType;
|
|
513
926
|
expand: import("@elaraai/east").NullType;
|
|
514
927
|
wiggle: import("@elaraai/east").NullType;
|
|
515
928
|
silhouette: import("@elaraai/east").NullType;
|
|
516
929
|
}>;
|
|
930
|
+
/**
|
|
931
|
+
* Bar layout variant type.
|
|
932
|
+
*
|
|
933
|
+
* @remarks
|
|
934
|
+
* Controls the orientation of bars in bar charts.
|
|
935
|
+
*
|
|
936
|
+
* @property horizontal - Bars extend horizontally (category on Y axis)
|
|
937
|
+
* @property vertical - Bars extend vertically (category on X axis)
|
|
938
|
+
*/
|
|
517
939
|
readonly BarLayout: import("@elaraai/east").VariantType<{
|
|
518
940
|
horizontal: import("@elaraai/east").NullType;
|
|
519
941
|
vertical: import("@elaraai/east").NullType;
|
|
520
942
|
}>;
|
|
943
|
+
/**
|
|
944
|
+
* The concrete East type for Area chart data.
|
|
945
|
+
*
|
|
946
|
+
* @remarks
|
|
947
|
+
* Area charts display quantitative data with filled areas under line curves.
|
|
948
|
+
* Supports stacking for showing part-to-whole relationships.
|
|
949
|
+
*
|
|
950
|
+
* @property data - Array of data points as Dict<String, LiteralValue>
|
|
951
|
+
* @property series - Array of series configuration (ArrayType<ChartSeriesType>)
|
|
952
|
+
* @property xAxis - X-axis configuration (OptionType<ChartAxisType>)
|
|
953
|
+
* @property yAxis - Y-axis configuration (OptionType<ChartAxisType>)
|
|
954
|
+
* @property curveType - Line curve interpolation (OptionType<CurveType>)
|
|
955
|
+
* @property stacked - Enable stacking (OptionType<BooleanType>)
|
|
956
|
+
* @property stackOffset - Stack offset mode (OptionType<StackOffsetType>)
|
|
957
|
+
* @property grid - Grid configuration (OptionType<ChartGridType>)
|
|
958
|
+
* @property tooltip - Tooltip configuration (OptionType<ChartTooltipType>)
|
|
959
|
+
* @property legend - Legend configuration (OptionType<ChartLegendType>)
|
|
960
|
+
* @property margin - Chart margin (OptionType<ChartMarginType>)
|
|
961
|
+
* @property fillOpacity - Fill opacity 0-1 (OptionType<FloatType>)
|
|
962
|
+
* @property connectNulls - Connect across nulls (OptionType<BooleanType>)
|
|
963
|
+
*/
|
|
521
964
|
readonly AreaChart: import("@elaraai/east").StructType<{
|
|
522
965
|
data: import("@elaraai/east").ArrayType<import("@elaraai/east").DictType<import("@elaraai/east").StringType, import("@elaraai/east").VariantType<{
|
|
523
966
|
Null: import("@elaraai/east").NullType;
|
|
@@ -976,6 +1419,28 @@ export declare const Chart: {
|
|
|
976
1419
|
fillOpacity: import("@elaraai/east").OptionType<import("@elaraai/east").FloatType>;
|
|
977
1420
|
connectNulls: import("@elaraai/east").OptionType<import("@elaraai/east").BooleanType>;
|
|
978
1421
|
}>;
|
|
1422
|
+
/**
|
|
1423
|
+
* The concrete East type for Bar chart data.
|
|
1424
|
+
*
|
|
1425
|
+
* @remarks
|
|
1426
|
+
* Bar charts display categorical data with rectangular bars.
|
|
1427
|
+
* Supports horizontal/vertical layouts and stacking.
|
|
1428
|
+
*
|
|
1429
|
+
* @property data - Array of data points as Dict<String, LiteralValue>
|
|
1430
|
+
* @property series - Array of series configuration (ArrayType<ChartSeriesType>)
|
|
1431
|
+
* @property xAxis - X-axis configuration (OptionType<ChartAxisType>)
|
|
1432
|
+
* @property yAxis - Y-axis configuration (OptionType<ChartAxisType>)
|
|
1433
|
+
* @property layout - Bar direction (OptionType<BarLayoutType>)
|
|
1434
|
+
* @property stacked - Enable stacking (OptionType<BooleanType>)
|
|
1435
|
+
* @property stackOffset - Stack offset mode (OptionType<StackOffsetType>)
|
|
1436
|
+
* @property grid - Grid configuration (OptionType<ChartGridType>)
|
|
1437
|
+
* @property tooltip - Tooltip configuration (OptionType<ChartTooltipType>)
|
|
1438
|
+
* @property legend - Legend configuration (OptionType<ChartLegendType>)
|
|
1439
|
+
* @property margin - Chart margin (OptionType<ChartMarginType>)
|
|
1440
|
+
* @property barSize - Bar width/height in pixels (OptionType<IntegerType>)
|
|
1441
|
+
* @property barGap - Gap between bars (OptionType<IntegerType>)
|
|
1442
|
+
* @property radius - Rounded corner radius (OptionType<IntegerType>)
|
|
1443
|
+
*/
|
|
979
1444
|
readonly BarChart: import("@elaraai/east").StructType<{
|
|
980
1445
|
data: import("@elaraai/east").ArrayType<import("@elaraai/east").DictType<import("@elaraai/east").StringType, import("@elaraai/east").VariantType<{
|
|
981
1446
|
Null: import("@elaraai/east").NullType;
|
|
@@ -1431,6 +1896,26 @@ export declare const Chart: {
|
|
|
1431
1896
|
barGap: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
1432
1897
|
radius: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
1433
1898
|
}>;
|
|
1899
|
+
/**
|
|
1900
|
+
* The concrete East type for Line chart data.
|
|
1901
|
+
*
|
|
1902
|
+
* @remarks
|
|
1903
|
+
* Line charts display data points connected by line segments.
|
|
1904
|
+
* Ideal for showing trends over time.
|
|
1905
|
+
*
|
|
1906
|
+
* @property data - Array of data points as Dict<String, LiteralValue>
|
|
1907
|
+
* @property series - Array of series configuration (ArrayType<ChartSeriesType>)
|
|
1908
|
+
* @property xAxis - X-axis configuration (OptionType<ChartAxisType>)
|
|
1909
|
+
* @property yAxis - Y-axis configuration (OptionType<ChartAxisType>)
|
|
1910
|
+
* @property curveType - Line curve interpolation (OptionType<CurveType>)
|
|
1911
|
+
* @property grid - Grid configuration (OptionType<ChartGridType>)
|
|
1912
|
+
* @property tooltip - Tooltip configuration (OptionType<ChartTooltipType>)
|
|
1913
|
+
* @property legend - Legend configuration (OptionType<ChartLegendType>)
|
|
1914
|
+
* @property margin - Chart margin (OptionType<ChartMarginType>)
|
|
1915
|
+
* @property showDots - Show dots at data points (OptionType<BooleanType>)
|
|
1916
|
+
* @property strokeWidth - Line stroke width (OptionType<IntegerType>)
|
|
1917
|
+
* @property connectNulls - Connect across nulls (OptionType<BooleanType>)
|
|
1918
|
+
*/
|
|
1434
1919
|
readonly LineChart: import("@elaraai/east").StructType<{
|
|
1435
1920
|
data: import("@elaraai/east").ArrayType<import("@elaraai/east").DictType<import("@elaraai/east").StringType, import("@elaraai/east").VariantType<{
|
|
1436
1921
|
Null: import("@elaraai/east").NullType;
|
|
@@ -1883,6 +2368,22 @@ export declare const Chart: {
|
|
|
1883
2368
|
strokeWidth: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
1884
2369
|
connectNulls: import("@elaraai/east").OptionType<import("@elaraai/east").BooleanType>;
|
|
1885
2370
|
}>;
|
|
2371
|
+
/**
|
|
2372
|
+
* The concrete East type for Scatter chart data.
|
|
2373
|
+
*
|
|
2374
|
+
* @remarks
|
|
2375
|
+
* Scatter charts display individual data points on a coordinate plane.
|
|
2376
|
+
* Ideal for showing relationships between two variables.
|
|
2377
|
+
*
|
|
2378
|
+
* @property data - Array of data points as Dict<String, LiteralValue>
|
|
2379
|
+
* @property series - Array of series configuration (ArrayType<ChartSeriesType>)
|
|
2380
|
+
* @property xAxis - X-axis configuration (OptionType<ChartAxisType>)
|
|
2381
|
+
* @property yAxis - Y-axis configuration (OptionType<ChartAxisType>)
|
|
2382
|
+
* @property grid - Grid configuration (OptionType<ChartGridType>)
|
|
2383
|
+
* @property tooltip - Tooltip configuration (OptionType<ChartTooltipType>)
|
|
2384
|
+
* @property legend - Legend configuration (OptionType<ChartLegendType>)
|
|
2385
|
+
* @property margin - Chart margin (OptionType<ChartMarginType>)
|
|
2386
|
+
*/
|
|
1886
2387
|
readonly ScatterChart: import("@elaraai/east").StructType<{
|
|
1887
2388
|
data: import("@elaraai/east").ArrayType<import("@elaraai/east").DictType<import("@elaraai/east").StringType, import("@elaraai/east").VariantType<{
|
|
1888
2389
|
Null: import("@elaraai/east").NullType;
|
|
@@ -2327,6 +2828,22 @@ export declare const Chart: {
|
|
|
2327
2828
|
}>>;
|
|
2328
2829
|
pointSize: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
2329
2830
|
}>;
|
|
2831
|
+
/**
|
|
2832
|
+
* The concrete East type for Pie chart data.
|
|
2833
|
+
*
|
|
2834
|
+
* @remarks
|
|
2835
|
+
* Pie charts display proportional data as slices of a circle.
|
|
2836
|
+
* Set innerRadius for a donut chart appearance.
|
|
2837
|
+
*
|
|
2838
|
+
* @property data - Array of pie slices (ArrayType<PieSliceType>)
|
|
2839
|
+
* @property innerRadius - Inner radius for donut chart (OptionType<IntegerType>)
|
|
2840
|
+
* @property outerRadius - Outer radius (OptionType<IntegerType>)
|
|
2841
|
+
* @property startAngle - Starting angle in degrees (OptionType<IntegerType>)
|
|
2842
|
+
* @property endAngle - Ending angle in degrees (OptionType<IntegerType>)
|
|
2843
|
+
* @property showLabels - Show slice labels (OptionType<BooleanType>)
|
|
2844
|
+
* @property tooltip - Tooltip configuration (OptionType<ChartTooltipType>)
|
|
2845
|
+
* @property legend - Legend configuration (OptionType<ChartLegendType>)
|
|
2846
|
+
*/
|
|
2330
2847
|
readonly PieChart: import("@elaraai/east").StructType<{
|
|
2331
2848
|
data: import("@elaraai/east").ArrayType<import("@elaraai/east").StructType<{
|
|
2332
2849
|
name: import("@elaraai/east").StringType;
|
|
@@ -2372,11 +2889,35 @@ export declare const Chart: {
|
|
|
2372
2889
|
left: import("@elaraai/east").OptionType<import("@elaraai/east").IntegerType>;
|
|
2373
2890
|
}>>;
|
|
2374
2891
|
}>;
|
|
2892
|
+
/**
|
|
2893
|
+
* The concrete East type for Pie chart slice data.
|
|
2894
|
+
*
|
|
2895
|
+
* @remarks
|
|
2896
|
+
* Each slice represents a segment of the pie chart.
|
|
2897
|
+
*
|
|
2898
|
+
* @property name - Slice label (StringType)
|
|
2899
|
+
* @property value - Slice value (IntegerType or FloatType)
|
|
2900
|
+
* @property color - Slice color (OptionType<StringType>)
|
|
2901
|
+
*/
|
|
2375
2902
|
readonly PieSlice: import("@elaraai/east").StructType<{
|
|
2376
2903
|
name: import("@elaraai/east").StringType;
|
|
2377
2904
|
value: import("@elaraai/east").FloatType;
|
|
2378
2905
|
color: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
2379
2906
|
}>;
|
|
2907
|
+
/**
|
|
2908
|
+
* The concrete East type for Radar chart data.
|
|
2909
|
+
*
|
|
2910
|
+
* @remarks
|
|
2911
|
+
* Radar charts display multivariate data on radial axes.
|
|
2912
|
+
* Useful for comparing multiple attributes across entities.
|
|
2913
|
+
*
|
|
2914
|
+
* @property data - Array of data points as Dict<String, LiteralValue>
|
|
2915
|
+
* @property series - Array of series configuration (ArrayType<ChartSeriesType>)
|
|
2916
|
+
* @property dataKey - Field name for radial axis labels (StringType)
|
|
2917
|
+
* @property grid - Grid configuration (OptionType<ChartGridType>)
|
|
2918
|
+
* @property tooltip - Tooltip configuration (OptionType<ChartTooltipType>)
|
|
2919
|
+
* @property legend - Legend configuration (OptionType<ChartLegendType>)
|
|
2920
|
+
*/
|
|
2380
2921
|
readonly RadarChart: import("@elaraai/east").StructType<{
|
|
2381
2922
|
data: import("@elaraai/east").ArrayType<import("@elaraai/east").DictType<import("@elaraai/east").StringType, import("@elaraai/east").VariantType<{
|
|
2382
2923
|
Null: import("@elaraai/east").NullType;
|
|
@@ -2440,6 +2981,18 @@ export declare const Chart: {
|
|
|
2440
2981
|
}>>;
|
|
2441
2982
|
fillOpacity: import("@elaraai/east").OptionType<import("@elaraai/east").FloatType>;
|
|
2442
2983
|
}>;
|
|
2984
|
+
/**
|
|
2985
|
+
* The concrete East type for BarList data.
|
|
2986
|
+
*
|
|
2987
|
+
* @remarks
|
|
2988
|
+
* BarList displays horizontal comparison bars with labels and values.
|
|
2989
|
+
* Native Chakra component, not Recharts-based.
|
|
2990
|
+
*
|
|
2991
|
+
* @property data - Array of bar items (ArrayType<BarListItemType>)
|
|
2992
|
+
* @property colorPalette - Default color scheme (OptionType<ColorSchemeType>)
|
|
2993
|
+
* @property showValue - Show values next to bars (OptionType<BooleanType>)
|
|
2994
|
+
* @property sort - Sort configuration (OptionType<ChartSortType>)
|
|
2995
|
+
*/
|
|
2443
2996
|
readonly BarList: import("@elaraai/east").StructType<{
|
|
2444
2997
|
data: import("@elaraai/east").ArrayType<import("@elaraai/east").StructType<{
|
|
2445
2998
|
name: import("@elaraai/east").StringType;
|
|
@@ -2630,11 +3183,33 @@ export declare const Chart: {
|
|
|
2630
3183
|
}>>;
|
|
2631
3184
|
color: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
2632
3185
|
}>;
|
|
3186
|
+
/**
|
|
3187
|
+
* The concrete East type for BarList item data.
|
|
3188
|
+
*
|
|
3189
|
+
* @remarks
|
|
3190
|
+
* Each item represents a bar in the BarList chart.
|
|
3191
|
+
*
|
|
3192
|
+
* @property name - Item label (StringType)
|
|
3193
|
+
* @property value - Item value (IntegerType or FloatType)
|
|
3194
|
+
* @property color - Item color (OptionType<StringType>)
|
|
3195
|
+
* @property href - Optional link URL (OptionType<StringType>)
|
|
3196
|
+
*/
|
|
2633
3197
|
readonly BarListItem: import("@elaraai/east").StructType<{
|
|
2634
3198
|
name: import("@elaraai/east").StringType;
|
|
2635
3199
|
value: import("@elaraai/east").FloatType;
|
|
2636
3200
|
color: import("@elaraai/east").OptionType<import("@elaraai/east").StringType>;
|
|
2637
3201
|
}>;
|
|
3202
|
+
/**
|
|
3203
|
+
* The concrete East type for BarSegment data.
|
|
3204
|
+
*
|
|
3205
|
+
* @remarks
|
|
3206
|
+
* BarSegment displays proportional segments in a single horizontal bar.
|
|
3207
|
+
* Native Chakra component for showing percentage breakdowns.
|
|
3208
|
+
*
|
|
3209
|
+
* @property data - Array of segment items (ArrayType<BarSegmentItemType>)
|
|
3210
|
+
* @property showLegend - Show legend (OptionType<BooleanType>)
|
|
3211
|
+
* @property showValue - Show values on segments (OptionType<BooleanType>)
|
|
3212
|
+
*/
|
|
2638
3213
|
readonly BarSegment: import("@elaraai/east").StructType<{
|
|
2639
3214
|
data: import("@elaraai/east").ArrayType<import("@elaraai/east").StructType<{
|
|
2640
3215
|
name: import("@elaraai/east").StringType;
|
|
@@ -2651,6 +3226,16 @@ export declare const Chart: {
|
|
|
2651
3226
|
showValue: import("@elaraai/east").OptionType<import("@elaraai/east").BooleanType>;
|
|
2652
3227
|
showLabel: import("@elaraai/east").OptionType<import("@elaraai/east").BooleanType>;
|
|
2653
3228
|
}>;
|
|
3229
|
+
/**
|
|
3230
|
+
* The concrete East type for BarSegment item data.
|
|
3231
|
+
*
|
|
3232
|
+
* @remarks
|
|
3233
|
+
* Each item represents a segment in the BarSegment chart.
|
|
3234
|
+
*
|
|
3235
|
+
* @property name - Segment label (StringType)
|
|
3236
|
+
* @property value - Segment value (IntegerType or FloatType)
|
|
3237
|
+
* @property color - Segment color (OptionType<StringType>)
|
|
3238
|
+
*/
|
|
2654
3239
|
readonly BarSegmentItem: import("@elaraai/east").StructType<{
|
|
2655
3240
|
name: import("@elaraai/east").StringType;
|
|
2656
3241
|
value: import("@elaraai/east").FloatType;
|