@coinbase/cds-mcp-server 8.57.0 → 8.58.0
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/CHANGELOG.md +8 -0
- package/mcp-docs/mobile/components/BarChart.txt +235 -223
- package/mcp-docs/mobile/components/Combobox.txt +1 -0
- package/mcp-docs/mobile/components/DateInput.txt +1 -0
- package/mcp-docs/mobile/components/DatePicker.txt +1 -0
- package/mcp-docs/mobile/components/SearchInput.txt +19 -6
- package/mcp-docs/mobile/components/SelectAlpha.txt +1 -0
- package/mcp-docs/mobile/components/SelectChipAlpha.txt +1 -0
- package/mcp-docs/mobile/components/TextInput.txt +1 -0
- package/mcp-docs/web/components/BarChart.txt +192 -282
- package/mcp-docs/web/components/Combobox.txt +1 -0
- package/mcp-docs/web/components/DateInput.txt +92 -5
- package/mcp-docs/web/components/DatePicker.txt +92 -4
- package/mcp-docs/web/components/SearchInput.txt +107 -5
- package/mcp-docs/web/components/SelectAlpha.txt +1 -0
- package/mcp-docs/web/components/SelectChipAlpha.txt +1 -0
- package/mcp-docs/web/components/SidebarItem.txt +1 -1
- package/mcp-docs/web/components/TextInput.txt +94 -5
- package/package.json +1 -1
|
@@ -34,9 +34,9 @@ To start, pass in a series of data to the chart.
|
|
|
34
34
|
/>
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
#### Layout
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
You can set `layout` to `horizontal` to render the chart horizontally.
|
|
40
40
|
|
|
41
41
|
```jsx live
|
|
42
42
|
function HorizontalBars() {
|
|
@@ -94,50 +94,27 @@ function HorizontalBars() {
|
|
|
94
94
|
You can also provide multiple series of data to the chart. Series will have their bars for each data point rendered side by side.
|
|
95
95
|
|
|
96
96
|
```jsx live
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
620.57,
|
|
119
|
-
],
|
|
120
|
-
color: assets.btc.color,
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
id: 'eth',
|
|
124
|
-
data: [
|
|
125
|
-
270.49, 425.21, 190.75, 680.91, 610.88, 350.67, 440.11, 780.08, 705.83, 840.26, 920.65,
|
|
126
|
-
550.93,
|
|
127
|
-
],
|
|
128
|
-
color: assets.eth.color,
|
|
129
|
-
},
|
|
130
|
-
]}
|
|
131
|
-
showYAxis
|
|
132
|
-
yAxis={{
|
|
133
|
-
showGrid: true,
|
|
134
|
-
GridLineComponent: ThinSolidLine,
|
|
135
|
-
tickLabelFormatter: tickFormatter,
|
|
136
|
-
width: 70,
|
|
137
|
-
}}
|
|
138
|
-
/>
|
|
139
|
-
);
|
|
140
|
-
}
|
|
97
|
+
<BarChart
|
|
98
|
+
height={400}
|
|
99
|
+
series={[
|
|
100
|
+
{ id: 'series1', data: [5, 1, 3], color: 'rgb(var(--blue40))', label: 'Series 1' },
|
|
101
|
+
{ id: 'series2', data: [2, 4, 6], color: 'rgb(var(--yellow40))', label: 'Series 2' },
|
|
102
|
+
{ id: 'series3', data: [1, 2, 3], color: 'rgb(var(--red40))', label: 'Series 3' },
|
|
103
|
+
]}
|
|
104
|
+
legend
|
|
105
|
+
showXAxis
|
|
106
|
+
showYAxis
|
|
107
|
+
xAxis={{
|
|
108
|
+
data: ['Group A', 'Group B', 'Group C'],
|
|
109
|
+
showLine: true,
|
|
110
|
+
showTickMarks: true,
|
|
111
|
+
}}
|
|
112
|
+
yAxis={{
|
|
113
|
+
showLine: true,
|
|
114
|
+
showGrid: true,
|
|
115
|
+
showTickMarks: true,
|
|
116
|
+
}}
|
|
117
|
+
/>
|
|
141
118
|
```
|
|
142
119
|
|
|
143
120
|
### Series Stacking
|
|
@@ -145,205 +122,91 @@ function MonthlyGainsByAsset() {
|
|
|
145
122
|
You can also configure stacking for your chart using the `stacked` prop.
|
|
146
123
|
|
|
147
124
|
```jsx live
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
data: [
|
|
176
|
-
450.77, 615.33, 355.68, 880.15, 810.99, 520.46, 590.29, 960.52, 910.07, 1020.41, 851.89,
|
|
177
|
-
750.61,
|
|
178
|
-
],
|
|
179
|
-
color: assets.ltc.color,
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
id: 'eth',
|
|
183
|
-
data: [
|
|
184
|
-
270.49, 425.21, 190.75, 680.91, 610.88, 350.67, 440.11, 780.08, 705.83, 840.26, 920.65,
|
|
185
|
-
550.93,
|
|
186
|
-
],
|
|
187
|
-
color: assets.eth.color,
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
id: 'btc',
|
|
191
|
-
data: [
|
|
192
|
-
345.82, 510.63, 280.19, 720.5, 655.37, 410.23, 580.96, 815.44, 740.18, 910.71, 975.02,
|
|
193
|
-
620.57,
|
|
194
|
-
],
|
|
195
|
-
color: assets.btc.color,
|
|
196
|
-
},
|
|
197
|
-
]}
|
|
198
|
-
stacked
|
|
199
|
-
showYAxis
|
|
200
|
-
yAxis={{
|
|
201
|
-
showGrid: true,
|
|
202
|
-
GridLineComponent: ThinSolidLine,
|
|
203
|
-
tickLabelFormatter: tickFormatter,
|
|
204
|
-
width: 70,
|
|
205
|
-
}}
|
|
206
|
-
/>
|
|
207
|
-
);
|
|
208
|
-
}
|
|
125
|
+
<BarChart
|
|
126
|
+
stacked
|
|
127
|
+
height={400}
|
|
128
|
+
series={[
|
|
129
|
+
{ id: 'series1', data: [5, 1, 3, 3, 0, 2, 1], color: 'rgb(var(--blue40))', label: 'Series 1' },
|
|
130
|
+
{
|
|
131
|
+
id: 'series2',
|
|
132
|
+
data: [2, 4, 6, 0, 3, 1, 2],
|
|
133
|
+
color: 'rgb(var(--yellow40))',
|
|
134
|
+
label: 'Series 2',
|
|
135
|
+
},
|
|
136
|
+
{ id: 'series3', data: [1, 2, 3, 1, 0, 2, 3], color: 'rgb(var(--red40))', label: 'Series 3' },
|
|
137
|
+
]}
|
|
138
|
+
legend
|
|
139
|
+
showXAxis
|
|
140
|
+
showYAxis
|
|
141
|
+
xAxis={{
|
|
142
|
+
data: ['Group A', 'Group B', 'Group C', 'Group D', 'Group E', 'Group F', 'Group G'],
|
|
143
|
+
showLine: true,
|
|
144
|
+
showTickMarks: true,
|
|
145
|
+
}}
|
|
146
|
+
yAxis={{
|
|
147
|
+
showLine: true,
|
|
148
|
+
showGrid: true,
|
|
149
|
+
showTickMarks: true,
|
|
150
|
+
}}
|
|
151
|
+
/>
|
|
209
152
|
```
|
|
210
153
|
|
|
211
154
|
You can also configure multiple stacks by setting the `stackId` prop on each series.
|
|
212
155
|
|
|
213
156
|
```jsx live
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
(
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
color: assets.xrp.color,
|
|
238
|
-
stackId: 'shortTerm',
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
id: 'ltc',
|
|
242
|
-
data: [
|
|
243
|
-
450.77, 615.33, 355.68, 880.15, 810.99, 520.46, 590.29, 960.52, 910.07, 1020.41, 851.89,
|
|
244
|
-
750.61,
|
|
245
|
-
],
|
|
246
|
-
color: assets.ltc.color,
|
|
247
|
-
stackId: 'shortTerm',
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
id: 'eth',
|
|
251
|
-
data: [
|
|
252
|
-
270.49, 425.21, 190.75, 680.91, 610.88, 350.67, 440.11, 780.08, 705.83, 840.26, 920.65,
|
|
253
|
-
550.93,
|
|
254
|
-
],
|
|
255
|
-
color: assets.eth.color,
|
|
256
|
-
stackId: 'longTerm',
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
id: 'btc',
|
|
260
|
-
data: [
|
|
261
|
-
345.82, 510.63, 280.19, 720.5, 655.37, 410.23, 580.96, 815.44, 740.18, 910.71, 975.02,
|
|
262
|
-
620.57,
|
|
263
|
-
],
|
|
264
|
-
color: assets.btc.color,
|
|
265
|
-
stackId: 'longTerm',
|
|
266
|
-
},
|
|
267
|
-
]}
|
|
268
|
-
stacked
|
|
269
|
-
showYAxis
|
|
270
|
-
yAxis={{
|
|
271
|
-
showGrid: true,
|
|
272
|
-
GridLineComponent: ThinSolidLine,
|
|
273
|
-
tickLabelFormatter: tickFormatter,
|
|
274
|
-
width: 70,
|
|
275
|
-
}}
|
|
276
|
-
/>
|
|
277
|
-
);
|
|
278
|
-
}
|
|
157
|
+
<BarChart
|
|
158
|
+
height={400}
|
|
159
|
+
series={[
|
|
160
|
+
{ id: 'series1', data: [5, 1, 3], color: 'rgb(var(--blue40))', stackId: 'stack1' },
|
|
161
|
+
{ id: 'series2', data: [2, 4, 6], color: 'rgb(var(--yellow40))', stackId: 'stack1' },
|
|
162
|
+
{ id: 'series3', data: [1, 2, 3], color: 'rgb(var(--red40))', stackId: 'stack1' },
|
|
163
|
+
{ id: 'series4', data: [3, 0, 2], color: 'rgb(var(--purple40))', stackId: 'stack2' },
|
|
164
|
+
{ id: 'series5', data: [0, 3, 1], color: 'rgb(var(--teal40))', stackId: 'stack2' },
|
|
165
|
+
{ id: 'series6', data: [1, 0, 2], color: 'rgb(var(--green40))', stackId: 'stack2' },
|
|
166
|
+
]}
|
|
167
|
+
showXAxis
|
|
168
|
+
showYAxis
|
|
169
|
+
xAxis={{
|
|
170
|
+
data: ['Group A', 'Group B', 'Group C'],
|
|
171
|
+
showLine: true,
|
|
172
|
+
showTickMarks: true,
|
|
173
|
+
}}
|
|
174
|
+
yAxis={{
|
|
175
|
+
showLine: true,
|
|
176
|
+
showGrid: true,
|
|
177
|
+
showTickMarks: true,
|
|
178
|
+
}}
|
|
179
|
+
/>
|
|
279
180
|
```
|
|
280
181
|
|
|
281
182
|
#### Stack Gap
|
|
282
183
|
|
|
283
184
|
```jsx live
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
(
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
{
|
|
310
|
-
id: 'ltc',
|
|
311
|
-
data: [
|
|
312
|
-
450.77, 615.33, 355.68, 880.15, 810.99, 520.46, 590.29, 960.52, 910.07, 1020.41, 851.89,
|
|
313
|
-
500,
|
|
314
|
-
],
|
|
315
|
-
color: assets.ltc.color,
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
id: 'eth',
|
|
319
|
-
data: [
|
|
320
|
-
270.49, 425.21, 190.75, 680.91, 610.88, 350.67, 440.11, 780.08, 705.83, 840.26, 920.65,
|
|
321
|
-
500,
|
|
322
|
-
],
|
|
323
|
-
color: assets.eth.color,
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
id: 'btc',
|
|
327
|
-
data: [
|
|
328
|
-
345.82, 510.63, 280.19, 720.5, 655.37, 410.23, 580.96, 815.44, 740.18, 910.71, 975.02,
|
|
329
|
-
500,
|
|
330
|
-
],
|
|
331
|
-
color: assets.btc.color,
|
|
332
|
-
},
|
|
333
|
-
]}
|
|
334
|
-
stackGap={4}
|
|
335
|
-
stacked
|
|
336
|
-
showYAxis
|
|
337
|
-
yAxis={{
|
|
338
|
-
showGrid: true,
|
|
339
|
-
GridLineComponent: ThinSolidLine,
|
|
340
|
-
tickLabelFormatter: tickFormatter,
|
|
341
|
-
width: 70,
|
|
342
|
-
domainLimit: 'strict',
|
|
343
|
-
}}
|
|
344
|
-
/>
|
|
345
|
-
);
|
|
346
|
-
}
|
|
185
|
+
<BarChart
|
|
186
|
+
height={400}
|
|
187
|
+
series={[
|
|
188
|
+
{ id: 'series1', data: [5, 1, 3], color: 'rgb(var(--blue40))', stackId: 'stack1' },
|
|
189
|
+
{ id: 'series2', data: [2, 4, 6], color: 'rgb(var(--yellow40))', stackId: 'stack1' },
|
|
190
|
+
{ id: 'series3', data: [1, 2, 3], color: 'rgb(var(--red40))', stackId: 'stack1' },
|
|
191
|
+
{ id: 'series4', data: [3, 0, 2], color: 'rgb(var(--purple40))', stackId: 'stack2' },
|
|
192
|
+
{ id: 'series5', data: [0, 3, 1], color: 'rgb(var(--teal40))', stackId: 'stack2' },
|
|
193
|
+
{ id: 'series6', data: [1, 0, 2], color: 'rgb(var(--green40))', stackId: 'stack2' },
|
|
194
|
+
]}
|
|
195
|
+
stackGap={4}
|
|
196
|
+
barMinSize={8}
|
|
197
|
+
showXAxis
|
|
198
|
+
showYAxis
|
|
199
|
+
xAxis={{
|
|
200
|
+
data: ['Group A', 'Group B', 'Group C'],
|
|
201
|
+
showLine: true,
|
|
202
|
+
showTickMarks: true,
|
|
203
|
+
}}
|
|
204
|
+
yAxis={{
|
|
205
|
+
showLine: true,
|
|
206
|
+
showGrid: true,
|
|
207
|
+
showTickMarks: true,
|
|
208
|
+
}}
|
|
209
|
+
/>
|
|
347
210
|
```
|
|
348
211
|
|
|
349
212
|
### Border Radius
|
|
@@ -357,16 +220,28 @@ Stacks will only round the top corners of touching bars.
|
|
|
357
220
|
stacked
|
|
358
221
|
borderRadius={1000}
|
|
359
222
|
height={300}
|
|
360
|
-
maxWidth={
|
|
223
|
+
maxWidth={384}
|
|
361
224
|
padding={0}
|
|
362
225
|
series={[
|
|
363
|
-
{
|
|
364
|
-
|
|
365
|
-
|
|
226
|
+
{
|
|
227
|
+
id: 'purple',
|
|
228
|
+
data: [null, 6, 8, 10, 7, 6, 6, 8, 9, 12, 10, 4],
|
|
229
|
+
color: 'rgb(var(--purple30))',
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
id: 'blue',
|
|
233
|
+
data: [null, 10, 12, 11, 10, 9, 10, 11, 7, 4, 12, 18],
|
|
234
|
+
color: 'rgb(var(--blue30))',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
id: 'cyan',
|
|
238
|
+
data: [null, 7, 10, 12, 11, 10, 8, 11, 5, 12, 2, 9],
|
|
239
|
+
color: 'rgb(var(--teal30))',
|
|
240
|
+
},
|
|
366
241
|
{
|
|
367
242
|
id: 'green',
|
|
368
243
|
data: [10, null, null, null, 1, null, null, 6, null, null, null, null],
|
|
369
|
-
color: '
|
|
244
|
+
color: 'rgb(var(--green30))',
|
|
370
245
|
},
|
|
371
246
|
]}
|
|
372
247
|
showXAxis
|
|
@@ -378,6 +253,7 @@ Stacks will only round the top corners of touching bars.
|
|
|
378
253
|
}
|
|
379
254
|
return value;
|
|
380
255
|
},
|
|
256
|
+
categoryPadding: 0.25,
|
|
381
257
|
}}
|
|
382
258
|
style={{ margin: '0 auto' }}
|
|
383
259
|
/>
|
|
@@ -388,35 +264,55 @@ Stacks will only round the top corners of touching bars.
|
|
|
388
264
|
You can also round the baseline of the bars by setting the `roundBaseline` prop on the chart.
|
|
389
265
|
|
|
390
266
|
```jsx live
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
267
|
+
function MonthlyRewards() {
|
|
268
|
+
const months = ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'];
|
|
269
|
+
|
|
270
|
+
return (
|
|
271
|
+
<BarChart
|
|
272
|
+
roundBaseline
|
|
273
|
+
stacked
|
|
274
|
+
borderRadius={1000}
|
|
275
|
+
height={300}
|
|
276
|
+
maxWidth={384}
|
|
277
|
+
inset={0}
|
|
278
|
+
series={[
|
|
279
|
+
{
|
|
280
|
+
id: 'purple',
|
|
281
|
+
data: [null, 6, 8, 10, 7, 6, 6, 8, 9, 12, 10, 4],
|
|
282
|
+
color: 'rgb(var(--purple30))',
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
id: 'blue',
|
|
286
|
+
data: [null, 10, 12, 11, 10, 9, 10, 11, 7, 4, 12, 18],
|
|
287
|
+
color: 'rgb(var(--blue30))',
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
id: 'cyan',
|
|
291
|
+
data: [null, 7, 10, 12, 11, 10, 8, 11, 5, 12, 2, 9],
|
|
292
|
+
color: 'rgb(var(--teal30))',
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
id: 'green',
|
|
296
|
+
data: [10, null, null, null, 1, null, null, 6, null, null, null, null],
|
|
297
|
+
color: 'rgb(var(--green30))',
|
|
298
|
+
},
|
|
299
|
+
]}
|
|
300
|
+
showXAxis
|
|
301
|
+
xAxis={{
|
|
302
|
+
data: months,
|
|
303
|
+
tickLabelFormatter: (value) => {
|
|
304
|
+
if (value === 11) {
|
|
305
|
+
return <tspan style={{ fontWeight: 'bold' }}>{months[value]}</tspan>;
|
|
306
|
+
}
|
|
307
|
+
return months[value];
|
|
308
|
+
},
|
|
309
|
+
categoryPadding: 0.25,
|
|
310
|
+
}}
|
|
311
|
+
stackMinSize={24}
|
|
312
|
+
style={{ margin: '0 auto' }}
|
|
313
|
+
/>
|
|
314
|
+
);
|
|
315
|
+
}
|
|
420
316
|
```
|
|
421
317
|
|
|
422
318
|
### Data
|
|
@@ -506,10 +402,10 @@ function MonthlyRewards() {
|
|
|
506
402
|
const green = [10, null, null, null, 1, null, null, 6, null, null, null, null];
|
|
507
403
|
|
|
508
404
|
const series = [
|
|
509
|
-
{ id: 'purple', data: purple, color: '
|
|
510
|
-
{ id: 'blue', data: blue, color: '
|
|
511
|
-
{ id: 'cyan', data: cyan, color: '
|
|
512
|
-
{ id: 'green', data: green, color: '
|
|
405
|
+
{ id: 'purple', data: purple, color: 'rgb(var(--purple30))' },
|
|
406
|
+
{ id: 'blue', data: blue, color: 'rgb(var(--blue30))' },
|
|
407
|
+
{ id: 'cyan', data: cyan, color: 'rgb(var(--teal30))' },
|
|
408
|
+
{ id: 'green', data: green, color: 'rgb(var(--green30))' },
|
|
513
409
|
];
|
|
514
410
|
|
|
515
411
|
const CustomBarStackComponent = ({ children, ...props }) => {
|
|
@@ -544,7 +440,7 @@ function MonthlyRewards() {
|
|
|
544
440
|
series={series}
|
|
545
441
|
showYAxis={false}
|
|
546
442
|
stackMinSize={3}
|
|
547
|
-
width={
|
|
443
|
+
width={384}
|
|
548
444
|
xAxis={{
|
|
549
445
|
tickLabelFormatter: (index) => {
|
|
550
446
|
if (index == currentMonth) {
|
|
@@ -552,7 +448,7 @@ function MonthlyRewards() {
|
|
|
552
448
|
}
|
|
553
449
|
return months[index];
|
|
554
450
|
},
|
|
555
|
-
categoryPadding: 0.
|
|
451
|
+
categoryPadding: 0.25,
|
|
556
452
|
}}
|
|
557
453
|
/>
|
|
558
454
|
);
|
|
@@ -630,7 +526,6 @@ There are two ways to control the spacing between bars. You can set the `barPadd
|
|
|
630
526
|
#### Minimum Size
|
|
631
527
|
|
|
632
528
|
To better emphasize small values, you can set the `stackMinSize` or `barMinSize` prop to control the minimum size for entire stacks or individual bar.
|
|
633
|
-
It is recommended to only use `stackMinSize` for stacked charts and `barMinSize` for non-stacked charts.
|
|
634
529
|
|
|
635
530
|
##### Minimum Stack Size
|
|
636
531
|
|
|
@@ -857,16 +752,28 @@ function MonthlyRewards() {
|
|
|
857
752
|
BarStackComponent={CustomBarStackComponent}
|
|
858
753
|
borderRadius={1000}
|
|
859
754
|
height={300}
|
|
860
|
-
maxWidth={
|
|
755
|
+
maxWidth={384}
|
|
861
756
|
padding={0}
|
|
862
757
|
series={[
|
|
863
|
-
{
|
|
864
|
-
|
|
865
|
-
|
|
758
|
+
{
|
|
759
|
+
id: 'purple',
|
|
760
|
+
data: [null, 6, 8, 10, 7, 6, 6, 8, 9, 12, 10, 4],
|
|
761
|
+
color: 'rgb(var(--purple30))',
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
id: 'blue',
|
|
765
|
+
data: [null, 10, 12, 11, 10, 9, 10, 11, 7, 4, 12, 18],
|
|
766
|
+
color: 'rgb(var(--blue30))',
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
id: 'cyan',
|
|
770
|
+
data: [null, 7, 10, 12, 11, 10, 8, 11, 5, 12, 2, 9],
|
|
771
|
+
color: 'rgb(var(--teal30))',
|
|
772
|
+
},
|
|
866
773
|
{
|
|
867
774
|
id: 'green',
|
|
868
775
|
data: [10, null, null, null, 1, null, null, 6, null, null, null, null],
|
|
869
|
-
color: '
|
|
776
|
+
color: 'rgb(var(--green30))',
|
|
870
777
|
},
|
|
871
778
|
]}
|
|
872
779
|
showXAxis
|
|
@@ -878,6 +785,7 @@ function MonthlyRewards() {
|
|
|
878
785
|
}
|
|
879
786
|
return value;
|
|
880
787
|
},
|
|
788
|
+
categoryPadding: 0.25,
|
|
881
789
|
}}
|
|
882
790
|
yAxis={{ range: ({ min, max }) => ({ min, max: max - 4 }) }}
|
|
883
791
|
style={{ margin: '0 auto' }}
|
|
@@ -1340,7 +1248,7 @@ function BuyVsSellExample() {
|
|
|
1340
1248
|
function BuyVsSellChart({
|
|
1341
1249
|
buy,
|
|
1342
1250
|
sell,
|
|
1343
|
-
animate =
|
|
1251
|
+
animate = true,
|
|
1344
1252
|
borderRadius = 3,
|
|
1345
1253
|
height = 6,
|
|
1346
1254
|
inset = 0,
|
|
@@ -1348,6 +1256,7 @@ function BuyVsSellExample() {
|
|
|
1348
1256
|
stackGap = 4,
|
|
1349
1257
|
xAxis,
|
|
1350
1258
|
yAxis,
|
|
1259
|
+
barMinSize = height,
|
|
1351
1260
|
...props
|
|
1352
1261
|
}: Omit<BarChartProps, 'series'> & { buy: number; sell: number }) {
|
|
1353
1262
|
return (
|
|
@@ -1356,6 +1265,7 @@ function BuyVsSellExample() {
|
|
|
1356
1265
|
animate={animate}
|
|
1357
1266
|
roundBaseline
|
|
1358
1267
|
stacked
|
|
1268
|
+
barMinSize={barMinSize}
|
|
1359
1269
|
borderRadius={borderRadius}
|
|
1360
1270
|
height={height}
|
|
1361
1271
|
inset={inset}
|
|
@@ -588,6 +588,7 @@ function FreeSoloExample() {
|
|
|
588
588
|
| `end` | `null \| string \| number \| false \| true \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal` | No | `-` | End-aligned content (e.g., value, status). Replaces the deprecated detail prop. |
|
|
589
589
|
| `endNode` | `null \| string \| number \| false \| true \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal` | No | `-` | Adds content to the end of the inner input. Refer to diagram for location of endNode in InputStack component |
|
|
590
590
|
| `filterFunction` | `((options: SelectOptionList<Type, SelectOptionValue>, searchText: string) => SelectOption<SelectOptionValue>[])` | No | `-` | Custom filter function for searching options |
|
|
591
|
+
| `font` | `ResponsiveProp<FontFamily \| inherit>` | No | `-` | - |
|
|
591
592
|
| `helperText` | `null \| string \| number \| false \| true \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal` | No | `-` | Helper text displayed below the select |
|
|
592
593
|
| `hiddenSelectedOptionsLabel` | `string` | No | `-` | Label to show for showcasing count of hidden selected options |
|
|
593
594
|
| `hideSearchInput` | `boolean` | No | `-` | Hide the search input |
|