dynamic-mui 2.2.0 → 2.3.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.
Files changed (166) hide show
  1. package/README.md +142 -5
  2. package/dist/accordion-DqBdGRim.mjs +23 -0
  3. package/dist/accordion-lvbD_BpX.js +1 -0
  4. package/dist/addressfield-CGX3UppE.mjs +152 -0
  5. package/dist/addressfield-DDG15fqJ.js +1 -0
  6. package/dist/asyncautocomplete-BAfBR9P7.mjs +89 -0
  7. package/dist/asyncautocomplete-w9q_1DWt.js +1 -0
  8. package/dist/bar-BzO7tvYJ.mjs +20 -0
  9. package/dist/bar-DEVxyUVS.js +1 -0
  10. package/dist/cascadeselect-C3QVfoig.mjs +64 -0
  11. package/dist/cascadeselect-DzbhK9en.js +1 -0
  12. package/dist/colorpicker-5qmEq7ZI.js +1 -0
  13. package/dist/colorpicker-DhNZulJY.mjs +98 -0
  14. package/dist/components/DynamicComponent.d.ts +2 -0
  15. package/dist/components/FormGenerator.d.ts +99 -10
  16. package/dist/components/controls/index.d.ts +45 -79
  17. package/dist/consentfield-B7Rm8d3U.js +1 -0
  18. package/dist/consentfield-CBQUR4J5.mjs +78 -0
  19. package/dist/datatable-BIQznwQe.mjs +20 -0
  20. package/dist/datatable-BWlcUP0M.js +1 -0
  21. package/dist/dynamic-mui.cjs +1 -0
  22. package/dist/dynamic-mui.mjs +32 -0
  23. package/dist/editabletable-DCoRmsEO.js +1 -0
  24. package/dist/editabletable-DRlBV8lk.mjs +126 -0
  25. package/dist/fileupload-ByBv1UjT.mjs +172 -0
  26. package/dist/fileupload-Cze3Oc_2.js +1 -0
  27. package/dist/formrepeater-BBkKGLFJ.mjs +71 -0
  28. package/dist/formrepeater-BxJzXoHx.js +1 -0
  29. package/dist/formwizard-BDZE1UDD.js +1 -0
  30. package/dist/formwizard-D2u1bMvK.mjs +83 -0
  31. package/dist/geofield-8WTeZk0Z.mjs +104 -0
  32. package/dist/geofield-Bw3p4NLJ.js +1 -0
  33. package/dist/group-B2mSylHd.mjs +23 -0
  34. package/dist/group-BlfO3ZZf.js +1 -0
  35. package/dist/imagelist-Bn9QhIv7.js +1 -0
  36. package/dist/imagelist-rqmJajHt.mjs +18 -0
  37. package/dist/index-CddjLTWF.mjs +12499 -0
  38. package/dist/index-D08GIfqF.js +43 -0
  39. package/dist/index.d.ts +9 -1
  40. package/dist/intlphone-B_Xn98pU.js +1 -0
  41. package/dist/intlphone-DtQZ12xk.mjs +140 -0
  42. package/dist/keyvaluefield-B_1NeGuP.mjs +125 -0
  43. package/dist/keyvaluefield-DyKCGd32.js +1 -0
  44. package/dist/line-B-DwR1hm.mjs +20 -0
  45. package/dist/line-BkymZu31.js +1 -0
  46. package/dist/lineitemlist-DGo8UOZC.js +1 -0
  47. package/dist/lineitemlist-vGKzJlQx.mjs +166 -0
  48. package/dist/list-7uNWrepS.mjs +20 -0
  49. package/dist/list-C0FgmtQw.js +1 -0
  50. package/dist/locationfield-CeUgxLkQ.mjs +119 -0
  51. package/dist/locationfield-Duyw1ZEz.js +1 -0
  52. package/dist/markdowneditor-B1y-hfny.mjs +90 -0
  53. package/dist/markdowneditor-Db0Un1_Z.js +2 -0
  54. package/dist/matrixfield-C7Sc-YpI.mjs +117 -0
  55. package/dist/matrixfield-CckODuPn.js +1 -0
  56. package/dist/mixChart-C3o184UT.js +1 -0
  57. package/dist/mixChart-ISf3Kbr-.mjs +75 -0
  58. package/dist/multitextbox-BYazIAeG.js +1 -0
  59. package/dist/multitextbox-ide2lvJ6.mjs +78 -0
  60. package/dist/npsscale-C2e88qk_.js +1 -0
  61. package/dist/npsscale-lndz7GEq.mjs +87 -0
  62. package/dist/numberstepper-DitbcvV9.mjs +128 -0
  63. package/dist/numberstepper-DyRjQM_K.js +1 -0
  64. package/dist/pie-CJSL8Sv5.js +1 -0
  65. package/dist/pie-CL29dlh5.mjs +20 -0
  66. package/dist/richtexteditor-CVg-MnKp.js +1 -0
  67. package/dist/richtexteditor-DsC1XC7h.mjs +141 -0
  68. package/dist/s3Upload-B0JeoLkS.js +1 -0
  69. package/dist/s3Upload-dpioZ2c8.mjs +51 -0
  70. package/dist/signature-14OrZriO.mjs +1225 -0
  71. package/dist/signature-D582X6tB.js +2 -0
  72. package/dist/stepper-B-FpcZvT.js +1 -0
  73. package/dist/stepper-CDfEy_C6.mjs +140 -0
  74. package/dist/summaryfield-B08ZmVHh.js +1 -0
  75. package/dist/summaryfield-CTpPlZBG.mjs +96 -0
  76. package/dist/tabs-BIliqFOs.js +1 -0
  77. package/dist/tabs-DDeJCFt8.mjs +39 -0
  78. package/dist/tagsinput-D-q6rRZS.mjs +58 -0
  79. package/dist/tagsinput-qh_lhdFb.js +1 -0
  80. package/dist/util/registry.d.ts +29 -0
  81. package/dist/util/resolvers.d.ts +45 -0
  82. package/dist/util/useFormEngine.d.ts +74 -0
  83. package/dist/util/validateSchema.d.ts +23 -0
  84. package/dist/v4-BysszJq8.mjs +30 -0
  85. package/dist/v4-CqdK_b8Y.js +1 -0
  86. package/package.json +36 -11
  87. package/dist/AxisSharedComponents-BbsKw1BT.js +0 -3
  88. package/dist/AxisSharedComponents-xLtpOLH_.mjs +0 -605
  89. package/dist/ChartsAxis-CANvBdY9.mjs +0 -47
  90. package/dist/ChartsAxis-EZ7m_KrU.js +0 -1
  91. package/dist/ChartsGrid-BCRTvNTr.js +0 -3
  92. package/dist/ChartsGrid-C_HT7qpL.mjs +0 -381
  93. package/dist/ChartsWrapper-CM7EDyAK.js +0 -5
  94. package/dist/ChartsWrapper-CO5_Z6BD.mjs +0 -1878
  95. package/dist/ChartsXAxis-CPmuCRhq.mjs +0 -487
  96. package/dist/ChartsXAxis-DFFY1sPg.js +0 -3
  97. package/dist/ChartsYAxis-DLUMr9vG.mjs +0 -392
  98. package/dist/ChartsYAxis-fpevi1sP.js +0 -1
  99. package/dist/XmlShapeDeserializer-3yQdm0b0.mjs +0 -237
  100. package/dist/XmlShapeDeserializer-XKJAoqLc.js +0 -1
  101. package/dist/clampAngle-BvZjnf53.mjs +0 -11
  102. package/dist/clampAngle-DpAsDoeT.js +0 -1
  103. package/dist/createSelector-B-9FwV16.mjs +0 -430
  104. package/dist/createSelector-f0oqn8Lr.js +0 -7
  105. package/dist/date-utils-CFUUt6NL.js +0 -4
  106. package/dist/date-utils-pGzaKb0p.mjs +0 -477
  107. package/dist/dynamic-mui.cjs.js +0 -1
  108. package/dist/dynamic-mui.es.js +0 -22
  109. package/dist/index--8Zky9Oh.js +0 -299
  110. package/dist/index-6WTs1Xy_.js +0 -1
  111. package/dist/index-B1R1akM2.js +0 -1
  112. package/dist/index-BW8_rRff.js +0 -7
  113. package/dist/index-BXFVK_GX.js +0 -1
  114. package/dist/index-B_KNUTjy.js +0 -1
  115. package/dist/index-BhaKvHkU.mjs +0 -62051
  116. package/dist/index-Bif92ima.js +0 -1
  117. package/dist/index-BnZOu8CL.js +0 -1
  118. package/dist/index-CDxpgRlR.mjs +0 -7
  119. package/dist/index-CThMfvtJ.mjs +0 -2555
  120. package/dist/index-CVqLvm8B.js +0 -1
  121. package/dist/index-CodJBIn6.mjs +0 -1665
  122. package/dist/index-Cr6Wp_S-.mjs +0 -3141
  123. package/dist/index-CslPwsrf.mjs +0 -4
  124. package/dist/index-CuV0MQzZ.mjs +0 -1173
  125. package/dist/index-DA0XouZs.mjs +0 -153
  126. package/dist/index-DKS5Sz9e.js +0 -14
  127. package/dist/index-DSkYYZuW.mjs +0 -4
  128. package/dist/index-DU78_FiA.js +0 -1
  129. package/dist/index-D_mYhgJ0.js +0 -10
  130. package/dist/index-DcWfyXJp.mjs +0 -92
  131. package/dist/index-Dlimbnxj.mjs +0 -2965
  132. package/dist/index-MllWgTJ5.mjs +0 -9372
  133. package/dist/index-in5z9hUb.js +0 -133
  134. package/dist/index-qUW7FnZ-.mjs +0 -20540
  135. package/dist/index.browser-BSu11T_q.mjs +0 -363
  136. package/dist/index.browser-By7-GABP.js +0 -4
  137. package/dist/isDeepEqual-BHfPvf9U.mjs +0 -393
  138. package/dist/isDeepEqual-CqxZGVRk.js +0 -1
  139. package/dist/loadCognitoIdentity-DtYTy-DW.js +0 -1
  140. package/dist/loadCognitoIdentity-DzdR91GB.mjs +0 -872
  141. package/dist/loadSts-Cic6UToN.mjs +0 -593
  142. package/dist/loadSts-csbFP6zX.js +0 -1
  143. package/dist/main.d.ts +0 -1
  144. package/dist/noAuth-B8ui2kBg.mjs +0 -71
  145. package/dist/noAuth-JPA2o4dt.js +0 -1
  146. package/dist/playground/AIContext.d.ts +0 -18
  147. package/dist/playground/AIPanel.d.ts +0 -10
  148. package/dist/playground/Builder.d.ts +0 -1
  149. package/dist/playground/Canvas.d.ts +0 -9
  150. package/dist/playground/DemoGallery.d.ts +0 -6
  151. package/dist/playground/PropertiesEditor.d.ts +0 -10
  152. package/dist/playground/Sidebar.d.ts +0 -9
  153. package/dist/playground/demoForms.d.ts +0 -3
  154. package/dist/playground/demoRecipes.d.ts +0 -15
  155. package/dist/playground/demoVariants.d.ts +0 -11
  156. package/dist/playground/documentation.d.ts +0 -6
  157. package/dist/playground/templates.d.ts +0 -7
  158. package/dist/playground/testData.d.ts +0 -2
  159. package/dist/test/setup.d.ts +0 -0
  160. package/dist/theme/theme.d.ts +0 -6
  161. package/dist/useAxis-DSbfEtO7.js +0 -3
  162. package/dist/useAxis-SiNBMMWq.mjs +0 -3010
  163. package/dist/useChartContainerProps-Bl3hO-r1.mjs +0 -5418
  164. package/dist/useChartContainerProps-C_C_PZoi.js +0 -12
  165. package/dist/useItemHighlightedGetter-9CIwqsGj.js +0 -1
  166. package/dist/useItemHighlightedGetter-CTISrNdV.mjs +0 -88
