@app-studio/web 0.9.79 → 0.9.81
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/dist/components/Accordion/Accordion/Accordion.type.d.ts +1 -1
- package/dist/components/Accordion/Accordion/Accordion.view.d.ts +1 -1
- package/dist/components/Badge/Badge/Badge.type.d.ts +1 -1
- package/dist/components/Card/Card/Card.style.d.ts +0 -4
- package/dist/components/Card/Card/Card.type.d.ts +1 -1
- package/dist/components/ChatInput/ChatInput/ChatInput.type.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker/ColorPicker.type.d.ts +1 -1
- package/dist/components/EmojiPicker/EmojiPicker/EmojiPicker.type.d.ts +1 -1
- package/dist/components/Form/ColorInput/ColorInput/ColorInput.type.d.ts +1 -1
- package/dist/components/Form/Switch/Switch/Switch.style.d.ts +3 -6
- package/dist/components/Form/TagInput/TagInput/TagInput.type.d.ts +1 -1
- package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +1 -1
- package/dist/components/Input/Input.type.d.ts +1 -1
- package/dist/components/Message/Message/Message.type.d.ts +1 -1
- package/dist/components/Modal/Modal/Modal.props.d.ts +2 -2
- package/dist/components/Slider/Slider/Slider.type.d.ts +1 -1
- package/dist/components/Title/Title/Title.props.d.ts +0 -5
- package/dist/components/Toggle/Toggle/Toggle.type.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.type.d.ts +1 -1
- package/dist/pages/tabs.page.d.ts +1 -1
- package/dist/providers/index.d.ts +5 -0
- package/dist/web.cjs.development.js +170 -155
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +170 -155
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +170 -155
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/docs/components/Background.mdx +133 -134
- package/docs/components/Button.mdx +154 -131
- package/docs/components/Chart.mdx +93 -368
- package/docs/components/ProgressBar.mdx +77 -394
- package/docs/components/Title.mdx +102 -290
- package/package.json +1 -1
- package/docs/components/ChatInput.mdx +0 -1039
|
@@ -1,342 +1,117 @@
|
|
|
1
1
|
# Chart
|
|
2
2
|
|
|
3
|
-
A component for visualizing data in various
|
|
3
|
+
A comprehensive charting component for visualizing data in various formats including bar, line, area, pie, and donut charts.
|
|
4
4
|
|
|
5
5
|
### **Import**
|
|
6
|
-
```tsx
|
|
7
|
-
import { Chart, CHART_COLORS } from '@app-studio/web';
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
### **Bar Chart**
|
|
11
6
|
```tsx
|
|
12
|
-
import
|
|
13
|
-
import { Chart, CHART_COLORS, View } from '@app-studio/web';
|
|
14
|
-
|
|
15
|
-
export const BarChartDemo = () => {
|
|
16
|
-
const data = {
|
|
17
|
-
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
|
|
18
|
-
series: [
|
|
19
|
-
{
|
|
20
|
-
name: 'Revenue',
|
|
21
|
-
data: [30, 40, 35, 50, 49, 60],
|
|
22
|
-
color: CHART_COLORS.blue,
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
name: 'Expenses',
|
|
26
|
-
data: [20, 25, 30, 35, 30, 40],
|
|
27
|
-
color: CHART_COLORS.green,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: 'Profit',
|
|
31
|
-
data: [10, 15, 5, 15, 19, 20],
|
|
32
|
-
color: CHART_COLORS.purple,
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
return (
|
|
38
|
-
<View height="300px" width="100%">
|
|
39
|
-
<Chart
|
|
40
|
-
type="bar"
|
|
41
|
-
data={data}
|
|
42
|
-
title="Monthly Revenue vs Expenses"
|
|
43
|
-
showGrid
|
|
44
|
-
animated
|
|
45
|
-
onSeriesClick={(seriesName, index) => {
|
|
46
|
-
console.log(`Clicked on ${seriesName} at index ${index}`);
|
|
47
|
-
}}
|
|
48
|
-
/>
|
|
49
|
-
</View>
|
|
50
|
-
);
|
|
51
|
-
};
|
|
7
|
+
import { Chart, CHART_COLORS } from '@app-studio/web';
|
|
52
8
|
```
|
|
53
9
|
|
|
54
|
-
### **
|
|
10
|
+
### **Quick Start (Bar Chart)**
|
|
55
11
|
```tsx
|
|
56
12
|
import React from 'react';
|
|
57
13
|
import { Chart, CHART_COLORS, View } from '@app-studio/web';
|
|
58
14
|
|
|
59
|
-
export const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
name: 'Sessions',
|
|
70
|
-
data: [1000, 1600, 2400, 3600, 5000, 6000],
|
|
71
|
-
color: CHART_COLORS.teal,
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
return (
|
|
77
|
-
<View height="300px" width="100%">
|
|
78
|
-
<Chart
|
|
79
|
-
type="line"
|
|
80
|
-
data={data}
|
|
81
|
-
title="Website Traffic"
|
|
82
|
-
showGrid
|
|
83
|
-
animated
|
|
84
|
-
legendPosition="top"
|
|
85
|
-
/>
|
|
15
|
+
export const SimpleBarChart = () => (
|
|
16
|
+
<View height="300px">
|
|
17
|
+
<Chart
|
|
18
|
+
type="bar"
|
|
19
|
+
title="Monthly Sales"
|
|
20
|
+
data={{
|
|
21
|
+
labels: ['Jan', 'Feb', 'Mar'],
|
|
22
|
+
series: [{ name: 'Sales', data: [30, 50, 40], color: CHART_COLORS.blue }]
|
|
23
|
+
}}
|
|
24
|
+
/>
|
|
86
25
|
</View>
|
|
87
|
-
|
|
88
|
-
};
|
|
26
|
+
);
|
|
89
27
|
```
|
|
90
28
|
|
|
91
|
-
### **
|
|
92
|
-
```tsx
|
|
93
|
-
import React from 'react';
|
|
94
|
-
import { Chart, CHART_COLORS, View } from '@app-studio/web';
|
|
29
|
+
### **Chart Types**
|
|
95
30
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
|
99
|
-
series: [
|
|
100
|
-
{
|
|
101
|
-
name: 'This Week',
|
|
102
|
-
data: [10, 15, 12, 20, 18, 25, 22],
|
|
103
|
-
color: CHART_COLORS.green,
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: 'Last Week',
|
|
107
|
-
data: [8, 12, 10, 15, 14, 20, 17],
|
|
108
|
-
color: CHART_COLORS.blue,
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
};
|
|
31
|
+
#### **Line & Area Charts**
|
|
32
|
+
Useful for showing trends over time.
|
|
112
33
|
|
|
113
|
-
return (
|
|
114
|
-
<View height="300px" width="100%">
|
|
115
|
-
<Chart
|
|
116
|
-
type="area"
|
|
117
|
-
data={data}
|
|
118
|
-
title="Weekly Performance"
|
|
119
|
-
showGrid
|
|
120
|
-
animated
|
|
121
|
-
/>
|
|
122
|
-
</View>
|
|
123
|
-
);
|
|
124
|
-
};
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
### **Pie Chart**
|
|
128
34
|
```tsx
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
<View height="300px" width="100%">
|
|
142
|
-
<Chart
|
|
143
|
-
type="pie"
|
|
144
|
-
dataPoints={dataPoints}
|
|
145
|
-
title="Device Distribution"
|
|
146
|
-
animated
|
|
147
|
-
onDataPointClick={(dataPoint, index) => {
|
|
148
|
-
console.log(`Clicked on ${dataPoint?.label} at index ${index}`);
|
|
35
|
+
<View height="300px">
|
|
36
|
+
<Chart
|
|
37
|
+
type="line" // or "area"
|
|
38
|
+
title="User Growth"
|
|
39
|
+
showGrid
|
|
40
|
+
showTooltips
|
|
41
|
+
data={{
|
|
42
|
+
labels: ['Q1', 'Q2', 'Q3', 'Q4'],
|
|
43
|
+
series: [
|
|
44
|
+
{ name: '2023', data: [100, 120, 140, 180], color: CHART_COLORS.purple },
|
|
45
|
+
{ name: '2024', data: [150, 190, 220, 280], color: CHART_COLORS.teal }
|
|
46
|
+
]
|
|
149
47
|
}}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
);
|
|
153
|
-
};
|
|
48
|
+
/>
|
|
49
|
+
</View>
|
|
154
50
|
```
|
|
155
51
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
import React from 'react';
|
|
159
|
-
import { Chart, CHART_COLORS, View } from '@app-studio/web';
|
|
160
|
-
|
|
161
|
-
export const DonutChartDemo = () => {
|
|
162
|
-
const dataPoints = [
|
|
163
|
-
{ label: 'Completed', value: 65, color: CHART_COLORS.green },
|
|
164
|
-
{ label: 'In Progress', value: 25, color: CHART_COLORS.blue },
|
|
165
|
-
{ label: 'Pending', value: 10, color: CHART_COLORS.orange },
|
|
166
|
-
];
|
|
167
|
-
|
|
168
|
-
return (
|
|
169
|
-
<View height="300px" width="100%">
|
|
170
|
-
<Chart
|
|
171
|
-
type="donut"
|
|
172
|
-
dataPoints={dataPoints}
|
|
173
|
-
title="Task Status"
|
|
174
|
-
animated
|
|
175
|
-
/>
|
|
176
|
-
</View>
|
|
177
|
-
);
|
|
178
|
-
};
|
|
179
|
-
```
|
|
52
|
+
#### **Pie & Donut Charts**
|
|
53
|
+
Useful for showing proportional data.
|
|
180
54
|
|
|
181
|
-
### **Custom Styling**
|
|
182
55
|
```tsx
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
],
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
return (
|
|
199
|
-
<View height="300px" width="100%">
|
|
200
|
-
<Chart
|
|
201
|
-
type="bar"
|
|
202
|
-
data={data}
|
|
203
|
-
title="Quarterly Sales"
|
|
204
|
-
animated
|
|
205
|
-
views={{
|
|
206
|
-
container: {
|
|
207
|
-
backgroundColor: 'color.gray.50',
|
|
208
|
-
padding: '16px',
|
|
209
|
-
borderRadius: '8px',
|
|
210
|
-
boxShadow: '0 2px 8px rgba(0, 0, 0, 0.1)',
|
|
211
|
-
},
|
|
212
|
-
chart: {
|
|
213
|
-
margin: '16px 0',
|
|
214
|
-
},
|
|
215
|
-
bar: {
|
|
216
|
-
rx: '4px',
|
|
217
|
-
ry: '4px',
|
|
218
|
-
fill: 'color.blue',
|
|
219
|
-
},
|
|
220
|
-
grid: {
|
|
221
|
-
stroke: 'color.gray.300',
|
|
222
|
-
strokeDasharray: '4',
|
|
223
|
-
},
|
|
224
|
-
axis: {
|
|
225
|
-
stroke: 'color.gray.400',
|
|
226
|
-
strokeWidth: '2px',
|
|
227
|
-
},
|
|
228
|
-
legend: {
|
|
229
|
-
backgroundColor: 'color.white',
|
|
230
|
-
padding: '8px',
|
|
231
|
-
borderRadius: '4px',
|
|
232
|
-
},
|
|
233
|
-
}}
|
|
234
|
-
/>
|
|
235
|
-
</View>
|
|
236
|
-
);
|
|
237
|
-
};
|
|
56
|
+
<View height="300px">
|
|
57
|
+
<Chart
|
|
58
|
+
type="donut" // or "pie"
|
|
59
|
+
title="Device Usage"
|
|
60
|
+
dataPoints={[
|
|
61
|
+
{ label: 'Mobile', value: 60, color: CHART_COLORS.indigo },
|
|
62
|
+
{ label: 'Desktop', value: 30, color: CHART_COLORS.cyan },
|
|
63
|
+
{ label: 'Tablet', value: 10, color: CHART_COLORS.gray }
|
|
64
|
+
]}
|
|
65
|
+
onDataPointClick={(point, index) => alert(`Clicked ${point.label}`)}
|
|
66
|
+
/>
|
|
67
|
+
</View>
|
|
238
68
|
```
|
|
239
69
|
|
|
240
|
-
### **
|
|
241
|
-
|
|
242
|
-
The Chart component supports loading, error, and no data states:
|
|
70
|
+
### **States (Loading, Error, No Data)**
|
|
71
|
+
Handle various UI states gracefully with built-in props.
|
|
243
72
|
|
|
244
73
|
```tsx
|
|
245
74
|
import React, { useState } from 'react';
|
|
246
|
-
import { Chart,
|
|
247
|
-
|
|
248
|
-
export const
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
<View height="300px" width="100%">
|
|
272
|
-
<Chart
|
|
273
|
-
type="bar"
|
|
274
|
-
data={data}
|
|
275
|
-
title="Revenue Chart"
|
|
276
|
-
showGrid
|
|
277
|
-
animated
|
|
278
|
-
isLoading={state === 'loading'}
|
|
279
|
-
error={state === 'error' ? 'Failed to load chart data' : undefined}
|
|
280
|
-
noData={state === 'noData'}
|
|
281
|
-
/>
|
|
282
|
-
</View>
|
|
283
|
-
</View>
|
|
284
|
-
);
|
|
285
|
-
};
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
### **Zero Values**
|
|
289
|
-
|
|
290
|
-
The Chart component handles cases where all values are zero by displaying the axes with a default scale, ensuring the chart structure remains visible.
|
|
291
|
-
|
|
292
|
-
```tsx
|
|
293
|
-
import React from 'react';
|
|
294
|
-
import { Chart, CHART_COLORS, View } from '@app-studio/web';
|
|
295
|
-
|
|
296
|
-
export const ZeroValuesDemo = () => {
|
|
297
|
-
const data = {
|
|
298
|
-
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
|
|
299
|
-
series: [
|
|
300
|
-
{
|
|
301
|
-
name: 'Revenue',
|
|
302
|
-
data: [0, 0, 0, 0, 0, 0],
|
|
303
|
-
color: CHART_COLORS.blue,
|
|
304
|
-
},
|
|
305
|
-
],
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
return (
|
|
309
|
-
<View height="300px" width="100%">
|
|
310
|
-
<Chart
|
|
311
|
-
type="bar"
|
|
312
|
-
data={data}
|
|
313
|
-
title="Zero Revenue Chart"
|
|
314
|
-
showGrid
|
|
315
|
-
animated
|
|
316
|
-
/>
|
|
317
|
-
</View>
|
|
318
|
-
);
|
|
75
|
+
import { Chart, Button, Vertical, Horizontal } from '@app-studio/web';
|
|
76
|
+
|
|
77
|
+
export const ChartStateDemo = () => {
|
|
78
|
+
const [status, setStatus] = useState('normal');
|
|
79
|
+
|
|
80
|
+
return (
|
|
81
|
+
<Vertical gap={20}>
|
|
82
|
+
<Horizontal gap={10}>
|
|
83
|
+
<Button onClick={() => setStatus('loading')}>Load</Button>
|
|
84
|
+
<Button onClick={() => setStatus('error')}>Error</Button>
|
|
85
|
+
<Button onClick={() => setStatus('empty')}>Empty</Button>
|
|
86
|
+
</Horizontal>
|
|
87
|
+
|
|
88
|
+
<View height="300px">
|
|
89
|
+
<Chart
|
|
90
|
+
type="bar"
|
|
91
|
+
title="Revenue"
|
|
92
|
+
isLoading={status === 'loading'}
|
|
93
|
+
error={status === 'error' ? 'Connection Failed' : undefined}
|
|
94
|
+
noData={status === 'empty'}
|
|
95
|
+
data={{ labels: ['A', 'B'], series: [{ name: 'Val', data: [1, 2] }] }}
|
|
96
|
+
/>
|
|
97
|
+
</View>
|
|
98
|
+
</Vertical>
|
|
99
|
+
);
|
|
319
100
|
};
|
|
320
101
|
```
|
|
321
102
|
|
|
322
|
-
### **
|
|
323
|
-
|
|
324
|
-
|
|
103
|
+
### **Interactive Events**
|
|
104
|
+
- **onSeriesClick**: Called when a bar (bar chart) or point (line/area) is clicked.
|
|
105
|
+
- **onDataPointClick**: Called when a slice (pie/donut) is clicked.
|
|
325
106
|
|
|
326
107
|
```tsx
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
CHART_COLORS.red // 'color.red.500'
|
|
335
|
-
CHART_COLORS.teal // 'color.teal.500'
|
|
336
|
-
CHART_COLORS.pink // 'color.pink.500'
|
|
337
|
-
CHART_COLORS.indigo // 'color.indigo.500'
|
|
338
|
-
CHART_COLORS.yellow // 'color.yellow.500'
|
|
339
|
-
CHART_COLORS.cyan // 'color.cyan.500'
|
|
108
|
+
<Chart
|
|
109
|
+
type="bar"
|
|
110
|
+
data={data}
|
|
111
|
+
onSeriesClick={(seriesName, index) => {
|
|
112
|
+
console.log(`Series: ${seriesName}, Index: ${index}`);
|
|
113
|
+
}}
|
|
114
|
+
/>
|
|
340
115
|
```
|
|
341
116
|
|
|
342
117
|
### **Props Reference**
|
|
@@ -348,64 +123,14 @@ CHART_COLORS.cyan // 'color.cyan.500'
|
|
|
348
123
|
| `dataPoints` | `ChartDataPoint[]` | - | Data points for single series charts (pie, donut) |
|
|
349
124
|
| `title` | `string` | - | The title of the chart |
|
|
350
125
|
| `showLegend` | `boolean` | `true` | Whether to show the legend |
|
|
351
|
-
| `
|
|
352
|
-
| `
|
|
353
|
-
| `
|
|
354
|
-
| `
|
|
355
|
-
| `
|
|
356
|
-
| `
|
|
357
|
-
| `
|
|
358
|
-
| `
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
| `onSeriesClick` | `(seriesName, index) => void` | - | Callback when a series is clicked (bar/line/area) |
|
|
363
|
-
| `isLoading` | `boolean` | `false` | If true, displays a loading indicator overlay |
|
|
364
|
-
| `error` | `React.ReactNode` | - | If provided, displays an error message overlay |
|
|
365
|
-
| `noData` | `boolean \| React.ReactNode` | - | If true, displays a "no data" message |
|
|
366
|
-
| `loadingIndicator` | `React.ReactNode` | - | Custom placeholder for the loading state |
|
|
367
|
-
| `errorIndicator` | `React.ReactNode` | - | Custom placeholder for the error state |
|
|
368
|
-
| `noDataIndicator` | `React.ReactNode` | - | Custom placeholder for the no data state |
|
|
369
|
-
| `aria-label` | `string` | - | Aria-label for the chart region (defaults to title) |
|
|
370
|
-
|
|
371
|
-
### **Type Definitions**
|
|
372
|
-
|
|
373
|
-
```tsx
|
|
374
|
-
interface ChartData {
|
|
375
|
-
labels: string[];
|
|
376
|
-
series: ChartSeries[];
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
interface ChartSeries {
|
|
380
|
-
name: string;
|
|
381
|
-
data: number[];
|
|
382
|
-
color?: string;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
interface ChartDataPoint {
|
|
386
|
-
label: string;
|
|
387
|
-
value: number;
|
|
388
|
-
color?: string;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
interface ChartStyles {
|
|
392
|
-
container?: ViewProps;
|
|
393
|
-
chart?: ViewProps;
|
|
394
|
-
legend?: ViewProps;
|
|
395
|
-
legendItem?: ViewProps;
|
|
396
|
-
tooltip?: ViewProps;
|
|
397
|
-
axis?: ViewProps;
|
|
398
|
-
grid?: ViewProps;
|
|
399
|
-
bar?: ViewProps;
|
|
400
|
-
line?: ViewProps;
|
|
401
|
-
point?: ViewProps;
|
|
402
|
-
pie?: ViewProps;
|
|
403
|
-
area?: ViewProps;
|
|
404
|
-
axisLabel?: ViewProps;
|
|
405
|
-
axisLine?: ViewProps;
|
|
406
|
-
axisTick?: ViewProps;
|
|
407
|
-
loadingOverlay?: ViewProps;
|
|
408
|
-
errorOverlay?: ViewProps;
|
|
409
|
-
noDataOverlay?: ViewProps;
|
|
410
|
-
}
|
|
411
|
-
```
|
|
126
|
+
| `showGrid` | `boolean` | `true` | Show background grid (cartesian charts) |
|
|
127
|
+
| `showTooltips` | `boolean` | `true` | Show tooltips on hover |
|
|
128
|
+
| `animated` | `boolean` | `true` | Animate entry |
|
|
129
|
+
| `isLoading` | `boolean` | `false` | Show loading overlay |
|
|
130
|
+
| `error` | `ReactNode` | - | Show error message overlay |
|
|
131
|
+
| `noData` | `boolean \| ReactNode` | - | Show no data message overlay |
|
|
132
|
+
| `height` / `width` | `number \| string` | `200` | Dimensions of the chart container |
|
|
133
|
+
| `views` | `ChartStyles` | - | Custom styles override object |
|
|
134
|
+
|
|
135
|
+
### **Available Colors (CHART_COLORS)**
|
|
136
|
+
`blue`, `green`, `purple`, `orange`, `red`, `teal`, `pink`, `indigo`, `yellow`, `cyan`.
|