@@ -1,2555 +0,0 @@
1
- import { h as oe, c as re, g as ae, u as he, a as N, j as b, _ as y, s as J, P as e, e as ye, w as Be, m as Oe, n as be, b as Ee } from "./index-BhaKvHkU.mjs";
2
- import * as R from "react";
3
- import { u as Fe, b as se, A as ge, d as ce, g as xe, c as ze, k as _e, l as He, m as Xe, n as Ge, f as me, e as Ye, C as Ke, h as Ue, i as Ve, j as We } from "./ChartsWrapper-CO5_Z6BD.mjs";
4
- import { j as w, u as le, a as ue, b as Q, l as Ze, m as Je, f as Qe, s as et, d as ee, n as tt, c as nt } from "./useAxis-SiNBMMWq.mjs";
5
- import { u as it, C as ot, a as rt, b as at } from "./ChartsGrid-C_HT7qpL.mjs";
6
- import { H as Te, I as ke, J as st, K as ct, L as Re, M as lt, N as ut, O as de, P as ve, Q as dt, R as ft, z as bt, A as mt, S as pt, B as ht, D as yt, E as Ot, u as gt, C as xt, a as Tt } from "./useChartContainerProps-Bl3hO-r1.mjs";
7
- import { a as kt } from "./createSelector-B-9FwV16.mjs";
8
- import { C as Rt } from "./ChartsAxis-CANvBdY9.mjs";
9
- function vt(t) {
10
- return ae("MuiBarElement", t);
11
- }
12
- const jt = oe("MuiBarElement", ["root", "highlighted", "faded", "series"]), qt = (t) => {
13
- const {
14
- classes: i,
15
- id: o,
16
- isHighlighted: n,
17
- isFaded: a
18
- } = t, r = {
19
- root: ["root", `series-${o}`, n && "highlighted", a && "faded"]
20
- };
21
- return re(r, vt, i);
22
- };
23
- function je() {
24
- return Fe("bar");
25
- }
26
- function Pt(t, i) {
27
- const o = w(t.x, i.x), n = w(t.y, i.y), a = w(t.width, i.width), r = w(t.height, i.height);
28
- return (l) => ({
29
- x: o(l),
30
- y: n(l),
31
- width: a(l),
32
- height: r(l)
33
- });
34
- }
35
- function It(t) {
36
- const i = {
37
- x: t.layout === "vertical" ? t.x : t.xOrigin,
38
- y: t.layout === "vertical" ? t.yOrigin : t.y,
39
- width: t.layout === "vertical" ? t.width : 0,
40
- height: t.layout === "vertical" ? 0 : t.height
41
- };
42
- return se({
43
- x: t.x,
44
- y: t.y,
45
- width: t.width,
46
- height: t.height
47
- }, {
48
- createInterpolator: Pt,
49
- applyProps(o, n) {
50
- o.setAttribute("x", n.x.toString()), o.setAttribute("y", n.y.toString()), o.setAttribute("width", n.width.toString()), o.setAttribute("height", n.height.toString());
51
- },
52
- transformProps: (o) => o,
53
- initialProps: i,
54
- skip: t.skipAnimation,
55
- ref: t.ref
56
- });
57
- }
58
- function St(t, i) {
59
- const o = w(t.x, i.x), n = w(t.y, i.y), a = w(t.width, i.width), r = w(t.height, i.height);
60
- return (l) => ({
61
- x: o(l),
62
- y: n(l),
63
- width: a(l),
64
- height: r(l)
65
- });
66
- }
67
- function Lt(t) {
68
- const {
69
- initialX: i,
70
- currentX: o,
71
- initialY: n,
72
- currentY: a
73
- } = t.placement === "outside" ? Mt(t) : $t(t), r = {
74
- x: i,
75
- y: n,
76
- width: t.width,
77
- height: t.height
78
- }, l = {
79
- x: o,
80
- y: a,
81
- width: t.width,
82
- height: t.height
83
- };
84
- return se(l, {
85
- createInterpolator: St,
86
- transformProps: (u) => u,
87
- applyProps(u, d) {
88
- u.setAttribute("x", d.x.toString()), u.setAttribute("y", d.y.toString()), u.setAttribute("width", d.width.toString()), u.setAttribute("height", d.height.toString());
89
- },
90
- initialProps: r,
91
- skip: t.skipAnimation,
92
- ref: t.ref
93
- });
94
- }
95
- const V = 4;
96
- function $t(t) {
97
- return {
98
- initialX: t.layout === "vertical" ? t.x + t.width / 2 : t.xOrigin,
99
- initialY: t.layout === "vertical" ? t.yOrigin : t.y + t.height / 2,
100
- currentX: t.x + t.width / 2,
101
- currentY: t.y + t.height / 2
102
- };
103
- }
104
- function Mt(t) {
105
- let i = 0, o = 0, n = 0, a = 0;
106
- return t.layout === "vertical" ? (t.y < t.yOrigin ? (i = t.yOrigin - V, o = t.y - V) : (i = t.yOrigin + V, o = t.y + t.height + V), {
107
- initialX: t.x + t.width / 2,
108
- currentX: t.x + t.width / 2,
109
- initialY: i,
110
- currentY: o
111
- }) : (t.x < t.xOrigin ? (n = t.xOrigin, a = t.x - V) : (n = t.xOrigin, a = t.x + t.width + V), {
112
- initialX: n,
113
- currentX: a,
114
- initialY: t.y + t.height / 2,
115
- currentY: t.y + t.height / 2
116
- });
117
- }
118
- function At(t) {
119
- return ae("MuiBarLabel", t);
120
- }
121
- const pe = oe("MuiBarLabel", ["root", "highlighted", "faded", "animate"]), Ct = (t) => {
122
- const {
123
- classes: i,
124
- seriesId: o,
125
- isFaded: n,
126
- isHighlighted: a,
127
- skipAnimation: r
128
- } = t, l = {
129
- root: ["root", `series-${o}`, a && "highlighted", n && "faded", !r && "animate"]
130
- };
131
- return re(l, At, i);
132
- };
133
- function wt(t) {
134
- const {
135
- barLabel: i,
136
- value: o,
137
- dataIndex: n,
138
- seriesId: a,
139
- height: r,
140
- width: l
141
- } = t;
142
- return i === "value" ? o ? o?.toString() : null : i({
143
- seriesId: a,
144
- dataIndex: n,
145
- value: o
146
- }, {
147
- bar: {
148
- height: r,
149
- width: l
150
- }
151
- });
152
- }
153
- const Dt = ["seriesId", "dataIndex", "color", "isFaded", "isHighlighted", "classes", "skipAnimation", "layout", "xOrigin", "yOrigin", "placement", "hidden"], Nt = J("text", {
154
- name: "MuiBarLabel",
155
- slot: "Root",
156
- overridesResolver: (t, i) => [{
157
- [`&.${pe.faded}`]: i.faded
158
- }, {
159
- [`&.${pe.highlighted}`]: i.highlighted
160
- }, i.root]
161
- })(({
162
- theme: t
163
- }) => y({}, t?.typography?.body2, {
164
- stroke: "none",
165
- fill: (t.vars || t)?.palette?.text?.primary,
166
- transitionProperty: "opacity, fill",
167
- transitionDuration: `${ce}ms`,
168
- transitionTimingFunction: ge,
169
- pointerEvents: "none"
170
- }));
171
- function qe(t) {
172
- const i = he({
173
- props: t,
174
- name: "MuiBarLabel"
175
- }), {
176
- isFaded: o,
177
- hidden: n
178
- } = i, a = N(i, Dt), r = Lt(i), l = Bt(i), u = Et(i), d = o ? 0.3 : 1;
179
- return /* @__PURE__ */ b.jsx(Nt, y({
180
- textAnchor: l,
181
- dominantBaseline: u,
182
- opacity: n ? 0 : d
183
- }, a, r));
184
- }
185
- function Bt({
186
- placement: t,
187
- layout: i,
188
- xOrigin: o,
189
- x: n
190
- }) {
191
- return t === "outside" && i === "horizontal" ? n < o ? "end" : "start" : "middle";
192
- }
193
- function Et({
194
- placement: t,
195
- layout: i,
196
- yOrigin: o,
197
- y: n
198
- }) {
199
- return t === "outside" ? i === "horizontal" ? "central" : n < o ? "auto" : "hanging" : "central";
200
- }
201
- process.env.NODE_ENV !== "production" && (qe.propTypes = {
202
- // ----------------------------- Warning --------------------------------
203
- // | These PropTypes are generated from the TypeScript type definitions |
204
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
205
- // ----------------------------------------------------------------------
206
- classes: e.object,
207
- dataIndex: e.number.isRequired,
208
- /**
209
- * Height of the bar this label belongs to.
210
- */
211
- height: e.number.isRequired,
212
- /**
213
- * If true, the bar label is hidden.
214
- */
215
- hidden: e.bool,
216
- isFaded: e.bool.isRequired,
217
- isHighlighted: e.bool.isRequired,
218
- layout: e.oneOf(["horizontal", "vertical"]).isRequired,
219
- /**
220
- * The placement of the bar label.
221
- * It controls whether the label is rendered in the center or outside the bar.
222
- * @default 'center'
223
- */
224
- placement: e.oneOf(["center", "outside"]),
225
- seriesId: e.oneOfType([e.number, e.string]).isRequired,
226
- skipAnimation: e.bool.isRequired,
227
- /**
228
- * Width of the bar this label belongs to.
229
- */
230
- width: e.number.isRequired,
231
- /**
232
- * Position in the x-axis of the bar this label belongs to.
233
- */
234
- x: e.number.isRequired,
235
- /**
236
- * The x-coordinate of the stack this bar label belongs to.
237
- */
238
- xOrigin: e.number.isRequired,
239
- /**
240
- * Position in the y-axis of the bar this label belongs to.
241
- */
242
- y: e.number.isRequired,
243
- /**
244
- * The y-coordinate of the stack this bar label belongs to.
245
- */
246
- yOrigin: e.number.isRequired
247
- });
248
- const Ft = ["seriesId", "classes", "color", "dataIndex", "barLabel", "slots", "slotProps", "xOrigin", "yOrigin", "x", "y", "width", "height", "value", "skipAnimation", "layout", "barLabelPlacement", "hidden"], zt = ["ownerState"];
249
- function Pe(t) {
250
- const {
251
- seriesId: i,
252
- classes: o,
253
- color: n,
254
- dataIndex: a,
255
- barLabel: r,
256
- slots: l,
257
- slotProps: u,
258
- xOrigin: d,
259
- yOrigin: f,
260
- x: s,
261
- y: c,
262
- width: p,
263
- height: O,
264
- value: h,
265
- skipAnimation: T,
266
- layout: g,
267
- barLabelPlacement: k,
268
- hidden: m
269
- } = t, q = N(t, Ft), {
270
- isFaded: I,
271
- isHighlighted: P
272
- } = xe({
273
- seriesId: i,
274
- dataIndex: a
275
- }), S = {
276
- seriesId: i,
277
- classes: o,
278
- color: n,
279
- isFaded: I,
280
- isHighlighted: P,
281
- dataIndex: a,
282
- skipAnimation: T,
283
- layout: g
284
- }, $ = Ct(S), v = l?.barLabel ?? qe, A = ye({
285
- elementType: v,
286
- externalSlotProps: u?.barLabel,
287
- additionalProps: y({}, q, {
288
- xOrigin: d,
289
- yOrigin: f,
290
- x: s,
291
- y: c,
292
- width: p,
293
- height: O,
294
- placement: k,
295
- className: $.root
296
- }),
297
- ownerState: S
298
- }), {
299
- ownerState: D
300
- } = A, E = N(A, zt);
301
- if (!r)
302
- return null;
303
- const B = wt({
304
- barLabel: r,
305
- value: h,
306
- dataIndex: a,
307
- seriesId: i,
308
- height: O,
309
- width: p
310
- });
311
- return B ? /* @__PURE__ */ b.jsx(v, y({}, E, D, {
312
- hidden: m,
313
- children: B
314
- })) : null;
315
- }
316
- process.env.NODE_ENV !== "production" && (Pe.propTypes = {
317
- // ----------------------------- Warning --------------------------------
318
- // | These PropTypes are generated from the TypeScript type definitions |
319
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
320
- // ----------------------------------------------------------------------
321
- /**
322
- * If provided, the function will be used to format the label of the bar.
323
- * It can be set to 'value' to display the current value.
324
- * @param {BarItem} item The item to format.
325
- * @param {BarLabelContext} context data about the bar.
326
- * @returns {string} The formatted label.
327
- */
328
- barLabel: e.oneOfType([e.oneOf(["value"]), e.func]),
329
- classes: e.object,
330
- color: e.string.isRequired,
331
- dataIndex: e.number.isRequired,
332
- /**
333
- * The height of the bar.
334
- */
335
- height: e.number.isRequired,
336
- seriesId: e.oneOfType([e.number, e.string]).isRequired,
337
- /**
338
- * The props used for each component slot.
339
- * @default {}
340
- */
341
- slotProps: e.object,
342
- /**
343
- * Overridable component slots.
344
- * @default {}
345
- */
346
- slots: e.object,
347
- /**
348
- * The value of the data point.
349
- */
350
- value: e.number,
351
- /**
352
- * The width of the bar.
353
- */
354
- width: e.number.isRequired
355
- });
356
- const _t = ["processedSeries", "className", "skipAnimation"];
357
- function Ht(t) {
358
- const {
359
- processedSeries: i,
360
- className: o,
361
- skipAnimation: n
362
- } = t, a = N(t, _t), {
363
- seriesId: r,
364
- data: l,
365
- layout: u,
366
- xOrigin: d,
367
- yOrigin: f
368
- } = i, s = i.barLabel ?? t.barLabel;
369
- return s ? /* @__PURE__ */ b.jsx("g", {
370
- className: o,
371
- "data-series": r,
372
- children: l.map(({
373
- x: c,
374
- y: p,
375
- dataIndex: O,
376
- color: h,
377
- value: T,
378
- width: g,
379
- height: k,
380
- hidden: m
381
- }) => /* @__PURE__ */ b.jsx(Pe, y({
382
- seriesId: r,
383
- dataIndex: O,
384
- value: T,
385
- color: h,
386
- xOrigin: d,
387
- yOrigin: f,
388
- x: c,
389
- y: p,
390
- width: g,
391
- height: k,
392
- skipAnimation: n ?? !1,
393
- layout: u ?? "vertical",
394
- hidden: m
395
- }, a, {
396
- barLabel: s,
397
- barLabelPlacement: i.barLabelPlacement || "center"
398
- }), O))
399
- }, r) : null;
400
- }
401
- const W = (t, i) => {
402
- const o = `${t}-axis`, n = `${t}Axis`;
403
- return i === (t === "x" ? Te : ke) ? `The first \`${n}\`` : `The ${o} with id "${i}"`;
404
- };
405
- function Xt(t, i, o, n, a, r, l) {
406
- const u = a[n], d = l[r], f = t ? u : d, s = t ? d : u, c = t ? n : r, p = t ? r : n, O = t ? "x" : "y", h = t ? "y" : "x";
407
- if (f.scaleType !== "band")
408
- throw new Error(`MUI X Charts: ${W(O, c)} should be of type "band" to display the bar series of id "${i}".`);
409
- if (f.data === void 0)
410
- throw new Error(`MUI X Charts: ${W(O, c)} should have data property.`);
411
- if (s.scaleType === "band" || s.scaleType === "point")
412
- throw new Error(`MUI X Charts: ${W(h, p)} should be a continuous type to display the bar series of id "${i}".`);
413
- process.env.NODE_ENV !== "production" && f.data.length < o && Be([`MUI X Charts: ${W(O, c)} has less data (${f.data.length} values) than the bar series of id "${i}" (${o} values).`, "The axis data should have at least the same length than the series using it."], "error");
414
- }
415
- function Gt(t, i, o) {
416
- const n = je() ?? {
417
- series: {},
418
- stackingGroups: []
419
- }, a = le().xAxisIds[0], r = ue().yAxisIds[0], l = st();
420
- return Yt(t, l, n.stackingGroups, n.series, i, o, a, r);
421
- }
422
- function Yt(t, i, o, n, a, r, l, u) {
423
- const d = {};
424
- return {
425
- completedData: o.flatMap(({
426
- ids: s
427
- }, c) => {
428
- const p = t.left, O = t.left + t.width, h = t.top, T = t.top + t.height, g = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map();
429
- return s.map((m) => {
430
- const q = n[m].xAxisId ?? l, I = n[m].yAxisId ?? u, P = n[m].layout, S = a[q], $ = r[I], v = n[m].layout === "vertical", A = (v ? $.reverse : S.reverse) ?? !1;
431
- Xt(v, m, n[m].stackedData.length, q, a, I, r);
432
- const D = v ? S : $, E = S.scale, B = $.scale, M = Math.round(E(0) ?? 0), _ = Math.round(B(0) ?? 0), H = ct(n[m], a[q], r[I]), X = [];
433
- for (let L = 0; L < D.data.length; L += 1) {
434
- const Y = Re({
435
- verticalLayout: v,
436
- xAxisConfig: S,
437
- yAxisConfig: $,
438
- series: n[m],
439
- dataIndex: L,
440
- numberOfGroups: o.length,
441
- groupIndex: c
442
- });
443
- if (Y == null)
444
- continue;
445
- const G = n[m].stack, x = y({
446
- seriesId: m,
447
- dataIndex: L,
448
- hidden: n[m].hidden
449
- }, Y, {
450
- color: H(L),
451
- value: n[m].data[L],
452
- maskId: `${i}_${G || m}_${c}_${L}`
453
- });
454
- if (x.x > O || x.x + x.width < p || x.y > T || x.y + x.height < h)
455
- continue;
456
- const F = g.get(L), z = k.get(L), K = (A ? -1 : 1) * Math.sign(x.value ?? 0);
457
- K > 0 ? (z && delete z.borderRadiusSide, x.borderRadiusSide = v ? "top" : "right", k.set(L, x)) : K < 0 && (F && delete F.borderRadiusSide, x.borderRadiusSide = v ? "bottom" : "left", g.set(L, x)), d[x.maskId] || (d[x.maskId] = {
458
- id: x.maskId,
459
- width: 0,
460
- height: 0,
461
- hasNegative: !1,
462
- hasPositive: !1,
463
- layout: P,
464
- xOrigin: M,
465
- yOrigin: _,
466
- x: 0,
467
- y: 0
468
- });
469
- const j = d[x.maskId];
470
- j.width = P === "vertical" ? x.width : j.width + x.width, j.height = P === "vertical" ? j.height + x.height : x.height, j.x = Math.min(j.x === 0 ? 1 / 0 : j.x, x.x), j.y = Math.min(j.y === 0 ? 1 / 0 : j.y, x.y);
471
- const U = x.value ?? 0;
472
- j.hasNegative = j.hasNegative || (A ? U > 0 : U < 0), j.hasPositive = j.hasPositive || (A ? U < 0 : U > 0), X.push(x);
473
- }
474
- return {
475
- seriesId: m,
476
- barLabel: n[m].barLabel,
477
- barLabelPlacement: n[m].barLabelPlacement,
478
- data: X,
479
- layout: P,
480
- xOrigin: M,
481
- yOrigin: _
482
- };
483
- });
484
- }),
485
- masksData: Object.values(d)
486
- };
487
- }
488
- function Kt(t) {
489
- return ae("MuiBar", t);
490
- }
491
- const An = oe("MuiBar", ["root", "series", "seriesLabels"]), fe = (t) => re({
492
- root: ["root"],
493
- series: ["series"],
494
- seriesLabels: ["seriesLabels"]
495
- }, Kt, t), Ut = ["ownerState", "skipAnimation", "id", "dataIndex", "xOrigin", "yOrigin"];
496
- function Vt(t) {
497
- const {
498
- ownerState: i
499
- } = t, o = N(t, Ut), n = It(t);
500
- return /* @__PURE__ */ b.jsx("rect", y({}, o, {
501
- filter: i.isHighlighted ? "brightness(120%)" : void 0,
502
- opacity: i.isFaded ? 0.3 : 1,
503
- "data-highlighted": i.isHighlighted || void 0,
504
- "data-faded": i.isFaded || void 0
505
- }, n));
506
- }
507
- function Wt(t) {
508
- return Q().use(lt, t);
509
- }
510
- const Zt = ["id", "dataIndex", "classes", "color", "slots", "slotProps", "style", "onClick", "skipAnimation", "layout", "x", "xOrigin", "y", "yOrigin", "width", "height", "hidden"];
511
- function Ie(t) {
512
- const {
513
- id: i,
514
- dataIndex: o,
515
- classes: n,
516
- color: a,
517
- slots: r,
518
- slotProps: l,
519
- style: u,
520
- onClick: d,
521
- skipAnimation: f,
522
- layout: s,
523
- x: c,
524
- xOrigin: p,
525
- y: O,
526
- yOrigin: h,
527
- width: T,
528
- height: g,
529
- hidden: k
530
- } = t, m = N(t, Zt), q = R.useMemo(() => ({
531
- type: "bar",
532
- seriesId: i,
533
- dataIndex: o
534
- }), [i, o]), I = ze(q), {
535
- isFaded: P,
536
- isHighlighted: S
537
- } = xe(q), $ = Wt(R.useMemo(() => ({
538
- type: "bar",
539
- seriesId: i,
540
- dataIndex: o
541
- }), [i, o])), v = {
542
- id: i,
543
- dataIndex: o,
544
- classes: n,
545
- color: a,
546
- isFaded: P,
547
- isHighlighted: S,
548
- isFocused: $
549
- }, A = qt(v), D = r?.bar ?? Vt, E = ye({
550
- elementType: D,
551
- externalSlotProps: l?.bar,
552
- externalForwardedProps: m,
553
- additionalProps: y({}, I, {
554
- id: i,
555
- dataIndex: o,
556
- color: a,
557
- x: c,
558
- xOrigin: p,
559
- y: O,
560
- yOrigin: h,
561
- width: T,
562
- height: g,
563
- style: u,
564
- onClick: d,
565
- cursor: d ? "pointer" : "unset",
566
- stroke: "none",
567
- fill: a,
568
- skipAnimation: f,
569
- layout: s,
570
- hidden: k
571
- }),
572
- className: A.root,
573
- ownerState: v
574
- });
575
- return /* @__PURE__ */ b.jsx(D, y({}, E));
576
- }
577
- process.env.NODE_ENV !== "production" && (Ie.propTypes = {
578
- // ----------------------------- Warning --------------------------------
579
- // | These PropTypes are generated from the TypeScript type definitions |
580
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
581
- // ----------------------------------------------------------------------
582
- classes: e.object,
583
- dataIndex: e.number.isRequired,
584
- id: e.oneOfType([e.number, e.string]).isRequired,
585
- layout: e.oneOf(["horizontal", "vertical"]).isRequired,
586
- skipAnimation: e.bool.isRequired,
587
- /**
588
- * The props used for each component slot.
589
- * @default {}
590
- */
591
- slotProps: e.object,
592
- /**
593
- * Overridable component slots.
594
- * @default {}
595
- */
596
- slots: e.object,
597
- xOrigin: e.number.isRequired,
598
- yOrigin: e.number.isRequired
599
- });
600
- function Jt(t, i) {
601
- const o = w(t.x, i.x), n = w(t.y, i.y), a = w(t.width, i.width), r = w(t.height, i.height), l = w(t.borderRadius, i.borderRadius);
602
- return (u) => ({
603
- x: o(u),
604
- y: n(u),
605
- width: a(u),
606
- height: r(u),
607
- borderRadius: l(u)
608
- });
609
- }
610
- function Qt(t) {
611
- const i = {
612
- x: t.layout === "vertical" ? t.x : t.xOrigin,
613
- y: t.layout === "vertical" ? t.yOrigin : t.y,
614
- width: t.layout === "vertical" ? t.width : 0,
615
- height: t.layout === "vertical" ? 0 : t.height,
616
- borderRadius: t.borderRadius
617
- };
618
- return se({
619
- x: t.x,
620
- y: t.y,
621
- width: t.width,
622
- height: t.height,
623
- borderRadius: t.borderRadius
624
- }, {
625
- createInterpolator: Jt,
626
- transformProps: (o) => ({
627
- d: tn(t.hasNegative, t.hasPositive, t.layout, o.x, o.y, o.width, o.height, t.xOrigin, t.yOrigin, o.borderRadius)
628
- }),
629
- applyProps(o, {
630
- d: n
631
- }) {
632
- n && o.setAttribute("d", n);
633
- },
634
- initialProps: i,
635
- skip: t.skipAnimation,
636
- ref: t.ref
637
- });
638
- }
639
- function en(t) {
640
- const {
641
- maskId: i,
642
- x: o,
643
- y: n,
644
- width: a,
645
- height: r,
646
- skipAnimation: l
647
- } = t, {
648
- ref: u,
649
- d
650
- } = Qt({
651
- layout: t.layout ?? "vertical",
652
- hasNegative: t.hasNegative,
653
- hasPositive: t.hasPositive,
654
- xOrigin: t.xOrigin,
655
- yOrigin: t.yOrigin,
656
- x: o,
657
- y: n,
658
- width: a,
659
- height: r,
660
- borderRadius: t.borderRadius ?? 0,
661
- skipAnimation: l
662
- });
663
- return !t.borderRadius || t.borderRadius <= 0 ? null : /* @__PURE__ */ b.jsx("clipPath", {
664
- id: i,
665
- children: /* @__PURE__ */ b.jsx("path", {
666
- ref: u,
667
- d
668
- })
669
- });
670
- }
671
- function tn(t, i, o, n, a, r, l, u, d, f) {
672
- if (o === "vertical") {
673
- if (i && t) {
674
- const c = Math.min(f, r / 2, l / 2);
675
- return `M${n},${a + l / 2} v${-(l / 2 - c)} a${c},${c} 0 0 1 ${c},${-c} h${r - c * 2} a${c},${c} 0 0 1 ${c},${c} v${l - 2 * c} a${c},${c} 0 0 1 ${-c},${c} h${-(r - c * 2)} a${c},${c} 0 0 1 ${-c},${-c} v${-(l / 2 - c)}`;
676
- }
677
- const s = Math.min(f, r / 2);
678
- if (i)
679
- return `M${n},${Math.max(d, a + s)} v${Math.min(0, -(d - a - s))} a${s},${s} 0 0 1 ${s},${-s} h${r - s * 2} a${s},${s} 0 0 1 ${s},${s} v${Math.max(0, d - a - s)} Z`;
680
- if (t)
681
- return `M${n},${Math.min(d, a + l - s)} v${Math.max(0, l - s)} a${s},${s} 0 0 0 ${s},${s} h${r - s * 2} a${s},${s} 0 0 0 ${s},${-s} v${-Math.max(0, l - s)} Z`;
682
- }
683
- if (o === "horizontal") {
684
- if (i && t) {
685
- const c = Math.min(f, r / 2, l / 2);
686
- return `M${n + r / 2},${a} h${r / 2 - c} a${c},${c} 0 0 1 ${c},${c} v${l - c * 2} a${c},${c} 0 0 1 ${-c},${c} h${-(r - 2 * c)} a${c},${c} 0 0 1 ${-c},${-c} v${-(l - c * 2)} a${c},${c} 0 0 1 ${c},${-c} h${r / 2 - c}`;
687
- }
688
- const s = Math.min(f, l / 2);
689
- if (i)
690
- return `M${Math.min(u, n - s)},${a} h${r} a${s},${s} 0 0 1 ${s},${s} v${l - s * 2} a${s},${s} 0 0 1 ${-s},${s} h${-r} Z`;
691
- if (t)
692
- return `M${Math.max(u, n + r + s)},${a} h${-r} a${s},${s} 0 0 0 ${-s},${s} v${l - s * 2} a${s},${s} 0 0 0 ${s},${s} h${r} Z`;
693
- }
694
- }
695
- const nn = ["completedData", "masksData", "borderRadius", "onItemClick", "skipAnimation"];
696
- function on(t) {
697
- let {
698
- completedData: i,
699
- masksData: o,
700
- borderRadius: n,
701
- onItemClick: a,
702
- skipAnimation: r
703
- } = t, l = N(t, nn);
704
- const u = fe(), d = !n || n <= 0;
705
- return /* @__PURE__ */ b.jsxs(R.Fragment, {
706
- children: [!d && o.map(({
707
- id: f,
708
- x: s,
709
- y: c,
710
- xOrigin: p,
711
- yOrigin: O,
712
- width: h,
713
- height: T,
714
- hasPositive: g,
715
- hasNegative: k,
716
- layout: m
717
- }) => /* @__PURE__ */ b.jsx(en, {
718
- maskId: f,
719
- borderRadius: n,
720
- hasNegative: k,
721
- hasPositive: g,
722
- layout: m,
723
- x: s,
724
- y: c,
725
- xOrigin: p,
726
- yOrigin: O,
727
- width: h,
728
- height: T,
729
- skipAnimation: r ?? !1
730
- }, f)), i.map(({
731
- seriesId: f,
732
- layout: s,
733
- xOrigin: c,
734
- yOrigin: p,
735
- data: O
736
- }) => /* @__PURE__ */ b.jsx("g", {
737
- "data-series": f,
738
- className: u.series,
739
- children: O.map(({
740
- dataIndex: h,
741
- color: T,
742
- maskId: g,
743
- x: k,
744
- y: m,
745
- width: q,
746
- height: I
747
- }) => {
748
- const P = /* @__PURE__ */ b.jsx(Ie, y({
749
- id: f,
750
- dataIndex: h,
751
- color: T,
752
- skipAnimation: r ?? !1,
753
- layout: s ?? "vertical",
754
- x: k,
755
- xOrigin: c,
756
- y: m,
757
- yOrigin: p,
758
- width: q,
759
- height: I
760
- }, l, {
761
- onClick: a && ((S) => {
762
- a(S, {
763
- type: "bar",
764
- seriesId: f,
765
- dataIndex: h
766
- });
767
- })
768
- }), h);
769
- return d ? P : /* @__PURE__ */ b.jsx("g", {
770
- clipPath: `url(#${g})`,
771
- children: P
772
- }, h);
773
- })
774
- }, f))]
775
- });
776
- }
777
- function rn(t, i) {
778
- return t.bandwidth() === 0 ? Math.floor((i - Math.min(...t.range()) + t.step() / 2) / t.step()) : Math.floor((i - Math.min(...t.range())) / t.step());
779
- }
780
- const Se = kt(et, Qe, Je, function({
781
- axis: i,
782
- axisIds: o
783
- }, {
784
- axis: n,
785
- axisIds: a
786
- }, r, l) {
787
- const {
788
- series: u,
789
- stackingGroups: d = []
790
- } = r?.bar ?? {}, f = o[0], s = a[0];
791
- let c;
792
- for (let p = 0; p < d.length; p += 1) {
793
- const h = d[p].ids;
794
- for (const T of h) {
795
- const g = (u ?? {})[T], k = g.xAxisId ?? f, m = g.yAxisId ?? s, q = i[k], I = n[m], P = g.layout === "horizontal" ? I : q, S = g.layout === "horizontal" ? q : I, $ = P.scale, v = g.layout === "horizontal" ? l.y : l.x;
796
- if (!Ze($))
797
- continue;
798
- const A = rn($, v), {
799
- barWidth: D,
800
- offset: E
801
- } = ut($.bandwidth(), d.length, P.barGapRatio), B = p * (D + E), M = P.data?.[A];
802
- if (M == null)
803
- continue;
804
- const _ = $(M);
805
- if (_ == null)
806
- continue;
807
- const H = _ + B, X = H + D, L = Math.min(H, X), Y = Math.max(H, X);
808
- if (v >= L && v <= Y) {
809
- const G = g.layout === "horizontal" ? l.x : l.y, x = g.visibleStackedData[A], F = S.scale(x[0]), z = S.scale(x[1]);
810
- if (F == null || z == null)
811
- continue;
812
- const K = Math.min(F, z), j = Math.max(F, z);
813
- G >= K && G <= j && (c = {
814
- seriesId: T,
815
- dataIndex: A
816
- });
817
- }
818
- }
819
- }
820
- if (c)
821
- return {
822
- type: "bar",
823
- seriesId: c.seriesId,
824
- dataIndex: c.dataIndex
825
- };
826
- });
827
- function an(t) {
828
- const {
829
- instance: i
830
- } = ee(), o = de(), n = Q();
831
- R.useEffect(() => {
832
- const a = o.current;
833
- if (!a || !t)
834
- return;
835
- let r = null;
836
- const l = function(f) {
837
- let s = f;
838
- r && Math.abs(f.clientX - r.clientX) <= 1 && Math.abs(f.clientY - r.clientY) <= 1 && (s = {
839
- clientX: r.clientX,
840
- clientY: r.clientY
841
- }), r = null;
842
- const c = ve(a, s);
843
- if (!i.isPointInside(c.x, c.y))
844
- return;
845
- const p = Se(n.state, c);
846
- p && t(f, {
847
- type: "bar",
848
- seriesId: p.seriesId,
849
- dataIndex: p.dataIndex
850
- });
851
- }, u = function(f) {
852
- r = f;
853
- };
854
- return a.addEventListener("click", l), a.addEventListener("pointerup", u), () => {
855
- a.removeEventListener("click", l), a.removeEventListener("pointerup", u);
856
- };
857
- }, [i, t, n, o]);
858
- }
859
- function ne(t, i, o) {
860
- let n = t.get(i);
861
- return n ? n.push(o) : (n = [o], t.set(i, n)), n;
862
- }
863
- const sn = 1e3;
864
- function cn(t, i, o, n, a, r, l, u) {
865
- const d = Math.min(a, o / 2, n / 2), f = Math.min(r, o / 2, n / 2), s = Math.min(l, o / 2, n / 2), c = Math.min(u, o / 2, n / 2);
866
- return `M${t + d},${i}
867
- h${o - d - f}
868
- a${f},${f} 0 0 1 ${f},${f}
869
- v${n - f - s}
870
- a${s},${s} 0 0 1 -${s},${s}
871
- h-${o - s - c}
872
- a${c},${c} 0 0 1 -${c},-${c}
873
- v-${n - c - d}
874
- a${d},${d} 0 0 1 ${d},-${d}
875
- Z`;
876
- }
877
- function ie(t, i) {
878
- return cn(t.x, t.y, t.width, t.height, t.borderRadiusSide === "left" || t.borderRadiusSide === "top" ? i : 0, t.borderRadiusSide === "right" || t.borderRadiusSide === "top" ? i : 0, t.borderRadiusSide === "right" || t.borderRadiusSide === "bottom" ? i : 0, t.borderRadiusSide === "left" || t.borderRadiusSide === "bottom" ? i : 0);
879
- }
880
- function ln(t, i) {
881
- const o = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
882
- for (let a = 0; a < t.data.length; a += 1) {
883
- const r = t.data[a], l = ie(r, i), u = ne(n, r.color, l);
884
- u.length >= sn && (ne(o, r.color, u.join("")), n.delete(r.color));
885
- }
886
- for (const [a, r] of n.entries())
887
- r.length > 0 && ne(o, a, r.join(""));
888
- return o;
889
- }
890
- const un = ["skipAnimation", "layout", "xOrigin", "yOrigin"], dn = ["children", "layout", "xOrigin", "yOrigin"], Le = J("g")({
891
- '&[data-faded="true"]': {
892
- opacity: 0.3
893
- },
894
- "& path": {
895
- /* The browser must do hit testing to know which element a pointer is interacting with.
896
- * With many data points, we create many paths causing significant time to be spent in the hit test phase.
897
- * To fix this issue, we disable pointer events for the descendant paths.
898
- *
899
- * Ideally, users should be able to override this in case they need pointer events to be enabled,
900
- * but it can affect performance negatively, especially with many data points. */
901
- pointerEvents: "none"
902
- }
903
- });
904
- function fn(t) {
905
- let {
906
- skipAnimation: i,
907
- layout: o,
908
- xOrigin: n,
909
- yOrigin: a
910
- } = t, r = N(t, un);
911
- return i ? /* @__PURE__ */ b.jsx(Le, y({}, r)) : /* @__PURE__ */ b.jsx(bn, y({}, r, {
912
- layout: o,
913
- xOrigin: n,
914
- yOrigin: a
915
- }));
916
- }
917
- const Z = J("rect")({
918
- "@keyframes scaleInX": {
919
- from: {
920
- transform: "scaleX(0)"
921
- },
922
- to: {
923
- transform: "scaleX(1)"
924
- }
925
- },
926
- "@keyframes scaleInY": {
927
- from: {
928
- transform: "scaleY(0)"
929
- },
930
- to: {
931
- transform: "scaleY(1)"
932
- }
933
- },
934
- animationDuration: `${ce}ms`,
935
- animationFillMode: "forwards",
936
- '&[data-orientation="horizontal"]': {
937
- animationName: "scaleInX"
938
- },
939
- '&[data-orientation="vertical"]': {
940
- animationName: "scaleInY"
941
- }
942
- });
943
- function bn(t) {
944
- let {
945
- children: i,
946
- layout: o,
947
- xOrigin: n,
948
- yOrigin: a
949
- } = t, r = N(t, dn);
950
- const u = Q().use(tt), d = Oe(), f = [];
951
- return o === "horizontal" ? (f.push(/* @__PURE__ */ b.jsx(Z, {
952
- "data-orientation": "horizontal",
953
- x: u.left,
954
- width: n - u.left,
955
- y: u.top,
956
- height: u.height,
957
- style: {
958
- transformOrigin: `${n}px ${u.top + u.height / 2}px`
959
- }
960
- }, "left")), f.push(/* @__PURE__ */ b.jsx(Z, {
961
- "data-orientation": "horizontal",
962
- x: n,
963
- width: u.left + u.width - n,
964
- y: u.top,
965
- height: u.height,
966
- style: {
967
- transformOrigin: `${n}px ${u.top + u.height / 2}px`
968
- }
969
- }, "right"))) : (f.push(/* @__PURE__ */ b.jsx(Z, {
970
- "data-orientation": "vertical",
971
- x: u.left,
972
- width: u.width,
973
- y: u.top,
974
- height: a - u.top,
975
- style: {
976
- transformOrigin: `${u.left + u.width / 2}px ${a}px`
977
- }
978
- }, "top")), f.push(/* @__PURE__ */ b.jsx(Z, {
979
- "data-orientation": "vertical",
980
- x: u.left,
981
- width: u.width,
982
- y: a,
983
- height: u.top + u.height - a,
984
- style: {
985
- transformOrigin: `${u.left + u.width / 2}px ${a}px`
986
- }
987
- }, "bottom"))), /* @__PURE__ */ b.jsxs(R.Fragment, {
988
- children: [/* @__PURE__ */ b.jsx("clipPath", {
989
- id: d,
990
- children: f
991
- }), /* @__PURE__ */ b.jsx(Le, y({
992
- clipPath: `url(#${d})`
993
- }, r, {
994
- children: i
995
- }))]
996
- });
997
- }
998
- function mn(t, i, o) {
999
- const {
1000
- instance: n
1001
- } = ee(), a = de(), r = Q(), l = R.useRef(!1), u = R.useRef(void 0), d = be(() => i?.()), f = be(() => o?.());
1002
- R.useEffect(() => {
1003
- const s = a.current;
1004
- if (!s)
1005
- return;
1006
- function c() {
1007
- l.current = !0;
1008
- }
1009
- function p() {
1010
- const T = u.current;
1011
- T && (u.current = void 0, n.removeTooltipItem(T), n.clearHighlight(), f());
1012
- }
1013
- function O() {
1014
- l.current = !1, p();
1015
- }
1016
- const h = function(g) {
1017
- const k = ve(s, g);
1018
- if (!n.isPointInside(k.x, k.y)) {
1019
- p();
1020
- return;
1021
- }
1022
- const m = t(r.state, k);
1023
- m ? (n.setLastUpdateSource("pointer"), n.setTooltipItem(m), n.setHighlight(m), d(), u.current = m) : p();
1024
- };
1025
- return s.addEventListener("pointerleave", O), s.addEventListener("pointermove", h), s.addEventListener("pointerenter", c), () => {
1026
- s.removeEventListener("pointerenter", c), s.removeEventListener("pointermove", h), s.removeEventListener("pointerleave", O), l.current && O();
1027
- };
1028
- }, [t, n, d, f, r, a]);
1029
- }
1030
- function pn({
1031
- completedData: t,
1032
- borderRadius: i = 0,
1033
- onItemClick: o,
1034
- skipAnimation: n = !1
1035
- }) {
1036
- const a = R.useRef(null), r = de();
1037
- return mn(Se, o ? () => {
1038
- const d = r.current;
1039
- d && a.current == null && (a.current = d.style.cursor, d.style.cursor = "pointer");
1040
- } : void 0, o ? () => {
1041
- const d = r.current;
1042
- d && a.current != null && (d.style.cursor = a.current, a.current = null);
1043
- } : void 0), an(o), /* @__PURE__ */ b.jsx(R.Fragment, {
1044
- children: t.map((d) => /* @__PURE__ */ b.jsx(hn, {
1045
- series: d,
1046
- borderRadius: i,
1047
- skipAnimation: n
1048
- }, d.seriesId))
1049
- });
1050
- }
1051
- const $e = /* @__PURE__ */ R.memo(On);
1052
- process.env.NODE_ENV !== "production" && ($e.displayName = "MemoFadedHighlightedBars");
1053
- function hn({
1054
- series: t,
1055
- borderRadius: i,
1056
- skipAnimation: o
1057
- }) {
1058
- const n = fe(), {
1059
- store: a
1060
- } = ee(), r = a.use(_e, t.seriesId), l = a.use(He, t.seriesId);
1061
- return /* @__PURE__ */ b.jsxs(R.Fragment, {
1062
- children: [/* @__PURE__ */ b.jsx(fn, {
1063
- className: n.series,
1064
- "data-series": t.seriesId,
1065
- layout: t.layout,
1066
- xOrigin: t.xOrigin,
1067
- yOrigin: t.yOrigin,
1068
- skipAnimation: o,
1069
- "data-faded": l || void 0,
1070
- "data-highlighted": r || void 0,
1071
- children: /* @__PURE__ */ b.jsx(yn, {
1072
- processedSeries: t,
1073
- borderRadius: i
1074
- })
1075
- }), /* @__PURE__ */ b.jsx($e, {
1076
- processedSeries: t,
1077
- borderRadius: i
1078
- })]
1079
- });
1080
- }
1081
- function yn({
1082
- processedSeries: t,
1083
- borderRadius: i
1084
- }) {
1085
- const o = ln(t, i), n = [];
1086
- let a = 0;
1087
- for (const [r, l] of o.entries())
1088
- for (const u of l)
1089
- n.push(/* @__PURE__ */ b.jsx("path", {
1090
- fill: r,
1091
- d: u
1092
- }, a)), a += 1;
1093
- return /* @__PURE__ */ b.jsx(R.Fragment, {
1094
- children: n
1095
- });
1096
- }
1097
- function On({
1098
- processedSeries: t,
1099
- borderRadius: i
1100
- }) {
1101
- const {
1102
- store: o
1103
- } = ee(), n = o.use(Xe, t.seriesId), a = o.use(Ge, t.seriesId), r = n != null && t.data.find((d) => d.dataIndex === n) || null, l = a != null && t.data.find((d) => d.dataIndex === a) || null, u = [];
1104
- return r != null && u.push(/* @__PURE__ */ b.jsx("path", {
1105
- fill: r.color,
1106
- filter: "brightness(120%)",
1107
- "data-highlighted": !0,
1108
- d: ie(r, i)
1109
- }, `highlighted-${t.seriesId}`)), l != null && u.push(/* @__PURE__ */ b.jsx("path", {
1110
- fill: l.color,
1111
- d: ie(l, i)
1112
- }, `unfaded-${l.seriesId}`)), /* @__PURE__ */ b.jsx(R.Fragment, {
1113
- children: u
1114
- });
1115
- }
1116
- const gn = ["skipAnimation", "onItemClick", "borderRadius", "barLabel", "renderer"], xn = J("g", {
1117
- name: "MuiBarPlot",
1118
- slot: "Root"
1119
- })({
1120
- [`& .${jt.root}`]: {
1121
- transitionProperty: "opacity, fill",
1122
- transitionDuration: `${ce}ms`,
1123
- transitionTimingFunction: ge
1124
- }
1125
- });
1126
- function Me(t) {
1127
- const {
1128
- skipAnimation: i,
1129
- onItemClick: o,
1130
- borderRadius: n,
1131
- barLabel: a,
1132
- renderer: r
1133
- } = t, l = N(t, gn), u = it(), d = me(u || i), f = me(i), {
1134
- xAxis: s
1135
- } = le(), {
1136
- yAxis: c
1137
- } = ue(), {
1138
- completedData: p,
1139
- masksData: O
1140
- } = Gt(nt(), s, c), h = fe(), T = r === "svg-batch" ? pn : on;
1141
- return /* @__PURE__ */ b.jsxs(xn, {
1142
- className: h.root,
1143
- children: [/* @__PURE__ */ b.jsx(T, y({
1144
- completedData: p,
1145
- masksData: O,
1146
- skipAnimation: r === "svg-batch" ? f : d,
1147
- onItemClick: (
1148
- /* `onItemClick` accepts a `MouseEvent` when the renderer is "svg-batch" and a `React.MouseEvent` otherwise,
1149
- * so we need this cast to prevent TypeScript from complaining. */
1150
- o
1151
- ),
1152
- borderRadius: n
1153
- }, l)), p.map((g) => /* @__PURE__ */ b.jsx(Ht, y({
1154
- className: h.seriesLabels,
1155
- processedSeries: g,
1156
- skipAnimation: d,
1157
- barLabel: a
1158
- }, l), g.seriesId))]
1159
- });
1160
- }
1161
- process.env.NODE_ENV !== "production" && (Me.propTypes = {
1162
- // ----------------------------- Warning --------------------------------
1163
- // | These PropTypes are generated from the TypeScript type definitions |
1164
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
1165
- // ----------------------------------------------------------------------
1166
- /**
1167
- * @deprecated Use `barLabel` in the chart series instead.
1168
- * If provided, the function will be used to format the label of the bar.
1169
- * It can be set to 'value' to display the current value.
1170
- * @param {BarItem} item The item to format.
1171
- * @param {BarLabelContext} context data about the bar.
1172
- * @returns {string} The formatted label.
1173
- */
1174
- barLabel: e.oneOfType([e.oneOf(["value"]), e.func]),
1175
- /**
1176
- * Defines the border radius of the bar element.
1177
- */
1178
- borderRadius: e.number,
1179
- /**
1180
- * Callback fired when a bar item is clicked.
1181
- * @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
1182
- * @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
1183
- */
1184
- onItemClick: e.func,
1185
- /**
1186
- * The type of renderer to use for the bar plot.
1187
- * - `svg-single`: Renders every bar in a `<rect />` element.
1188
- * - `svg-batch`: Batch renders bars in `<path />` elements for better performance with large datasets, at the cost of some limitations.
1189
- * Read more: https://mui.com/x/react-charts/bars/#performance
1190
- *
1191
- * @default 'svg-single'
1192
- */
1193
- renderer: e.oneOf(["svg-batch", "svg-single"]),
1194
- /**
1195
- * If `true`, animations are skipped.
1196
- * @default undefined
1197
- */
1198
- skipAnimation: e.bool,
1199
- /**
1200
- * The props used for each component slot.
1201
- * @default {}
1202
- */
1203
- slotProps: e.object,
1204
- /**
1205
- * Overridable component slots.
1206
- * @default {}
1207
- */
1208
- slots: e.object
1209
- });
1210
- const Tn = [dt, ft, bt, mt, pt, ht, yt, Ot], kn = ["xAxis", "yAxis", "series", "width", "height", "margin", "colors", "dataset", "sx", "axisHighlight", "grid", "children", "slots", "slotProps", "skipAnimation", "loading", "layout", "onItemClick", "highlightedItem", "onHighlightChange", "borderRadius", "barLabel", "className", "hideLegend", "showToolbar", "brushConfig", "renderer"], Rn = (t) => {
1211
- const {
1212
- xAxis: i,
1213
- yAxis: o,
1214
- series: n,
1215
- width: a,
1216
- height: r,
1217
- margin: l,
1218
- colors: u,
1219
- dataset: d,
1220
- sx: f,
1221
- axisHighlight: s,
1222
- grid: c,
1223
- children: p,
1224
- slots: O,
1225
- slotProps: h,
1226
- skipAnimation: T,
1227
- loading: g,
1228
- layout: k,
1229
- onItemClick: m,
1230
- highlightedItem: q,
1231
- onHighlightChange: I,
1232
- borderRadius: P,
1233
- barLabel: S,
1234
- className: $,
1235
- brushConfig: v,
1236
- renderer: A
1237
- } = t, D = N(t, kn), B = `${Oe()}-clip-path`, M = k === "horizontal" || k === void 0 && n.some((C) => C.layout === "horizontal"), _ = R.useMemo(() => [{
1238
- id: Te,
1239
- scaleType: "band",
1240
- data: Array.from({
1241
- length: Math.max(...n.map((C) => (C.data ?? d ?? []).length))
1242
- }, (C, te) => te)
1243
- }], [d, n]), H = R.useMemo(() => [{
1244
- id: ke,
1245
- scaleType: "band",
1246
- data: Array.from({
1247
- length: Math.max(...n.map((C) => (C.data ?? d ?? []).length))
1248
- }, (C, te) => te)
1249
- }], [d, n]), X = R.useMemo(() => n.map((C) => y({
1250
- type: "bar"
1251
- }, C, {
1252
- layout: M ? "horizontal" : "vertical"
1253
- })), [M, n]), L = M ? void 0 : _, Y = R.useMemo(() => i ? M ? i : i.map((C) => y({
1254
- scaleType: "band"
1255
- }, C)) : L, [L, M, i]), G = M ? H : void 0, x = R.useMemo(() => o ? M ? o.map((C) => y({
1256
- scaleType: "band"
1257
- }, C)) : o : G, [G, M, o]), F = y({}, D, {
1258
- series: X,
1259
- width: a,
1260
- height: r,
1261
- margin: l,
1262
- colors: u,
1263
- dataset: d,
1264
- xAxis: Y,
1265
- yAxis: x,
1266
- highlightedItem: q,
1267
- onHighlightChange: I,
1268
- disableAxisListener: h?.tooltip?.trigger !== "axis" && s?.x === "none" && s?.y === "none",
1269
- className: $,
1270
- skipAnimation: T,
1271
- brushConfig: v,
1272
- plugins: Tn
1273
- }), z = {
1274
- onItemClick: m,
1275
- slots: O,
1276
- slotProps: h,
1277
- borderRadius: P,
1278
- renderer: A,
1279
- barLabel: S
1280
- }, K = {
1281
- vertical: c?.vertical,
1282
- horizontal: c?.horizontal
1283
- }, j = {
1284
- clipPath: `url(#${B})`
1285
- }, U = {
1286
- id: B
1287
- }, Ce = {
1288
- slots: O,
1289
- slotProps: h,
1290
- loading: g
1291
- }, we = {
1292
- slots: O,
1293
- slotProps: h
1294
- }, De = y({}, M ? {
1295
- y: "band"
1296
- } : {
1297
- x: "band"
1298
- }, s), Ne = {
1299
- slots: O,
1300
- slotProps: h
1301
- };
1302
- return {
1303
- chartsWrapperProps: {
1304
- sx: f,
1305
- legendPosition: t.slotProps?.legend?.position,
1306
- legendDirection: t.slotProps?.legend?.direction,
1307
- hideLegend: t.hideLegend ?? !1
1308
- },
1309
- chartContainerProps: F,
1310
- barPlotProps: z,
1311
- gridProps: K,
1312
- clipPathProps: U,
1313
- clipPathGroupProps: j,
1314
- overlayProps: Ce,
1315
- chartsAxisProps: we,
1316
- axisHighlightProps: De,
1317
- legendProps: Ne,
1318
- children: p
1319
- };
1320
- };
1321
- function vn(t) {
1322
- const i = Ee(), o = Ye(), n = je(), {
1323
- xAxis: a,
1324
- xAxisIds: r
1325
- } = le(), {
1326
- yAxis: l,
1327
- yAxisIds: u
1328
- } = ue();
1329
- if (o === null || o.type !== "bar" || !n)
1330
- return null;
1331
- const d = n.series[o.seriesId];
1332
- if (d.data[o.dataIndex] == null)
1333
- return null;
1334
- const f = d.xAxisId ?? r[0], s = d.yAxisId ?? u[0], c = a[f], p = l[s], O = n.series[o.seriesId].layout === "vertical", h = n.stackingGroups.findIndex((I) => I.ids.includes(o.seriesId)), T = Re({
1335
- verticalLayout: O,
1336
- xAxisConfig: c,
1337
- yAxisConfig: p,
1338
- series: d,
1339
- dataIndex: o.dataIndex,
1340
- numberOfGroups: n.stackingGroups.length,
1341
- groupIndex: h
1342
- });
1343
- if (T === null)
1344
- return null;
1345
- const {
1346
- x: g,
1347
- y: k,
1348
- height: m,
1349
- width: q
1350
- } = T;
1351
- return /* @__PURE__ */ b.jsx("rect", y({
1352
- fill: "none",
1353
- stroke: (i.vars ?? i).palette.text.primary,
1354
- strokeWidth: 2,
1355
- x: g - 3,
1356
- y: k - 3,
1357
- width: q + 6,
1358
- height: m + 6,
1359
- rx: 3,
1360
- ry: 3
1361
- }, t));
1362
- }
1363
- const Ae = /* @__PURE__ */ R.forwardRef(function(i, o) {
1364
- const n = he({
1365
- props: i,
1366
- name: "MuiBarChart"
1367
- }), {
1368
- chartsWrapperProps: a,
1369
- chartContainerProps: r,
1370
- barPlotProps: l,
1371
- gridProps: u,
1372
- clipPathProps: d,
1373
- clipPathGroupProps: f,
1374
- overlayProps: s,
1375
- chartsAxisProps: c,
1376
- axisHighlightProps: p,
1377
- legendProps: O,
1378
- children: h
1379
- } = Rn(n), {
1380
- chartDataProviderProps: T,
1381
- chartsSurfaceProps: g
1382
- } = gt(r, o), k = n.slots?.tooltip ?? Ke, m = n.slots?.toolbar;
1383
- return /* @__PURE__ */ b.jsx(xt, y({}, T, {
1384
- children: /* @__PURE__ */ b.jsxs(Ue, y({}, a, {
1385
- children: [n.showToolbar && m ? /* @__PURE__ */ b.jsx(m, y({}, n.slotProps?.toolbar)) : null, !n.hideLegend && /* @__PURE__ */ b.jsx(Ve, y({}, O)), /* @__PURE__ */ b.jsxs(Tt, y({}, g, {
1386
- children: [/* @__PURE__ */ b.jsx(ot, y({}, u)), /* @__PURE__ */ b.jsxs("g", y({}, f, {
1387
- children: [/* @__PURE__ */ b.jsx(Me, y({}, l)), /* @__PURE__ */ b.jsx(We, y({}, s)), /* @__PURE__ */ b.jsx(rt, y({}, p)), /* @__PURE__ */ b.jsx(vn, {})]
1388
- })), /* @__PURE__ */ b.jsx(Rt, y({}, c)), /* @__PURE__ */ b.jsx(at, y({}, d)), h]
1389
- })), !n.loading && /* @__PURE__ */ b.jsx(k, y({}, n.slotProps?.tooltip))]
1390
- }))
1391
- }));
1392
- });
1393
- process.env.NODE_ENV !== "production" && (Ae.displayName = "BarChart");
1394
- process.env.NODE_ENV !== "production" && (Ae.propTypes = {
1395
- // ----------------------------- Warning --------------------------------
1396
- // | These PropTypes are generated from the TypeScript type definitions |
1397
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
1398
- // ----------------------------------------------------------------------
1399
- apiRef: e.shape({
1400
- current: e.object
1401
- }),
1402
- /**
1403
- * The configuration of axes highlight.
1404
- * Default is set to 'band' in the bar direction.
1405
- * Depends on `layout` prop.
1406
- * @see See {@link https://mui.com/x/react-charts/highlighting/ highlighting docs} for more details.
1407
- */
1408
- axisHighlight: e.shape({
1409
- x: e.oneOf(["band", "line", "none"]),
1410
- y: e.oneOf(["band", "line", "none"])
1411
- }),
1412
- /**
1413
- * @deprecated Use `barLabel` in the chart series instead.
1414
- * If provided, the function will be used to format the label of the bar.
1415
- * It can be set to 'value' to display the current value.
1416
- * @param {BarItem} item The item to format.
1417
- * @param {BarLabelContext} context data about the bar.
1418
- * @returns {string} The formatted label.
1419
- */
1420
- barLabel: e.oneOfType([e.oneOf(["value"]), e.func]),
1421
- /**
1422
- * Defines the border radius of the bar element.
1423
- */
1424
- borderRadius: e.number,
1425
- /**
1426
- * Configuration for the brush interaction.
1427
- */
1428
- brushConfig: e.shape({
1429
- enabled: e.bool,
1430
- preventHighlight: e.bool,
1431
- preventTooltip: e.bool
1432
- }),
1433
- children: e.node,
1434
- className: e.string,
1435
- /**
1436
- * Color palette used to colorize multiple series.
1437
- * @default rainbowSurgePalette
1438
- */
1439
- colors: e.oneOfType([e.arrayOf(e.string), e.func]),
1440
- /**
1441
- * An array of objects that can be used to populate series and axes data using their `dataKey` property.
1442
- */
1443
- dataset: e.arrayOf(e.object),
1444
- desc: e.string,
1445
- /**
1446
- * If `true`, the charts will not listen to the mouse move event.
1447
- * It might break interactive features, but will improve performance.
1448
- * @default false
1449
- */
1450
- disableAxisListener: e.bool,
1451
- enableKeyboardNavigation: e.bool,
1452
- /**
1453
- * Option to display a cartesian grid in the background.
1454
- */
1455
- grid: e.shape({
1456
- horizontal: e.bool,
1457
- vertical: e.bool
1458
- }),
1459
- /**
1460
- * The height of the chart in px. If not defined, it takes the height of the parent element.
1461
- */
1462
- height: e.number,
1463
- /**
1464
- * List of hidden series and/or items.
1465
- *
1466
- * Different chart types use different keys.
1467
- *
1468
- * @example
1469
- * ```ts
1470
- * [
1471
- * {
1472
- * type: 'pie',
1473
- * seriesId: 'series-1',
1474
- * dataIndex: 3,
1475
- * },
1476
- * {
1477
- * type: 'line',
1478
- * seriesId: 'series-2',
1479
- * }
1480
- * ]
1481
- * ```
1482
- */
1483
- hiddenItems: e.arrayOf(e.shape({
1484
- dataIndex: e.number,
1485
- seriesId: e.oneOfType([e.number, e.string]),
1486
- type: e.oneOf(["bar"]).isRequired
1487
- })),
1488
- /**
1489
- * If `true`, the legend is not rendered.
1490
- */
1491
- hideLegend: e.bool,
1492
- /**
1493
- * The controlled axis highlight.
1494
- * Identified by the axis id, and data index.
1495
- */
1496
- highlightedAxis: e.arrayOf(e.shape({
1497
- axisId: e.oneOfType([e.number, e.string]).isRequired,
1498
- dataIndex: e.number.isRequired
1499
- })),
1500
- /**
1501
- * The highlighted item.
1502
- * Used when the highlight is controlled.
1503
- */
1504
- highlightedItem: e.shape({
1505
- dataIndex: e.number,
1506
- seriesId: e.oneOfType([e.number, e.string]).isRequired
1507
- }),
1508
- /**
1509
- * This prop is used to help implement the accessibility logic.
1510
- * If you don't provide this prop. It falls back to a randomly generated id.
1511
- */
1512
- id: e.string,
1513
- /**
1514
- * List of initially hidden series and/or items.
1515
- * Used for uncontrolled state.
1516
- *
1517
- * Different chart types use different keys.
1518
- *
1519
- * @example
1520
- * ```ts
1521
- * [
1522
- * {
1523
- * type: 'pie',
1524
- * seriesId: 'series-1',
1525
- * dataIndex: 3,
1526
- * },
1527
- * {
1528
- * type: 'line',
1529
- * seriesId: 'series-2',
1530
- * }
1531
- * ]
1532
- * ```
1533
- */
1534
- initialHiddenItems: e.arrayOf(e.shape({
1535
- dataIndex: e.number,
1536
- seriesId: e.oneOfType([e.number, e.string]),
1537
- type: e.oneOf(["bar"]).isRequired
1538
- })),
1539
- /**
1540
- * The direction of the bar elements.
1541
- * @default 'vertical'
1542
- */
1543
- layout: e.oneOf(["horizontal", "vertical"]),
1544
- /**
1545
- * If `true`, a loading overlay is displayed.
1546
- * @default false
1547
- */
1548
- loading: e.bool,
1549
- /**
1550
- * Localized text for chart components.
1551
- */
1552
- localeText: e.object,
1553
- /**
1554
- * The margin between the SVG and the drawing area.
1555
- * It's used for leaving some space for extra information such as the x- and y-axis or legend.
1556
- *
1557
- * Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
1558
- */
1559
- margin: e.oneOfType([e.number, e.shape({
1560
- bottom: e.number,
1561
- left: e.number,
1562
- right: e.number,
1563
- top: e.number
1564
- })]),
1565
- /**
1566
- * The function called for onClick events.
1567
- * The second argument contains information about all line/bar elements at the current mouse position.
1568
- * @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
1569
- * @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
1570
- */
1571
- onAxisClick: e.func,
1572
- /**
1573
- * Callback fired when any hidden identifiers change.
1574
- * @param {VisibilityIdentifier[]} hiddenItems The new list of hidden identifiers.
1575
- */
1576
- onHiddenItemsChange: e.func,
1577
- /**
1578
- * The callback fired when the highlighted item changes.
1579
- *
1580
- * @param {HighlightItemData | null} highlightedItem The newly highlighted item.
1581
- */
1582
- onHighlightChange: e.func,
1583
- /**
1584
- * The function called when the pointer position corresponds to a new axis data item.
1585
- * This update can either be caused by a pointer movement, or an axis update.
1586
- * In case of multiple axes, the function is called if at least one axis is updated.
1587
- * The argument contains the identifier for all axes with a `data` property.
1588
- * @param {AxisItemIdentifier[]} axisItems The array of axes item identifiers.
1589
- */
1590
- onHighlightedAxisChange: e.func,
1591
- /**
1592
- * Callback fired when a bar item is clicked.
1593
- * @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
1594
- * @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
1595
- */
1596
- onItemClick: e.func,
1597
- /**
1598
- * The callback fired when the tooltip item changes.
1599
- *
1600
- * @param {SeriesItemIdentifier<TSeries> | null} tooltipItem The newly highlighted item.
1601
- */
1602
- onTooltipItemChange: e.func,
1603
- /**
1604
- * The type of renderer to use for the bar plot.
1605
- * - `svg-single`: Renders every bar in a `<rect />` element.
1606
- * - `svg-batch`: Batch renders bars in `<path />` elements for better performance with large datasets, at the cost of some limitations.
1607
- * Read more: https://mui.com/x/react-charts/bars/#performance
1608
- *
1609
- * @default 'svg-single'
1610
- */
1611
- renderer: e.oneOf(["svg-batch", "svg-single"]),
1612
- /**
1613
- * The series to display in the bar chart.
1614
- * An array of [[BarSeries]] objects.
1615
- */
1616
- series: e.arrayOf(e.object).isRequired,
1617
- /**
1618
- * If true, shows the default chart toolbar.
1619
- * @default false
1620
- */
1621
- showToolbar: e.bool,
1622
- /**
1623
- * If `true`, animations are skipped.
1624
- * If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
1625
- */
1626
- skipAnimation: e.bool,
1627
- /**
1628
- * The props used for each component slot.
1629
- * @default {}
1630
- */
1631
- slotProps: e.object,
1632
- /**
1633
- * Overridable component slots.
1634
- * @default {}
1635
- */
1636
- slots: e.object,
1637
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1638
- theme: e.oneOf(["dark", "light"]),
1639
- title: e.string,
1640
- /**
1641
- * The tooltip item.
1642
- * Used when the tooltip is controlled.
1643
- */
1644
- tooltipItem: e.shape({
1645
- dataIndex: e.number.isRequired,
1646
- seriesId: e.oneOfType([e.number, e.string]).isRequired,
1647
- type: e.oneOf(["bar"]).isRequired
1648
- }),
1649
- /**
1650
- * The width of the chart in px. If not defined, it takes the width of the parent element.
1651
- */
1652
- width: e.number,
1653
- /**
1654
- * The configuration of the x-axes.
1655
- * If not provided, a default axis config is used.
1656
- * An array of [[AxisConfig]] objects.
1657
- */
1658
- xAxis: e.arrayOf(e.oneOfType([e.shape({
1659
- axis: e.oneOf(["x"]),
1660
- barGapRatio: e.number,
1661
- categoryGapRatio: e.number,
1662
- classes: e.object,
1663
- colorMap: e.oneOfType([e.shape({
1664
- colors: e.arrayOf(e.string).isRequired,
1665
- type: e.oneOf(["ordinal"]).isRequired,
1666
- unknownColor: e.string,
1667
- values: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number, e.string]).isRequired)
1668
- }), e.shape({
1669
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
1670
- max: e.oneOfType([e.instanceOf(Date), e.number]),
1671
- min: e.oneOfType([e.instanceOf(Date), e.number]),
1672
- type: e.oneOf(["continuous"]).isRequired
1673
- }), e.shape({
1674
- colors: e.arrayOf(e.string).isRequired,
1675
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
1676
- type: e.oneOf(["piecewise"]).isRequired
1677
- })]),
1678
- data: e.array,
1679
- dataKey: e.string,
1680
- disableLine: e.bool,
1681
- disableTicks: e.bool,
1682
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
1683
- groups: e.arrayOf(e.shape({
1684
- getValue: e.func.isRequired,
1685
- tickLabelStyle: e.object,
1686
- tickSize: e.number
1687
- })),
1688
- height: e.number,
1689
- hideTooltip: e.bool,
1690
- id: e.oneOfType([e.number, e.string]),
1691
- ignoreTooltip: e.bool,
1692
- label: e.string,
1693
- labelStyle: e.object,
1694
- offset: e.number,
1695
- ordinalTimeTicks: e.arrayOf(e.oneOfType([e.oneOf(["biweekly", "days", "hours", "months", "quarterly", "weeks", "years"]), e.shape({
1696
- format: e.func.isRequired,
1697
- getTickNumber: e.func.isRequired,
1698
- isTick: e.func.isRequired
1699
- })]).isRequired),
1700
- position: e.oneOf(["bottom", "none", "top"]),
1701
- reverse: e.bool,
1702
- scaleType: e.oneOf(["band"]),
1703
- slotProps: e.object,
1704
- slots: e.object,
1705
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1706
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
1707
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
1708
- tickLabelMinGap: e.number,
1709
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
1710
- tickLabelStyle: e.object,
1711
- tickMaxStep: e.number,
1712
- tickMinStep: e.number,
1713
- tickNumber: e.number,
1714
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
1715
- tickSize: e.number,
1716
- tickSpacing: e.number,
1717
- valueFormatter: e.func
1718
- }), e.shape({
1719
- axis: e.oneOf(["x"]),
1720
- classes: e.object,
1721
- colorMap: e.oneOfType([e.shape({
1722
- colors: e.arrayOf(e.string).isRequired,
1723
- type: e.oneOf(["ordinal"]).isRequired,
1724
- unknownColor: e.string,
1725
- values: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number, e.string]).isRequired)
1726
- }), e.shape({
1727
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
1728
- max: e.oneOfType([e.instanceOf(Date), e.number]),
1729
- min: e.oneOfType([e.instanceOf(Date), e.number]),
1730
- type: e.oneOf(["continuous"]).isRequired
1731
- }), e.shape({
1732
- colors: e.arrayOf(e.string).isRequired,
1733
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
1734
- type: e.oneOf(["piecewise"]).isRequired
1735
- })]),
1736
- data: e.array,
1737
- dataKey: e.string,
1738
- disableLine: e.bool,
1739
- disableTicks: e.bool,
1740
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
1741
- groups: e.arrayOf(e.shape({
1742
- getValue: e.func.isRequired,
1743
- tickLabelStyle: e.object,
1744
- tickSize: e.number
1745
- })),
1746
- height: e.number,
1747
- hideTooltip: e.bool,
1748
- id: e.oneOfType([e.number, e.string]),
1749
- ignoreTooltip: e.bool,
1750
- label: e.string,
1751
- labelStyle: e.object,
1752
- offset: e.number,
1753
- ordinalTimeTicks: e.arrayOf(e.oneOfType([e.oneOf(["biweekly", "days", "hours", "months", "quarterly", "weeks", "years"]), e.shape({
1754
- format: e.func.isRequired,
1755
- getTickNumber: e.func.isRequired,
1756
- isTick: e.func.isRequired
1757
- })]).isRequired),
1758
- position: e.oneOf(["bottom", "none", "top"]),
1759
- reverse: e.bool,
1760
- scaleType: e.oneOf(["point"]),
1761
- slotProps: e.object,
1762
- slots: e.object,
1763
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1764
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
1765
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
1766
- tickLabelMinGap: e.number,
1767
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
1768
- tickLabelStyle: e.object,
1769
- tickMaxStep: e.number,
1770
- tickMinStep: e.number,
1771
- tickNumber: e.number,
1772
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
1773
- tickSize: e.number,
1774
- tickSpacing: e.number,
1775
- valueFormatter: e.func
1776
- }), e.shape({
1777
- axis: e.oneOf(["x"]),
1778
- classes: e.object,
1779
- colorMap: e.oneOfType([e.shape({
1780
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
1781
- max: e.oneOfType([e.instanceOf(Date), e.number]),
1782
- min: e.oneOfType([e.instanceOf(Date), e.number]),
1783
- type: e.oneOf(["continuous"]).isRequired
1784
- }), e.shape({
1785
- colors: e.arrayOf(e.string).isRequired,
1786
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
1787
- type: e.oneOf(["piecewise"]).isRequired
1788
- })]),
1789
- data: e.array,
1790
- dataKey: e.string,
1791
- disableLine: e.bool,
1792
- disableTicks: e.bool,
1793
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
1794
- height: e.number,
1795
- hideTooltip: e.bool,
1796
- id: e.oneOfType([e.number, e.string]),
1797
- ignoreTooltip: e.bool,
1798
- label: e.string,
1799
- labelStyle: e.object,
1800
- max: e.number,
1801
- min: e.number,
1802
- offset: e.number,
1803
- position: e.oneOf(["bottom", "none", "top"]),
1804
- reverse: e.bool,
1805
- scaleType: e.oneOf(["log"]),
1806
- slotProps: e.object,
1807
- slots: e.object,
1808
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1809
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
1810
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
1811
- tickLabelMinGap: e.number,
1812
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
1813
- tickLabelStyle: e.object,
1814
- tickMaxStep: e.number,
1815
- tickMinStep: e.number,
1816
- tickNumber: e.number,
1817
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
1818
- tickSize: e.number,
1819
- tickSpacing: e.number,
1820
- valueFormatter: e.func
1821
- }), e.shape({
1822
- axis: e.oneOf(["x"]),
1823
- classes: e.object,
1824
- colorMap: e.oneOfType([e.shape({
1825
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
1826
- max: e.oneOfType([e.instanceOf(Date), e.number]),
1827
- min: e.oneOfType([e.instanceOf(Date), e.number]),
1828
- type: e.oneOf(["continuous"]).isRequired
1829
- }), e.shape({
1830
- colors: e.arrayOf(e.string).isRequired,
1831
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
1832
- type: e.oneOf(["piecewise"]).isRequired
1833
- })]),
1834
- constant: e.number,
1835
- data: e.array,
1836
- dataKey: e.string,
1837
- disableLine: e.bool,
1838
- disableTicks: e.bool,
1839
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
1840
- height: e.number,
1841
- hideTooltip: e.bool,
1842
- id: e.oneOfType([e.number, e.string]),
1843
- ignoreTooltip: e.bool,
1844
- label: e.string,
1845
- labelStyle: e.object,
1846
- max: e.number,
1847
- min: e.number,
1848
- offset: e.number,
1849
- position: e.oneOf(["bottom", "none", "top"]),
1850
- reverse: e.bool,
1851
- scaleType: e.oneOf(["symlog"]),
1852
- slotProps: e.object,
1853
- slots: e.object,
1854
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1855
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
1856
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
1857
- tickLabelMinGap: e.number,
1858
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
1859
- tickLabelStyle: e.object,
1860
- tickMaxStep: e.number,
1861
- tickMinStep: e.number,
1862
- tickNumber: e.number,
1863
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
1864
- tickSize: e.number,
1865
- tickSpacing: e.number,
1866
- valueFormatter: e.func
1867
- }), e.shape({
1868
- axis: e.oneOf(["x"]),
1869
- classes: e.object,
1870
- colorMap: e.oneOfType([e.shape({
1871
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
1872
- max: e.oneOfType([e.instanceOf(Date), e.number]),
1873
- min: e.oneOfType([e.instanceOf(Date), e.number]),
1874
- type: e.oneOf(["continuous"]).isRequired
1875
- }), e.shape({
1876
- colors: e.arrayOf(e.string).isRequired,
1877
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
1878
- type: e.oneOf(["piecewise"]).isRequired
1879
- })]),
1880
- data: e.array,
1881
- dataKey: e.string,
1882
- disableLine: e.bool,
1883
- disableTicks: e.bool,
1884
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
1885
- height: e.number,
1886
- hideTooltip: e.bool,
1887
- id: e.oneOfType([e.number, e.string]),
1888
- ignoreTooltip: e.bool,
1889
- label: e.string,
1890
- labelStyle: e.object,
1891
- max: e.number,
1892
- min: e.number,
1893
- offset: e.number,
1894
- position: e.oneOf(["bottom", "none", "top"]),
1895
- reverse: e.bool,
1896
- scaleType: e.oneOf(["pow"]),
1897
- slotProps: e.object,
1898
- slots: e.object,
1899
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1900
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
1901
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
1902
- tickLabelMinGap: e.number,
1903
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
1904
- tickLabelStyle: e.object,
1905
- tickMaxStep: e.number,
1906
- tickMinStep: e.number,
1907
- tickNumber: e.number,
1908
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
1909
- tickSize: e.number,
1910
- tickSpacing: e.number,
1911
- valueFormatter: e.func
1912
- }), e.shape({
1913
- axis: e.oneOf(["x"]),
1914
- classes: e.object,
1915
- colorMap: e.oneOfType([e.shape({
1916
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
1917
- max: e.oneOfType([e.instanceOf(Date), e.number]),
1918
- min: e.oneOfType([e.instanceOf(Date), e.number]),
1919
- type: e.oneOf(["continuous"]).isRequired
1920
- }), e.shape({
1921
- colors: e.arrayOf(e.string).isRequired,
1922
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
1923
- type: e.oneOf(["piecewise"]).isRequired
1924
- })]),
1925
- data: e.array,
1926
- dataKey: e.string,
1927
- disableLine: e.bool,
1928
- disableTicks: e.bool,
1929
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
1930
- height: e.number,
1931
- hideTooltip: e.bool,
1932
- id: e.oneOfType([e.number, e.string]),
1933
- ignoreTooltip: e.bool,
1934
- label: e.string,
1935
- labelStyle: e.object,
1936
- max: e.number,
1937
- min: e.number,
1938
- offset: e.number,
1939
- position: e.oneOf(["bottom", "none", "top"]),
1940
- reverse: e.bool,
1941
- scaleType: e.oneOf(["sqrt"]),
1942
- slotProps: e.object,
1943
- slots: e.object,
1944
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1945
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
1946
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
1947
- tickLabelMinGap: e.number,
1948
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
1949
- tickLabelStyle: e.object,
1950
- tickMaxStep: e.number,
1951
- tickMinStep: e.number,
1952
- tickNumber: e.number,
1953
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
1954
- tickSize: e.number,
1955
- tickSpacing: e.number,
1956
- valueFormatter: e.func
1957
- }), e.shape({
1958
- axis: e.oneOf(["x"]),
1959
- classes: e.object,
1960
- colorMap: e.oneOfType([e.shape({
1961
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
1962
- max: e.oneOfType([e.instanceOf(Date), e.number]),
1963
- min: e.oneOfType([e.instanceOf(Date), e.number]),
1964
- type: e.oneOf(["continuous"]).isRequired
1965
- }), e.shape({
1966
- colors: e.arrayOf(e.string).isRequired,
1967
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
1968
- type: e.oneOf(["piecewise"]).isRequired
1969
- })]),
1970
- data: e.array,
1971
- dataKey: e.string,
1972
- disableLine: e.bool,
1973
- disableTicks: e.bool,
1974
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
1975
- height: e.number,
1976
- hideTooltip: e.bool,
1977
- id: e.oneOfType([e.number, e.string]),
1978
- ignoreTooltip: e.bool,
1979
- label: e.string,
1980
- labelStyle: e.object,
1981
- max: e.oneOfType([e.number, e.shape({
1982
- valueOf: e.func.isRequired
1983
- })]),
1984
- min: e.oneOfType([e.number, e.shape({
1985
- valueOf: e.func.isRequired
1986
- })]),
1987
- offset: e.number,
1988
- position: e.oneOf(["bottom", "none", "top"]),
1989
- reverse: e.bool,
1990
- scaleType: e.oneOf(["time"]),
1991
- slotProps: e.object,
1992
- slots: e.object,
1993
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1994
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
1995
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
1996
- tickLabelMinGap: e.number,
1997
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
1998
- tickLabelStyle: e.object,
1999
- tickMaxStep: e.number,
2000
- tickMinStep: e.number,
2001
- tickNumber: e.number,
2002
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
2003
- tickSize: e.number,
2004
- tickSpacing: e.number,
2005
- valueFormatter: e.func
2006
- }), e.shape({
2007
- axis: e.oneOf(["x"]),
2008
- classes: e.object,
2009
- colorMap: e.oneOfType([e.shape({
2010
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
2011
- max: e.oneOfType([e.instanceOf(Date), e.number]),
2012
- min: e.oneOfType([e.instanceOf(Date), e.number]),
2013
- type: e.oneOf(["continuous"]).isRequired
2014
- }), e.shape({
2015
- colors: e.arrayOf(e.string).isRequired,
2016
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
2017
- type: e.oneOf(["piecewise"]).isRequired
2018
- })]),
2019
- data: e.array,
2020
- dataKey: e.string,
2021
- disableLine: e.bool,
2022
- disableTicks: e.bool,
2023
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
2024
- height: e.number,
2025
- hideTooltip: e.bool,
2026
- id: e.oneOfType([e.number, e.string]),
2027
- ignoreTooltip: e.bool,
2028
- label: e.string,
2029
- labelStyle: e.object,
2030
- max: e.oneOfType([e.number, e.shape({
2031
- valueOf: e.func.isRequired
2032
- })]),
2033
- min: e.oneOfType([e.number, e.shape({
2034
- valueOf: e.func.isRequired
2035
- })]),
2036
- offset: e.number,
2037
- position: e.oneOf(["bottom", "none", "top"]),
2038
- reverse: e.bool,
2039
- scaleType: e.oneOf(["utc"]),
2040
- slotProps: e.object,
2041
- slots: e.object,
2042
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2043
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
2044
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
2045
- tickLabelMinGap: e.number,
2046
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
2047
- tickLabelStyle: e.object,
2048
- tickMaxStep: e.number,
2049
- tickMinStep: e.number,
2050
- tickNumber: e.number,
2051
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
2052
- tickSize: e.number,
2053
- tickSpacing: e.number,
2054
- valueFormatter: e.func
2055
- }), e.shape({
2056
- axis: e.oneOf(["x"]),
2057
- classes: e.object,
2058
- colorMap: e.oneOfType([e.shape({
2059
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
2060
- max: e.oneOfType([e.instanceOf(Date), e.number]),
2061
- min: e.oneOfType([e.instanceOf(Date), e.number]),
2062
- type: e.oneOf(["continuous"]).isRequired
2063
- }), e.shape({
2064
- colors: e.arrayOf(e.string).isRequired,
2065
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
2066
- type: e.oneOf(["piecewise"]).isRequired
2067
- })]),
2068
- data: e.array,
2069
- dataKey: e.string,
2070
- disableLine: e.bool,
2071
- disableTicks: e.bool,
2072
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
2073
- height: e.number,
2074
- hideTooltip: e.bool,
2075
- id: e.oneOfType([e.number, e.string]),
2076
- ignoreTooltip: e.bool,
2077
- label: e.string,
2078
- labelStyle: e.object,
2079
- max: e.number,
2080
- min: e.number,
2081
- offset: e.number,
2082
- position: e.oneOf(["bottom", "none", "top"]),
2083
- reverse: e.bool,
2084
- scaleType: e.oneOf(["linear"]),
2085
- slotProps: e.object,
2086
- slots: e.object,
2087
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2088
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
2089
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
2090
- tickLabelMinGap: e.number,
2091
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
2092
- tickLabelStyle: e.object,
2093
- tickMaxStep: e.number,
2094
- tickMinStep: e.number,
2095
- tickNumber: e.number,
2096
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
2097
- tickSize: e.number,
2098
- tickSpacing: e.number,
2099
- valueFormatter: e.func
2100
- })]).isRequired),
2101
- /**
2102
- * The configuration of the y-axes.
2103
- * If not provided, a default axis config is used.
2104
- * An array of [[AxisConfig]] objects.
2105
- */
2106
- yAxis: e.arrayOf(e.oneOfType([e.shape({
2107
- axis: e.oneOf(["y"]),
2108
- barGapRatio: e.number,
2109
- categoryGapRatio: e.number,
2110
- classes: e.object,
2111
- colorMap: e.oneOfType([e.shape({
2112
- colors: e.arrayOf(e.string).isRequired,
2113
- type: e.oneOf(["ordinal"]).isRequired,
2114
- unknownColor: e.string,
2115
- values: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number, e.string]).isRequired)
2116
- }), e.shape({
2117
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
2118
- max: e.oneOfType([e.instanceOf(Date), e.number]),
2119
- min: e.oneOfType([e.instanceOf(Date), e.number]),
2120
- type: e.oneOf(["continuous"]).isRequired
2121
- }), e.shape({
2122
- colors: e.arrayOf(e.string).isRequired,
2123
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
2124
- type: e.oneOf(["piecewise"]).isRequired
2125
- })]),
2126
- data: e.array,
2127
- dataKey: e.string,
2128
- disableLine: e.bool,
2129
- disableTicks: e.bool,
2130
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
2131
- groups: e.arrayOf(e.shape({
2132
- getValue: e.func.isRequired,
2133
- tickLabelStyle: e.object,
2134
- tickSize: e.number
2135
- })),
2136
- hideTooltip: e.bool,
2137
- id: e.oneOfType([e.number, e.string]),
2138
- ignoreTooltip: e.bool,
2139
- label: e.string,
2140
- labelStyle: e.object,
2141
- offset: e.number,
2142
- ordinalTimeTicks: e.arrayOf(e.oneOfType([e.oneOf(["biweekly", "days", "hours", "months", "quarterly", "weeks", "years"]), e.shape({
2143
- format: e.func.isRequired,
2144
- getTickNumber: e.func.isRequired,
2145
- isTick: e.func.isRequired
2146
- })]).isRequired),
2147
- position: e.oneOf(["left", "none", "right"]),
2148
- reverse: e.bool,
2149
- scaleType: e.oneOf(["band"]),
2150
- slotProps: e.object,
2151
- slots: e.object,
2152
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2153
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
2154
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
2155
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
2156
- tickLabelStyle: e.object,
2157
- tickMaxStep: e.number,
2158
- tickMinStep: e.number,
2159
- tickNumber: e.number,
2160
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
2161
- tickSize: e.number,
2162
- tickSpacing: e.number,
2163
- valueFormatter: e.func,
2164
- width: e.number
2165
- }), e.shape({
2166
- axis: e.oneOf(["y"]),
2167
- classes: e.object,
2168
- colorMap: e.oneOfType([e.shape({
2169
- colors: e.arrayOf(e.string).isRequired,
2170
- type: e.oneOf(["ordinal"]).isRequired,
2171
- unknownColor: e.string,
2172
- values: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number, e.string]).isRequired)
2173
- }), e.shape({
2174
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
2175
- max: e.oneOfType([e.instanceOf(Date), e.number]),
2176
- min: e.oneOfType([e.instanceOf(Date), e.number]),
2177
- type: e.oneOf(["continuous"]).isRequired
2178
- }), e.shape({
2179
- colors: e.arrayOf(e.string).isRequired,
2180
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
2181
- type: e.oneOf(["piecewise"]).isRequired
2182
- })]),
2183
- data: e.array,
2184
- dataKey: e.string,
2185
- disableLine: e.bool,
2186
- disableTicks: e.bool,
2187
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
2188
- groups: e.arrayOf(e.shape({
2189
- getValue: e.func.isRequired,
2190
- tickLabelStyle: e.object,
2191
- tickSize: e.number
2192
- })),
2193
- hideTooltip: e.bool,
2194
- id: e.oneOfType([e.number, e.string]),
2195
- ignoreTooltip: e.bool,
2196
- label: e.string,
2197
- labelStyle: e.object,
2198
- offset: e.number,
2199
- ordinalTimeTicks: e.arrayOf(e.oneOfType([e.oneOf(["biweekly", "days", "hours", "months", "quarterly", "weeks", "years"]), e.shape({
2200
- format: e.func.isRequired,
2201
- getTickNumber: e.func.isRequired,
2202
- isTick: e.func.isRequired
2203
- })]).isRequired),
2204
- position: e.oneOf(["left", "none", "right"]),
2205
- reverse: e.bool,
2206
- scaleType: e.oneOf(["point"]),
2207
- slotProps: e.object,
2208
- slots: e.object,
2209
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2210
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
2211
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
2212
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
2213
- tickLabelStyle: e.object,
2214
- tickMaxStep: e.number,
2215
- tickMinStep: e.number,
2216
- tickNumber: e.number,
2217
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
2218
- tickSize: e.number,
2219
- tickSpacing: e.number,
2220
- valueFormatter: e.func,
2221
- width: e.number
2222
- }), e.shape({
2223
- axis: e.oneOf(["y"]),
2224
- classes: e.object,
2225
- colorMap: e.oneOfType([e.shape({
2226
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
2227
- max: e.oneOfType([e.instanceOf(Date), e.number]),
2228
- min: e.oneOfType([e.instanceOf(Date), e.number]),
2229
- type: e.oneOf(["continuous"]).isRequired
2230
- }), e.shape({
2231
- colors: e.arrayOf(e.string).isRequired,
2232
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
2233
- type: e.oneOf(["piecewise"]).isRequired
2234
- })]),
2235
- data: e.array,
2236
- dataKey: e.string,
2237
- disableLine: e.bool,
2238
- disableTicks: e.bool,
2239
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
2240
- hideTooltip: e.bool,
2241
- id: e.oneOfType([e.number, e.string]),
2242
- ignoreTooltip: e.bool,
2243
- label: e.string,
2244
- labelStyle: e.object,
2245
- max: e.number,
2246
- min: e.number,
2247
- offset: e.number,
2248
- position: e.oneOf(["left", "none", "right"]),
2249
- reverse: e.bool,
2250
- scaleType: e.oneOf(["log"]),
2251
- slotProps: e.object,
2252
- slots: e.object,
2253
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2254
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
2255
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
2256
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
2257
- tickLabelStyle: e.object,
2258
- tickMaxStep: e.number,
2259
- tickMinStep: e.number,
2260
- tickNumber: e.number,
2261
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
2262
- tickSize: e.number,
2263
- tickSpacing: e.number,
2264
- valueFormatter: e.func,
2265
- width: e.number
2266
- }), e.shape({
2267
- axis: e.oneOf(["y"]),
2268
- classes: e.object,
2269
- colorMap: e.oneOfType([e.shape({
2270
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
2271
- max: e.oneOfType([e.instanceOf(Date), e.number]),
2272
- min: e.oneOfType([e.instanceOf(Date), e.number]),
2273
- type: e.oneOf(["continuous"]).isRequired
2274
- }), e.shape({
2275
- colors: e.arrayOf(e.string).isRequired,
2276
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
2277
- type: e.oneOf(["piecewise"]).isRequired
2278
- })]),
2279
- constant: e.number,
2280
- data: e.array,
2281
- dataKey: e.string,
2282
- disableLine: e.bool,
2283
- disableTicks: e.bool,
2284
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
2285
- hideTooltip: e.bool,
2286
- id: e.oneOfType([e.number, e.string]),
2287
- ignoreTooltip: e.bool,
2288
- label: e.string,
2289
- labelStyle: e.object,
2290
- max: e.number,
2291
- min: e.number,
2292
- offset: e.number,
2293
- position: e.oneOf(["left", "none", "right"]),
2294
- reverse: e.bool,
2295
- scaleType: e.oneOf(["symlog"]),
2296
- slotProps: e.object,
2297
- slots: e.object,
2298
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2299
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
2300
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
2301
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
2302
- tickLabelStyle: e.object,
2303
- tickMaxStep: e.number,
2304
- tickMinStep: e.number,
2305
- tickNumber: e.number,
2306
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
2307
- tickSize: e.number,
2308
- tickSpacing: e.number,
2309
- valueFormatter: e.func,
2310
- width: e.number
2311
- }), e.shape({
2312
- axis: e.oneOf(["y"]),
2313
- classes: e.object,
2314
- colorMap: e.oneOfType([e.shape({
2315
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
2316
- max: e.oneOfType([e.instanceOf(Date), e.number]),
2317
- min: e.oneOfType([e.instanceOf(Date), e.number]),
2318
- type: e.oneOf(["continuous"]).isRequired
2319
- }), e.shape({
2320
- colors: e.arrayOf(e.string).isRequired,
2321
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
2322
- type: e.oneOf(["piecewise"]).isRequired
2323
- })]),
2324
- data: e.array,
2325
- dataKey: e.string,
2326
- disableLine: e.bool,
2327
- disableTicks: e.bool,
2328
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
2329
- hideTooltip: e.bool,
2330
- id: e.oneOfType([e.number, e.string]),
2331
- ignoreTooltip: e.bool,
2332
- label: e.string,
2333
- labelStyle: e.object,
2334
- max: e.number,
2335
- min: e.number,
2336
- offset: e.number,
2337
- position: e.oneOf(["left", "none", "right"]),
2338
- reverse: e.bool,
2339
- scaleType: e.oneOf(["pow"]),
2340
- slotProps: e.object,
2341
- slots: e.object,
2342
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2343
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
2344
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
2345
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
2346
- tickLabelStyle: e.object,
2347
- tickMaxStep: e.number,
2348
- tickMinStep: e.number,
2349
- tickNumber: e.number,
2350
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
2351
- tickSize: e.number,
2352
- tickSpacing: e.number,
2353
- valueFormatter: e.func,
2354
- width: e.number
2355
- }), e.shape({
2356
- axis: e.oneOf(["y"]),
2357
- classes: e.object,
2358
- colorMap: e.oneOfType([e.shape({
2359
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
2360
- max: e.oneOfType([e.instanceOf(Date), e.number]),
2361
- min: e.oneOfType([e.instanceOf(Date), e.number]),
2362
- type: e.oneOf(["continuous"]).isRequired
2363
- }), e.shape({
2364
- colors: e.arrayOf(e.string).isRequired,
2365
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
2366
- type: e.oneOf(["piecewise"]).isRequired
2367
- })]),
2368
- data: e.array,
2369
- dataKey: e.string,
2370
- disableLine: e.bool,
2371
- disableTicks: e.bool,
2372
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
2373
- hideTooltip: e.bool,
2374
- id: e.oneOfType([e.number, e.string]),
2375
- ignoreTooltip: e.bool,
2376
- label: e.string,
2377
- labelStyle: e.object,
2378
- max: e.number,
2379
- min: e.number,
2380
- offset: e.number,
2381
- position: e.oneOf(["left", "none", "right"]),
2382
- reverse: e.bool,
2383
- scaleType: e.oneOf(["sqrt"]),
2384
- slotProps: e.object,
2385
- slots: e.object,
2386
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2387
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
2388
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
2389
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
2390
- tickLabelStyle: e.object,
2391
- tickMaxStep: e.number,
2392
- tickMinStep: e.number,
2393
- tickNumber: e.number,
2394
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
2395
- tickSize: e.number,
2396
- tickSpacing: e.number,
2397
- valueFormatter: e.func,
2398
- width: e.number
2399
- }), e.shape({
2400
- axis: e.oneOf(["y"]),
2401
- classes: e.object,
2402
- colorMap: e.oneOfType([e.shape({
2403
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
2404
- max: e.oneOfType([e.instanceOf(Date), e.number]),
2405
- min: e.oneOfType([e.instanceOf(Date), e.number]),
2406
- type: e.oneOf(["continuous"]).isRequired
2407
- }), e.shape({
2408
- colors: e.arrayOf(e.string).isRequired,
2409
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
2410
- type: e.oneOf(["piecewise"]).isRequired
2411
- })]),
2412
- data: e.array,
2413
- dataKey: e.string,
2414
- disableLine: e.bool,
2415
- disableTicks: e.bool,
2416
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
2417
- hideTooltip: e.bool,
2418
- id: e.oneOfType([e.number, e.string]),
2419
- ignoreTooltip: e.bool,
2420
- label: e.string,
2421
- labelStyle: e.object,
2422
- max: e.oneOfType([e.number, e.shape({
2423
- valueOf: e.func.isRequired
2424
- })]),
2425
- min: e.oneOfType([e.number, e.shape({
2426
- valueOf: e.func.isRequired
2427
- })]),
2428
- offset: e.number,
2429
- position: e.oneOf(["left", "none", "right"]),
2430
- reverse: e.bool,
2431
- scaleType: e.oneOf(["time"]),
2432
- slotProps: e.object,
2433
- slots: e.object,
2434
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2435
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
2436
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
2437
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
2438
- tickLabelStyle: e.object,
2439
- tickMaxStep: e.number,
2440
- tickMinStep: e.number,
2441
- tickNumber: e.number,
2442
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
2443
- tickSize: e.number,
2444
- tickSpacing: e.number,
2445
- valueFormatter: e.func,
2446
- width: e.number
2447
- }), e.shape({
2448
- axis: e.oneOf(["y"]),
2449
- classes: e.object,
2450
- colorMap: e.oneOfType([e.shape({
2451
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
2452
- max: e.oneOfType([e.instanceOf(Date), e.number]),
2453
- min: e.oneOfType([e.instanceOf(Date), e.number]),
2454
- type: e.oneOf(["continuous"]).isRequired
2455
- }), e.shape({
2456
- colors: e.arrayOf(e.string).isRequired,
2457
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
2458
- type: e.oneOf(["piecewise"]).isRequired
2459
- })]),
2460
- data: e.array,
2461
- dataKey: e.string,
2462
- disableLine: e.bool,
2463
- disableTicks: e.bool,
2464
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
2465
- hideTooltip: e.bool,
2466
- id: e.oneOfType([e.number, e.string]),
2467
- ignoreTooltip: e.bool,
2468
- label: e.string,
2469
- labelStyle: e.object,
2470
- max: e.oneOfType([e.number, e.shape({
2471
- valueOf: e.func.isRequired
2472
- })]),
2473
- min: e.oneOfType([e.number, e.shape({
2474
- valueOf: e.func.isRequired
2475
- })]),
2476
- offset: e.number,
2477
- position: e.oneOf(["left", "none", "right"]),
2478
- reverse: e.bool,
2479
- scaleType: e.oneOf(["utc"]),
2480
- slotProps: e.object,
2481
- slots: e.object,
2482
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2483
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
2484
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
2485
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
2486
- tickLabelStyle: e.object,
2487
- tickMaxStep: e.number,
2488
- tickMinStep: e.number,
2489
- tickNumber: e.number,
2490
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
2491
- tickSize: e.number,
2492
- tickSpacing: e.number,
2493
- valueFormatter: e.func,
2494
- width: e.number
2495
- }), e.shape({
2496
- axis: e.oneOf(["y"]),
2497
- classes: e.object,
2498
- colorMap: e.oneOfType([e.shape({
2499
- color: e.oneOfType([e.arrayOf(e.string.isRequired), e.func]).isRequired,
2500
- max: e.oneOfType([e.instanceOf(Date), e.number]),
2501
- min: e.oneOfType([e.instanceOf(Date), e.number]),
2502
- type: e.oneOf(["continuous"]).isRequired
2503
- }), e.shape({
2504
- colors: e.arrayOf(e.string).isRequired,
2505
- thresholds: e.arrayOf(e.oneOfType([e.instanceOf(Date), e.number]).isRequired).isRequired,
2506
- type: e.oneOf(["piecewise"]).isRequired
2507
- })]),
2508
- data: e.array,
2509
- dataKey: e.string,
2510
- disableLine: e.bool,
2511
- disableTicks: e.bool,
2512
- domainLimit: e.oneOfType([e.oneOf(["nice", "strict"]), e.func]),
2513
- hideTooltip: e.bool,
2514
- id: e.oneOfType([e.number, e.string]),
2515
- ignoreTooltip: e.bool,
2516
- label: e.string,
2517
- labelStyle: e.object,
2518
- max: e.number,
2519
- min: e.number,
2520
- offset: e.number,
2521
- position: e.oneOf(["left", "none", "right"]),
2522
- reverse: e.bool,
2523
- scaleType: e.oneOf(["linear"]),
2524
- slotProps: e.object,
2525
- slots: e.object,
2526
- sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
2527
- tickInterval: e.oneOfType([e.oneOf(["auto"]), e.array, e.func]),
2528
- tickLabelInterval: e.oneOfType([e.oneOf(["auto"]), e.func]),
2529
- tickLabelPlacement: e.oneOf(["middle", "tick"]),
2530
- tickLabelStyle: e.object,
2531
- tickMaxStep: e.number,
2532
- tickMinStep: e.number,
2533
- tickNumber: e.number,
2534
- tickPlacement: e.oneOf(["end", "extremities", "middle", "start"]),
2535
- tickSize: e.number,
2536
- tickSpacing: e.number,
2537
- valueFormatter: e.func,
2538
- width: e.number
2539
- })]).isRequired)
2540
- });
2541
- export {
2542
- Tn as BAR_CHART_PLUGINS,
2543
- Ae as BarChart,
2544
- Ie as BarElement,
2545
- qe as BarLabel,
2546
- Me as BarPlot,
2547
- vn as FocusedBar,
2548
- An as barClasses,
2549
- jt as barElementClasses,
2550
- pe as barLabelClasses,
2551
- vt as getBarElementUtilityClass,
2552
- At as getBarLabelUtilityClass,
2553
- Kt as getBarUtilityClass,
2554
- qt as useUtilityClasses
2555
- };