@undp/data-viz 2.1.2 → 2.1.4

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 (162) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +281 -274
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/BarGraph.cjs +1 -1
  6. package/dist/BarGraph.cjs.map +1 -1
  7. package/dist/BarGraph.d.ts +2 -0
  8. package/dist/BarGraph.js +1795 -1724
  9. package/dist/BarGraph.js.map +1 -1
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.js +312 -305
  13. package/dist/BeeSwarmChart.js.map +1 -1
  14. package/dist/BulletChart.cjs +1 -1
  15. package/dist/BulletChart.cjs.map +1 -1
  16. package/dist/BulletChart.js +367 -356
  17. package/dist/BulletChart.js.map +1 -1
  18. package/dist/ButterflyChart.cjs +1 -1
  19. package/dist/ButterflyChart.cjs.map +1 -1
  20. package/dist/ButterflyChart.js +224 -217
  21. package/dist/ButterflyChart.js.map +1 -1
  22. package/dist/CirclePackingGraph.cjs +1 -1
  23. package/dist/CirclePackingGraph.js +2 -2
  24. package/dist/DifferenceLineChart.cjs +1 -1
  25. package/dist/DifferenceLineChart.cjs.map +1 -1
  26. package/dist/DifferenceLineChart.js +406 -399
  27. package/dist/DifferenceLineChart.js.map +1 -1
  28. package/dist/DonutChart.cjs +1 -1
  29. package/dist/DonutChart.cjs.map +1 -1
  30. package/dist/DonutChart.d.ts +10 -0
  31. package/dist/DonutChart.js +232 -263
  32. package/dist/DonutChart.js.map +1 -1
  33. package/dist/DualAxisLineChart.cjs +1 -1
  34. package/dist/DualAxisLineChart.cjs.map +1 -1
  35. package/dist/DualAxisLineChart.js +320 -313
  36. package/dist/DualAxisLineChart.js.map +1 -1
  37. package/dist/DumbbellChart.cjs +1 -1
  38. package/dist/DumbbellChart.cjs.map +1 -1
  39. package/dist/DumbbellChart.js +298 -291
  40. package/dist/DumbbellChart.js.map +1 -1
  41. package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
  42. package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
  43. package/dist/EmptyState-gLDRXBHm.cjs +2 -0
  44. package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
  45. package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
  46. package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
  47. package/dist/{GraphEl-sVZvlyWe.js → GraphEl-oZwZiTHI.js} +6 -3
  48. package/dist/GraphEl-oZwZiTHI.js.map +1 -0
  49. package/dist/GriddedGraphs.cjs +1 -1
  50. package/dist/GriddedGraphs.d.ts +1 -0
  51. package/dist/GriddedGraphs.js +1 -1
  52. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  53. package/dist/HeatMap.cjs +1 -1
  54. package/dist/HeatMap.cjs.map +1 -1
  55. package/dist/HeatMap.js +179 -172
  56. package/dist/HeatMap.js.map +1 -1
  57. package/dist/Histogram.cjs +1 -1
  58. package/dist/Histogram.js +1 -1
  59. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  60. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  61. package/dist/LineChartWithConfidenceInterval.js +370 -363
  62. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  63. package/dist/MultiGraphDashboard.d.ts +1 -0
  64. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  65. package/dist/MultiLineAltChart.cjs +1 -1
  66. package/dist/MultiLineAltChart.cjs.map +1 -1
  67. package/dist/MultiLineAltChart.js +328 -321
  68. package/dist/MultiLineAltChart.js.map +1 -1
  69. package/dist/MultiLineChart.cjs +1 -1
  70. package/dist/MultiLineChart.cjs.map +1 -1
  71. package/dist/MultiLineChart.js +375 -368
  72. package/dist/MultiLineChart.js.map +1 -1
  73. package/dist/ParetoChart.cjs +1 -1
  74. package/dist/ParetoChart.cjs.map +1 -1
  75. package/dist/ParetoChart.js +385 -378
  76. package/dist/ParetoChart.js.map +1 -1
  77. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  78. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  79. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  80. package/dist/RadarChart.cjs +1 -1
  81. package/dist/RadarChart.cjs.map +1 -1
  82. package/dist/RadarChart.js +35 -34
  83. package/dist/RadarChart.js.map +1 -1
  84. package/dist/SankeyChart.cjs +1 -1
  85. package/dist/SankeyChart.cjs.map +1 -1
  86. package/dist/SankeyChart.js +176 -169
  87. package/dist/SankeyChart.js.map +1 -1
  88. package/dist/ScatterPlot.cjs +1 -1
  89. package/dist/ScatterPlot.cjs.map +1 -1
  90. package/dist/ScatterPlot.js +367 -360
  91. package/dist/ScatterPlot.js.map +1 -1
  92. package/dist/ScrollStory.d.ts +1 -0
  93. package/dist/SimpleLineChart.cjs +1 -1
  94. package/dist/SimpleLineChart.cjs.map +1 -1
  95. package/dist/SimpleLineChart.js +286 -279
  96. package/dist/SimpleLineChart.js.map +1 -1
  97. package/dist/SingleGraphDashboard.cjs +1 -1
  98. package/dist/SingleGraphDashboard.d.ts +1 -0
  99. package/dist/SingleGraphDashboard.js +1 -1
  100. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  101. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  102. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  103. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  104. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  105. package/dist/SlopeChart.cjs +1 -1
  106. package/dist/SlopeChart.cjs.map +1 -1
  107. package/dist/SlopeChart.js +243 -236
  108. package/dist/SlopeChart.js.map +1 -1
  109. package/dist/SparkLine.cjs +1 -1
  110. package/dist/SparkLine.js +2 -2
  111. package/dist/StripChart.cjs +1 -1
  112. package/dist/StripChart.cjs.map +1 -1
  113. package/dist/StripChart.js +293 -286
  114. package/dist/StripChart.js.map +1 -1
  115. package/dist/TreeMapGraph.cjs +1 -1
  116. package/dist/TreeMapGraph.cjs.map +1 -1
  117. package/dist/TreeMapGraph.js +222 -215
  118. package/dist/TreeMapGraph.js.map +1 -1
  119. package/dist/Types.d.ts +1 -0
  120. package/dist/{area-BE2wo7fv.js → area-B6r7cv2o.js} +5 -5
  121. package/dist/{area-BE2wo7fv.js.map → area-B6r7cv2o.js.map} +1 -1
  122. package/dist/area-C1gxfNGD.cjs +2 -0
  123. package/dist/{area-D3Qx7k7K.cjs.map → area-C1gxfNGD.cjs.map} +1 -1
  124. package/dist/array-DMyR1sql.cjs +2 -0
  125. package/dist/array-DMyR1sql.cjs.map +1 -0
  126. package/dist/array-USo-Szhp.js +13 -0
  127. package/dist/array-USo-Szhp.js.map +1 -0
  128. package/dist/{ensureCompleteData-DS7gCvVd.js → ensureCompleteData-DH5c52Ub.js} +6 -6
  129. package/dist/{ensureCompleteData-DS7gCvVd.js.map → ensureCompleteData-DH5c52Ub.js.map} +1 -1
  130. package/dist/{ensureCompleteData-Oib-vGb0.cjs → ensureCompleteData-pZ9QO6kB.cjs} +2 -2
  131. package/dist/{ensureCompleteData-Oib-vGb0.cjs.map → ensureCompleteData-pZ9QO6kB.cjs.map} +1 -1
  132. package/dist/index-Blvf-Q3U.cjs +2 -0
  133. package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
  134. package/dist/index-D1RrKgK6.js +337 -0
  135. package/dist/index-D1RrKgK6.js.map +1 -0
  136. package/dist/index.cjs +1 -1
  137. package/dist/index.d.ts +7 -0
  138. package/dist/index.js +1 -1
  139. package/dist/line-DFlZsxI1.js +144 -0
  140. package/dist/line-DFlZsxI1.js.map +1 -0
  141. package/dist/line-DaEMhXmx.cjs +2 -0
  142. package/dist/line-DaEMhXmx.cjs.map +1 -0
  143. package/dist/style.css +1 -1
  144. package/package.json +1 -1
  145. package/dist/EmptyState-BZo1BbAn.js.map +0 -1
  146. package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
  147. package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
  148. package/dist/GraphEl-YKUlz-37.cjs +0 -2
  149. package/dist/GraphEl-YKUlz-37.cjs.map +0 -1
  150. package/dist/GraphEl-sVZvlyWe.js.map +0 -1
  151. package/dist/area-D3Qx7k7K.cjs +0 -2
  152. package/dist/array-B7TkkRH0.js +0 -89
  153. package/dist/array-B7TkkRH0.js.map +0 -1
  154. package/dist/array-DKbXV8lR.cjs +0 -2
  155. package/dist/array-DKbXV8lR.cjs.map +0 -1
  156. package/dist/index-CF5hnGvG.cjs +0 -2
  157. package/dist/index-DPGq3eIL.js +0 -330
  158. package/dist/index-DPGq3eIL.js.map +0 -1
  159. package/dist/line-CPfhohvF.js +0 -68
  160. package/dist/line-CPfhohvF.js.map +0 -1
  161. package/dist/line-DHV4JwCR.cjs +0 -2
  162. package/dist/line-DHV4JwCR.cjs.map +0 -1
@@ -1,291 +1,260 @@
1
- import { c as de, j as v, m as ge } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useState as Z, useRef as ue, useEffect as pe } from "react";
3
- import { v as he, j as ie } from "./Typography-PxtFcnJb.js";
4
- import { o as ye } from "./index-BZQYSqar.js";
5
- import { n as xe } from "./Source-DwTHB8fn.js";
6
- import { i as ve } from "./index-Bwrro8-q.js";
7
- import { T as be } from "./Tooltip-Dj5eVppQ.js";
8
- import { Colors as _ } from "./Colors.js";
9
- import { n as me } from "./numberFormattingFunction-14YCbkN2.js";
10
- import { D as Ae } from "./DetailsModal-0Ry5nXiC.js";
11
- import { w as je, c as B, a as Me } from "./array-B7TkkRH0.js";
12
- import { GraphFooter as De } from "./GraphFooter.js";
13
- import { GraphHeader as Ne } from "./GraphHeader.js";
14
- import { E as Ce } from "./EmptyState-BZo1BbAn.js";
15
- import { G as Re, a as ke } from "./GraphContainer-CRqzdKu2.js";
16
- const ce = Math.abs, P = Math.atan2, Q = Math.cos, we = Math.max, oe = Math.min, V = Math.sin, U = Math.sqrt, W = 1e-12, ee = Math.PI, ae = ee / 2, te = 2 * ee;
17
- function Oe(r) {
18
- return r > 1 ? 0 : r < -1 ? ee : Math.acos(r);
1
+ import { c as mt, j as o, m as dt } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as rt, useState as tt, useEffect as pt } from "react";
3
+ import { v as ft, j as it } from "./Typography-PxtFcnJb.js";
4
+ import { o as gt } from "./index-BZQYSqar.js";
5
+ import { n as ht } from "./Source-DwTHB8fn.js";
6
+ import { i as xt } from "./index-Bwrro8-q.js";
7
+ import { T as yt } from "./Tooltip-Dj5eVppQ.js";
8
+ import { Colors as R } from "./Colors.js";
9
+ import { n as ct } from "./numberFormattingFunction-14YCbkN2.js";
10
+ import { D as vt } from "./DetailsModal-0Ry5nXiC.js";
11
+ import { c as T, a as bt } from "./array-USo-Szhp.js";
12
+ import { u as jt } from "./use-in-view-Cxa7y1TH.js";
13
+ import { A as Mt } from "./index-BqfRwk1n.js";
14
+ import { m as ot } from "./proxy-BxkFHwUw.js";
15
+ import { GraphFooter as Nt } from "./GraphFooter.js";
16
+ import { GraphHeader as Ct } from "./GraphHeader.js";
17
+ import { E as Dt } from "./EmptyState-C7ZXkZWd.js";
18
+ import { G as kt, a as At } from "./GraphContainer-CRqzdKu2.js";
19
+ const wt = Math.PI, at = 2 * wt;
20
+ function Ot(s, t) {
21
+ return t < s ? -1 : t > s ? 1 : t >= s ? 0 : NaN;
19
22
  }
20
- function fe(r) {
21
- return r >= 1 ? ae : r <= -1 ? -ae : Math.asin(r);
23
+ function St(s) {
24
+ return s;
22
25
  }
23
- function Te(r) {
24
- return r.innerRadius;
25
- }
26
- function Se(r) {
27
- return r.outerRadius;
28
- }
29
- function ze(r) {
30
- return r.startAngle;
31
- }
32
- function Ee(r) {
33
- return r.endAngle;
34
- }
35
- function Pe(r) {
36
- return r && r.padAngle;
37
- }
38
- function Ge(r, e, c, A, l, j, f, n) {
39
- var m = c - r, i = A - e, t = f - l, M = n - j, a = M * m - t * i;
40
- if (!(a * a < W))
41
- return a = (t * (e - j) - M * (r - l)) / a, [r + a * m, e + a * i];
42
- }
43
- function ne(r, e, c, A, l, j, f) {
44
- var n = r - c, m = e - A, i = (f ? j : -j) / U(n * n + m * m), t = i * m, M = -i * n, a = r + t, s = e + M, y = c + t, h = A + M, T = (a + y) / 2, d = (s + h) / 2, x = y - a, N = h - s, g = x * x + N * N, b = l - j, D = a * h - y * s, G = (N < 0 ? -1 : 1) * U(we(0, b * b * g - D * D)), $ = (D * N - x * G) / g, E = (-D * x - N * G) / g, R = (D * N + x * G) / g, k = (-D * x + N * G) / g, w = $ - T, o = E - d, u = R - T, H = k - d;
45
- return w * w + o * o > u * u + H * H && ($ = R, E = k), {
46
- cx: $,
47
- cy: E,
48
- x01: -t,
49
- y01: -M,
50
- x11: $ * (l / b - 1),
51
- y11: E * (l / b - 1)
52
- };
53
- }
54
- function $e() {
55
- var r = Te, e = Se, c = B(0), A = null, l = ze, j = Ee, f = Pe, n = null, m = je(i);
56
- function i() {
57
- var t, M, a = +r.apply(this, arguments), s = +e.apply(this, arguments), y = l.apply(this, arguments) - ae, h = j.apply(this, arguments) - ae, T = ce(h - y), d = h > y;
58
- if (n || (n = t = m()), s < a && (M = s, s = a, a = M), !(s > W)) n.moveTo(0, 0);
59
- else if (T > te - W)
60
- n.moveTo(s * Q(y), s * V(y)), n.arc(0, 0, s, y, h, !d), a > W && (n.moveTo(a * Q(h), a * V(h)), n.arc(0, 0, a, h, y, d));
61
- else {
62
- var x = y, N = h, g = y, b = h, D = T, G = T, $ = f.apply(this, arguments) / 2, E = $ > W && (A ? +A.apply(this, arguments) : U(a * a + s * s)), R = oe(ce(s - a) / 2, +c.apply(this, arguments)), k = R, w = R, o, u;
63
- if (E > W) {
64
- var H = fe(E / a * V($)), X = fe(E / s * V($));
65
- (D -= H * 2) > W ? (H *= d ? 1 : -1, g += H, b -= H) : (D = 0, g = b = (y + h) / 2), (G -= X * 2) > W ? (X *= d ? 1 : -1, x += X, N -= X) : (G = 0, x = N = (y + h) / 2);
66
- }
67
- var Y = s * Q(x), S = s * V(x), O = a * Q(b), I = a * V(b);
68
- if (R > W) {
69
- var F = s * Q(N), q = s * V(N), L = a * Q(g), C = a * V(g), z;
70
- if (T < ee)
71
- if (z = Ge(Y, S, L, C, F, q, O, I)) {
72
- var p = Y - z[0], J = S - z[1], K = F - z[0], re = q - z[1], se = 1 / V(Oe((p * K + J * re) / (U(p * p + J * J) * U(K * K + re * re))) / 2), le = U(z[0] * z[0] + z[1] * z[1]);
73
- k = oe(R, (a - le) / (se - 1)), w = oe(R, (s - le) / (se + 1));
74
- } else
75
- k = w = 0;
76
- }
77
- G > W ? w > W ? (o = ne(L, C, Y, S, s, w, d), u = ne(F, q, O, I, s, w, d), n.moveTo(o.cx + o.x01, o.cy + o.y01), w < R ? n.arc(o.cx, o.cy, w, P(o.y01, o.x01), P(u.y01, u.x01), !d) : (n.arc(o.cx, o.cy, w, P(o.y01, o.x01), P(o.y11, o.x11), !d), n.arc(0, 0, s, P(o.cy + o.y11, o.cx + o.x11), P(u.cy + u.y11, u.cx + u.x11), !d), n.arc(u.cx, u.cy, w, P(u.y11, u.x11), P(u.y01, u.x01), !d))) : (n.moveTo(Y, S), n.arc(0, 0, s, x, N, !d)) : n.moveTo(Y, S), !(a > W) || !(D > W) ? n.lineTo(O, I) : k > W ? (o = ne(O, I, F, q, a, -k, d), u = ne(Y, S, L, C, a, -k, d), n.lineTo(o.cx + o.x01, o.cy + o.y01), k < R ? n.arc(o.cx, o.cy, k, P(o.y01, o.x01), P(u.y01, u.x01), !d) : (n.arc(o.cx, o.cy, k, P(o.y01, o.x01), P(o.y11, o.x11), !d), n.arc(0, 0, a, P(o.cy + o.y11, o.cx + o.x11), P(u.cy + u.y11, u.cx + u.x11), d), n.arc(u.cx, u.cy, k, P(u.y11, u.x11), P(u.y01, u.x01), !d))) : n.arc(0, 0, a, b, g, d);
78
- }
79
- if (n.closePath(), t) return n = null, t + "" || null;
80
- }
81
- return i.centroid = function() {
82
- var t = (+r.apply(this, arguments) + +e.apply(this, arguments)) / 2, M = (+l.apply(this, arguments) + +j.apply(this, arguments)) / 2 - ee / 2;
83
- return [Q(M) * t, V(M) * t];
84
- }, i.innerRadius = function(t) {
85
- return arguments.length ? (r = typeof t == "function" ? t : B(+t), i) : r;
86
- }, i.outerRadius = function(t) {
87
- return arguments.length ? (e = typeof t == "function" ? t : B(+t), i) : e;
88
- }, i.cornerRadius = function(t) {
89
- return arguments.length ? (c = typeof t == "function" ? t : B(+t), i) : c;
90
- }, i.padRadius = function(t) {
91
- return arguments.length ? (A = t == null ? null : typeof t == "function" ? t : B(+t), i) : A;
92
- }, i.startAngle = function(t) {
93
- return arguments.length ? (l = typeof t == "function" ? t : B(+t), i) : l;
94
- }, i.endAngle = function(t) {
95
- return arguments.length ? (j = typeof t == "function" ? t : B(+t), i) : j;
96
- }, i.padAngle = function(t) {
97
- return arguments.length ? (f = typeof t == "function" ? t : B(+t), i) : f;
98
- }, i.context = function(t) {
99
- return arguments.length ? (n = t ?? null, i) : n;
100
- }, i;
101
- }
102
- function Be(r, e) {
103
- return e < r ? -1 : e > r ? 1 : e >= r ? 0 : NaN;
104
- }
105
- function Ie(r) {
106
- return r;
107
- }
108
- function Fe() {
109
- var r = Ie, e = Be, c = null, A = B(0), l = B(te), j = B(0);
110
- function f(n) {
111
- var m, i = (n = Me(n)).length, t, M, a = 0, s = new Array(i), y = new Array(i), h = +A.apply(this, arguments), T = Math.min(te, Math.max(-te, l.apply(this, arguments) - h)), d, x = Math.min(Math.abs(T) / i, j.apply(this, arguments)), N = x * (T < 0 ? -1 : 1), g;
112
- for (m = 0; m < i; ++m)
113
- (g = y[s[m] = m] = +r(n[m], m, n)) > 0 && (a += g);
114
- for (e != null ? s.sort(function(b, D) {
115
- return e(y[b], y[D]);
116
- }) : c != null && s.sort(function(b, D) {
117
- return c(n[b], n[D]);
118
- }), m = 0, M = a ? (T - i * N) / a : 0; m < i; ++m, h = d)
119
- t = s[m], g = y[t], d = h + (g > 0 ? g * M : 0) + N, y[t] = {
120
- data: n[t],
121
- index: m,
122
- value: g,
123
- startAngle: h,
26
+ function zt() {
27
+ var s = St, t = Ot, n = null, c = T(0), a = T(at), p = T(0);
28
+ function r(e) {
29
+ var l, x = (e = bt(e)).length, f, C, m = 0, g = new Array(x), b = new Array(x), y = +c.apply(this, arguments), S = Math.min(at, Math.max(-at, a.apply(this, arguments) - y)), d, P = Math.min(Math.abs(S) / x, p.apply(this, arguments)), G = P * (S < 0 ? -1 : 1), h;
30
+ for (l = 0; l < x; ++l)
31
+ (h = b[g[l] = l] = +s(e[l], l, e)) > 0 && (m += h);
32
+ for (t != null ? g.sort(function(D, z) {
33
+ return t(b[D], b[z]);
34
+ }) : n != null && g.sort(function(D, z) {
35
+ return n(e[D], e[z]);
36
+ }), l = 0, C = m ? (S - x * G) / m : 0; l < x; ++l, y = d)
37
+ f = g[l], h = b[f], d = y + (h > 0 ? h * C : 0) + G, b[f] = {
38
+ data: e[f],
39
+ index: l,
40
+ value: h,
41
+ startAngle: y,
124
42
  endAngle: d,
125
- padAngle: x
43
+ padAngle: P
126
44
  };
127
- return y;
45
+ return b;
128
46
  }
129
- return f.value = function(n) {
130
- return arguments.length ? (r = typeof n == "function" ? n : B(+n), f) : r;
131
- }, f.sortValues = function(n) {
132
- return arguments.length ? (e = n, c = null, f) : e;
133
- }, f.sort = function(n) {
134
- return arguments.length ? (c = n, e = null, f) : c;
135
- }, f.startAngle = function(n) {
136
- return arguments.length ? (A = typeof n == "function" ? n : B(+n), f) : A;
137
- }, f.endAngle = function(n) {
138
- return arguments.length ? (l = typeof n == "function" ? n : B(+n), f) : l;
139
- }, f.padAngle = function(n) {
140
- return arguments.length ? (j = typeof n == "function" ? n : B(+n), f) : j;
141
- }, f;
47
+ return r.value = function(e) {
48
+ return arguments.length ? (s = typeof e == "function" ? e : T(+e), r) : s;
49
+ }, r.sortValues = function(e) {
50
+ return arguments.length ? (t = e, n = null, r) : t;
51
+ }, r.sort = function(e) {
52
+ return arguments.length ? (n = e, t = null, r) : n;
53
+ }, r.startAngle = function(e) {
54
+ return arguments.length ? (c = typeof e == "function" ? e : T(+e), r) : c;
55
+ }, r.endAngle = function(e) {
56
+ return arguments.length ? (a = typeof e == "function" ? e : T(+e), r) : a;
57
+ }, r.padAngle = function(e) {
58
+ return arguments.length ? (p = typeof e == "function" ? e : T(+e), r) : p;
59
+ }, r;
142
60
  }
143
- function We(r) {
144
- const e = de.c(44), {
145
- mainText: c,
146
- data: A,
147
- radius: l,
148
- colors: j,
149
- subNote: f,
150
- strokeWidth: n,
151
- tooltip: m,
152
- onSeriesMouseOver: i,
153
- onSeriesMouseClick: t,
154
- colorDomain: M,
155
- resetSelectionOnDoubleClick: a,
156
- detailsOnClick: s,
157
- styles: y,
158
- classNames: h,
159
- precision: T
160
- } = r, d = Fe().sort(null).startAngle(0).value(He), [x, N] = Z(void 0), [g, b] = Z(void 0), [D, G] = Z(void 0), [$, E] = Z(void 0), R = `${l * 2}px`, k = `${l * 2}px`, w = `0 0 ${l * 2} ${l * 2}`, o = "ltr", u = "mx-auto", H = `translate(${l} ${l})`;
161
- let X;
162
- e[0] !== A || e[1] !== c || e[2] !== T || e[3] !== l || e[4] !== n || e[5] !== f ? (X = c || f ? /* @__PURE__ */ v.jsx("foreignObject", { y: 0 - (l - n), x: 0 - (l - n), width: 2 * (l - n), height: 2 * (l - n), children: /* @__PURE__ */ v.jsxs("div", { className: "flex flex-col gap-0.5 justify-center items-center h-inherit py-0 px-4", children: [
163
- c ? /* @__PURE__ */ v.jsx(he, { marginBottom: "none", className: "donut-main-text text-primary-gray-700 dark:text-primary-gray-100 leading-none text-center", children: typeof c == "string" ? c : A.findIndex((C) => C.label === c.label) !== -1 ? me(A[A.findIndex((C) => C.label === c.label)].size, "NA", T, c.prefix, c.suffix) : "NA" }) : null,
164
- f ? /* @__PURE__ */ v.jsx(ie, { marginBottom: "none", size: "base", leading: "none", className: "donut-sub-note text-primary-gray-700 dark:text-primary-gray-100 text-center font-bold", children: f }) : typeof c == "string" || !c ? null : /* @__PURE__ */ v.jsx(ie, { size: "base", marginBottom: "none", leading: "none", className: "donut-label text-primary-gray-700 dark:text-primary-gray-100 text-center font-bold", children: c.label })
165
- ] }) }) : null, e[0] = A, e[1] = c, e[2] = T, e[3] = l, e[4] = n, e[5] = f, e[6] = X) : X = e[6];
166
- let Y;
167
- e[7] !== M || e[8] !== j || e[9] !== s || e[10] !== g || e[11] !== x || e[12] !== t || e[13] !== i || e[14] !== l || e[15] !== a || e[16] !== b || e[17] !== n ? (Y = (C, z) => /* @__PURE__ */ v.jsx("path", { d: $e()({
168
- innerRadius: l - n,
169
- outerRadius: l,
170
- startAngle: C.startAngle,
171
- endAngle: C.endAngle
172
- }), style: {
173
- fill: M.indexOf(C.data.label) !== -1 ? j[M.indexOf(C.data.label) % j.length] : _.gray,
174
- opacity: x ? x.label === C.data.label ? 1 : 0.3 : 1
175
- }, onMouseEnter: (p) => {
176
- N(C.data), E(p.clientY), G(p.clientX), i?.(C);
61
+ const lt = (s, t, n, c) => ({
62
+ x: s + n * Math.cos(c),
63
+ y: t + n * Math.sin(c)
64
+ });
65
+ function st(s, t, n, c, a) {
66
+ const p = lt(s, t, n, c), r = lt(s, t, n, a), e = a - c <= Math.PI ? "0" : "1";
67
+ return ["M", p.x, p.y, "A", n, n, 0, e, 1, r.x, r.y].join(" ");
68
+ }
69
+ function It(s) {
70
+ const t = mt.c(59), {
71
+ mainText: n,
72
+ data: c,
73
+ radius: a,
74
+ colors: p,
75
+ subNote: r,
76
+ strokeWidth: e,
77
+ tooltip: l,
78
+ onSeriesMouseOver: x,
79
+ onSeriesMouseClick: f,
80
+ colorDomain: C,
81
+ resetSelectionOnDoubleClick: m,
82
+ detailsOnClick: g,
83
+ styles: b,
84
+ classNames: y,
85
+ precision: S,
86
+ animate: d,
87
+ trackColor: P
88
+ } = s, G = rt(null);
89
+ let h;
90
+ t[0] !== d.amount || t[1] !== d.once ? (h = {
91
+ once: d.once,
92
+ amount: d.amount
93
+ }, t[0] = d.amount, t[1] = d.once, t[2] = h) : h = t[2];
94
+ const D = jt(G, h), z = zt().sort(null).startAngle(0).value(Pt), [v, X] = tt(void 0), [j, M] = tt(void 0), [$, Y] = tt(void 0), [B, q] = tt(void 0), J = ot, K = `${a * 2}px`, Q = `${a * 2}px`, k = `0 0 ${a * 2} ${a * 2}`, E = "ltr", et = "mx-auto", F = ot, U = `translate(${a} ${a})`;
95
+ let I;
96
+ t[3] !== c || t[4] !== n || t[5] !== S || t[6] !== a || t[7] !== e || t[8] !== r ? (I = n || r ? /* @__PURE__ */ o.jsx("foreignObject", { y: 0 - (a - e), x: 0 - (a - e), width: 2 * (a - e), height: 2 * (a - e), children: /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-0.5 justify-center items-center h-inherit py-0 px-4", children: [
97
+ n ? /* @__PURE__ */ o.jsx(ft, { marginBottom: "none", className: "donut-main-text text-primary-gray-700 dark:text-primary-gray-100 leading-none text-center", children: typeof n == "string" ? n : c.findIndex((u) => u.label === n.label) !== -1 ? ct(c[c.findIndex((u) => u.label === n.label)].size, "NA", S, n.prefix, n.suffix) : "NA" }) : null,
98
+ r ? /* @__PURE__ */ o.jsx(it, { marginBottom: "none", size: "base", leading: "none", className: "donut-sub-note text-primary-gray-700 dark:text-primary-gray-100 text-center font-bold", children: r }) : typeof n == "string" || !n ? null : /* @__PURE__ */ o.jsx(it, { size: "base", marginBottom: "none", leading: "none", className: "donut-label text-primary-gray-700 dark:text-primary-gray-100 text-center font-bold", children: n.label })
99
+ ] }) }) : null, t[3] = c, t[4] = n, t[5] = S, t[6] = a, t[7] = e, t[8] = r, t[9] = I) : I = t[9];
100
+ const Z = a - e / 2;
101
+ let A;
102
+ t[10] !== e || t[11] !== Z || t[12] !== P ? (A = /* @__PURE__ */ o.jsx("circle", { cx: 0, cy: 0, r: Z, fill: "none", stroke: P, strokeWidth: e }), t[10] = e, t[11] = Z, t[12] = P, t[13] = A) : A = t[13];
103
+ const V = Mt;
104
+ let w;
105
+ t[14] !== d.duration || t[15] !== C || t[16] !== p || t[17] !== g || t[18] !== D || t[19] !== j || t[20] !== v || t[21] !== f || t[22] !== x || t[23] !== a || t[24] !== m || t[25] !== M || t[26] !== e ? (w = (u, ut) => /* @__PURE__ */ o.jsx(ot.path, { variants: {
106
+ initial: {
107
+ pathLength: 0,
108
+ d: st(0, 0, a - e / 2, u.startAngle - Math.PI / 2, u.endAngle - Math.PI / 2),
109
+ opacity: v ? v.label === u.data.label ? 1 : 0.3 : 1
110
+ },
111
+ whileInView: {
112
+ pathLength: 1,
113
+ d: st(0, 0, a - e / 2, u.startAngle - Math.PI / 2, u.endAngle - Math.PI / 2),
114
+ opacity: v ? v.label === u.data.label ? 1 : 0.3 : 1,
115
+ transition: {
116
+ duration: d.duration
117
+ }
118
+ }
119
+ }, initial: "initial", animate: D ? "whileInView" : "initial", exit: {
120
+ opacity: 0,
121
+ transition: {
122
+ duration: d.duration
123
+ }
124
+ }, style: {
125
+ stroke: C.indexOf(u.data.label) !== -1 ? p[C.indexOf(u.data.label) % p.length] : R.gray,
126
+ strokeWidth: e,
127
+ fill: "none"
128
+ }, onMouseEnter: (_) => {
129
+ X(u.data), q(_.clientY), Y(_.clientX), x?.(u);
177
130
  }, onClick: () => {
178
- (t || s) && (ve(g, C.data) && a ? (b(void 0), t?.(void 0)) : (b(C.data), t && t(C.data)));
179
- }, onMouseMove: (p) => {
180
- N(C.data), E(p.clientY), G(p.clientX);
131
+ (f || g) && (xt(j, u.data) && m ? (M(void 0), f?.(void 0)) : (M(u.data), f && f(u.data)));
132
+ }, onMouseMove: (_) => {
133
+ X(u.data), q(_.clientY), Y(_.clientX);
181
134
  }, onMouseLeave: () => {
182
- N(void 0), G(void 0), E(void 0), i?.(void 0);
183
- } }, z), e[7] = M, e[8] = j, e[9] = s, e[10] = g, e[11] = x, e[12] = t, e[13] = i, e[14] = l, e[15] = a, e[16] = b, e[17] = n, e[18] = Y) : Y = e[18];
184
- const S = d(A).map(Y);
135
+ X(void 0), Y(void 0), q(void 0), x?.(void 0);
136
+ } }, ut), t[14] = d.duration, t[15] = C, t[16] = p, t[17] = g, t[18] = D, t[19] = j, t[20] = v, t[21] = f, t[22] = x, t[23] = a, t[24] = m, t[25] = M, t[26] = e, t[27] = w) : w = t[27];
137
+ const i = z(c).map(w);
138
+ let N;
139
+ t[28] !== V || t[29] !== i ? (N = /* @__PURE__ */ o.jsx(V, { children: i }), t[28] = V, t[29] = i, t[30] = N) : N = t[30];
185
140
  let O;
186
- e[19] !== H || e[20] !== X || e[21] !== S ? (O = /* @__PURE__ */ v.jsxs("g", { transform: H, children: [
187
- X,
188
- S
189
- ] }), e[19] = H, e[20] = X, e[21] = S, e[22] = O) : O = e[22];
190
- let I;
191
- e[23] !== R || e[24] !== k || e[25] !== w || e[26] !== O ? (I = /* @__PURE__ */ v.jsx("svg", { width: R, height: k, viewBox: w, direction: o, className: u, children: O }), e[23] = R, e[24] = k, e[25] = w, e[26] = O, e[27] = I) : I = e[27];
192
- let F;
193
- e[28] !== h?.tooltip || e[29] !== D || e[30] !== $ || e[31] !== x || e[32] !== y?.tooltip || e[33] !== m ? (F = x && m && D && $ ? /* @__PURE__ */ v.jsx(be, { data: x, body: m, xPos: D, yPos: $, backgroundStyle: y?.tooltip, className: h?.tooltip }) : null, e[28] = h?.tooltip, e[29] = D, e[30] = $, e[31] = x, e[32] = y?.tooltip, e[33] = m, e[34] = F) : F = e[34];
194
- let q;
195
- e[35] !== h?.modal || e[36] !== s || e[37] !== g || e[38] !== b ? (q = s && g !== void 0 ? /* @__PURE__ */ v.jsx(Ae, { body: s, data: g, setData: b, className: h?.modal }) : null, e[35] = h?.modal, e[36] = s, e[37] = g, e[38] = b, e[39] = q) : q = e[39];
196
- let L;
197
- return e[40] !== I || e[41] !== F || e[42] !== q ? (L = /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
141
+ t[31] !== A || t[32] !== N || t[33] !== F.g || t[34] !== U || t[35] !== I ? (O = /* @__PURE__ */ o.jsxs(F.g, { transform: U, children: [
198
142
  I,
199
- F,
200
- q
201
- ] }), e[40] = I, e[41] = F, e[42] = q, e[43] = L) : L = e[43], L;
143
+ A,
144
+ N
145
+ ] }), t[31] = A, t[32] = N, t[33] = F.g, t[34] = U, t[35] = I, t[36] = O) : O = t[36];
146
+ let L;
147
+ t[37] !== J.svg || t[38] !== O || t[39] !== K || t[40] !== Q || t[41] !== k ? (L = /* @__PURE__ */ o.jsx(J.svg, { ref: G, width: K, height: Q, viewBox: k, direction: E, className: et, children: O }), t[37] = J.svg, t[38] = O, t[39] = K, t[40] = Q, t[41] = k, t[42] = L) : L = t[42];
148
+ let W;
149
+ t[43] !== y?.tooltip || t[44] !== $ || t[45] !== B || t[46] !== v || t[47] !== b?.tooltip || t[48] !== l ? (W = v && l && $ && B ? /* @__PURE__ */ o.jsx(yt, { data: v, body: l, xPos: $, yPos: B, backgroundStyle: b?.tooltip, className: y?.tooltip }) : null, t[43] = y?.tooltip, t[44] = $, t[45] = B, t[46] = v, t[47] = b?.tooltip, t[48] = l, t[49] = W) : W = t[49];
150
+ let H;
151
+ t[50] !== y?.modal || t[51] !== g || t[52] !== j || t[53] !== M ? (H = g && j !== void 0 ? /* @__PURE__ */ o.jsx(vt, { body: g, data: j, setData: M, className: y?.modal }) : null, t[50] = y?.modal, t[51] = g, t[52] = j, t[53] = M, t[54] = H) : H = t[54];
152
+ let nt;
153
+ return t[55] !== L || t[56] !== W || t[57] !== H ? (nt = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
154
+ L,
155
+ W,
156
+ H
157
+ ] }), t[55] = L, t[56] = W, t[57] = H, t[58] = nt) : nt = t[58], nt;
202
158
  }
203
- function He(r) {
204
- return r.size;
159
+ function Pt(s) {
160
+ return s.size;
205
161
  }
206
- function rn(r) {
162
+ function Zt(s) {
207
163
  const {
208
- mainText: e,
209
- graphTitle: c,
210
- colors: A = _.light.categoricalColors.colors,
211
- suffix: l = "",
212
- sources: j,
213
- prefix: f = "",
214
- strokeWidth: n = 50,
215
- graphDescription: m,
216
- subNote: i,
217
- footNote: t,
218
- radius: M,
219
- data: a,
220
- showColorScale: s = !0,
221
- padding: y,
222
- backgroundColor: h = !1,
223
- tooltip: T,
164
+ mainText: t,
165
+ graphTitle: n,
166
+ colors: c = R.light.categoricalColors.colors,
167
+ suffix: a = "",
168
+ sources: p,
169
+ prefix: r = "",
170
+ strokeWidth: e = 50,
171
+ graphDescription: l,
172
+ subNote: x,
173
+ footNote: f,
174
+ radius: C,
175
+ data: m,
176
+ showColorScale: g = !0,
177
+ padding: b,
178
+ backgroundColor: y = !1,
179
+ tooltip: S,
224
180
  onSeriesMouseOver: d,
225
- graphID: x,
226
- onSeriesMouseClick: N,
227
- graphDownload: g = !1,
228
- dataDownload: b = !1,
229
- colorDomain: D,
230
- sortData: G,
231
- language: $ = "en",
232
- theme: E = "light",
233
- width: R,
234
- height: k,
235
- minHeight: w = 0,
236
- relativeHeight: o,
237
- ariaLabel: u,
238
- resetSelectionOnDoubleClick: H = !0,
239
- colorScaleMaxWidth: X,
240
- detailsOnClick: Y,
241
- styles: S,
242
- classNames: O,
243
- precision: I = 2
244
- } = r, [F, q] = Z(0), L = ue(null), C = ue(null);
245
- pe(() => {
246
- const p = new ResizeObserver((J) => {
247
- q((Math.min(J[0].target.clientWidth || 620, J[0].target.clientHeight || 480, M || 1 / 0) || 420) / 2);
181
+ graphID: P,
182
+ onSeriesMouseClick: G,
183
+ graphDownload: h = !1,
184
+ dataDownload: D = !1,
185
+ colorDomain: z,
186
+ sortData: v,
187
+ language: X = "en",
188
+ theme: j = "light",
189
+ width: M,
190
+ height: $,
191
+ minHeight: Y = 0,
192
+ relativeHeight: B,
193
+ ariaLabel: q,
194
+ resetSelectionOnDoubleClick: J = !0,
195
+ colorScaleMaxWidth: K,
196
+ detailsOnClick: Q,
197
+ styles: k,
198
+ classNames: E,
199
+ precision: et = 2,
200
+ animate: F = !1,
201
+ trackColor: U = R.light.grays["gray-200"]
202
+ } = s, [I, Z] = tt(0), A = rt(null), V = rt(null);
203
+ pt(() => {
204
+ const i = new ResizeObserver((N) => {
205
+ Z((Math.min(N[0].target.clientWidth || 620, N[0].target.clientHeight || 480, C || 1 / 0) || 420) / 2);
248
206
  });
249
- return L.current && p.observe(L.current), () => p.disconnect();
250
- }, [M]);
251
- const z = G ? ye(a, ["size"], [G]) : a;
252
- return /* @__PURE__ */ v.jsxs(Re, { className: O?.graphContainer, style: S?.graphContainer, id: x, ref: C, "aria-label": u, backgroundColor: h, theme: E, language: $, minHeight: w, width: R, height: k, relativeHeight: o, padding: y, children: [
253
- c || m || g || b ? /* @__PURE__ */ v.jsx(Ne, { styles: {
254
- title: S?.title,
255
- description: S?.description
207
+ return A.current && i.observe(A.current), () => i.disconnect();
208
+ }, [C]);
209
+ const w = v ? gt(m, ["size"], [v]) : m;
210
+ return /* @__PURE__ */ o.jsxs(kt, { className: E?.graphContainer, style: k?.graphContainer, id: P, ref: V, "aria-label": q, backgroundColor: y, theme: j, language: X, minHeight: Y, width: M, height: $, relativeHeight: B, padding: b, children: [
211
+ n || l || h || D ? /* @__PURE__ */ o.jsx(Ct, { styles: {
212
+ title: k?.title,
213
+ description: k?.description
256
214
  }, classNames: {
257
- title: O?.title,
258
- description: O?.description
259
- }, graphTitle: c, graphDescription: m, width: R, graphDownload: g ? C : void 0, dataDownload: b ? a.map((p) => p.data).filter((p) => p !== void 0).length > 0 ? a.map((p) => p.data).filter((p) => p !== void 0) : a.filter((p) => p !== void 0) : null }) : null,
260
- a.length === 0 ? /* @__PURE__ */ v.jsx(Ce, {}) : /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
261
- s ? /* @__PURE__ */ v.jsx("div", { className: ge("leading-0 flex mb-0 ml-auto mr-auto justify-center gap-x-3 gap-y-0 flex-wrap", O?.colorLegend), style: {
262
- maxWidth: X
263
- }, "aria-label": "Color legend", children: z.map((p, J) => /* @__PURE__ */ v.jsxs("div", { className: "flex gap-2 items-center pb-3", children: [
264
- /* @__PURE__ */ v.jsx("div", { className: "w-3 h-3 rounded-full", style: {
265
- backgroundColor: (D || z.map((K) => K.label)).indexOf(p.label) !== -1 ? (A || _[E].categoricalColors.colors)[(D || z.map((K) => K.label)).indexOf(p.label) % (A || _[E].categoricalColors.colors).length] : _.gray
215
+ title: E?.title,
216
+ description: E?.description
217
+ }, graphTitle: n, graphDescription: l, width: M, graphDownload: h ? V : void 0, dataDownload: D ? m.map((i) => i.data).filter((i) => i !== void 0).length > 0 ? m.map((i) => i.data).filter((i) => i !== void 0) : m.filter((i) => i !== void 0) : null }) : null,
218
+ g && m.length > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
219
+ /* @__PURE__ */ o.jsx("div", { className: dt("leading-0 flex mb-0 ml-auto mr-auto justify-center gap-x-3 gap-y-0 flex-wrap", E?.colorLegend), style: {
220
+ maxWidth: K
221
+ }, "aria-label": "Color legend", children: w.map((i, N) => /* @__PURE__ */ o.jsxs("div", { className: "flex gap-2 items-center pb-3", children: [
222
+ /* @__PURE__ */ o.jsx("div", { className: "w-3 h-3 rounded-full", style: {
223
+ backgroundColor: (z || w.map((O) => O.label)).indexOf(i.label) !== -1 ? (c || R[j].categoricalColors.colors)[(z || w.map((O) => O.label)).indexOf(i.label) % (c || R[j].categoricalColors.colors).length] : R.gray
266
224
  } }),
267
- /* @__PURE__ */ v.jsxs(ie, { marginBottom: "none", size: "sm", className: "text-primary-gray-700 dark:text-primary-gray-100", children: [
268
- p.label,
225
+ /* @__PURE__ */ o.jsxs(it, { marginBottom: "none", size: "sm", className: "text-primary-gray-700 dark:text-primary-gray-100", children: [
226
+ i.label,
269
227
  ":",
270
228
  " ",
271
- /* @__PURE__ */ v.jsx("span", { className: "font-bold", style: {
229
+ /* @__PURE__ */ o.jsx("span", { className: "font-bold", style: {
272
230
  fontSize: "inherit"
273
- }, children: me(p.size, "NA", I, f, l) })
231
+ }, children: ct(i.size, "NA", et, r, a) })
274
232
  ] })
275
- ] }, J)) }) : null,
276
- /* @__PURE__ */ v.jsx(xe, { size: "lg" }),
277
- /* @__PURE__ */ v.jsx(ke, { ref: L, children: F ? /* @__PURE__ */ v.jsx(We, { mainText: e, data: z, colors: A, radius: F, subNote: i, strokeWidth: n, tooltip: T, colorDomain: D || z.map((p) => p.label), onSeriesMouseOver: d, onSeriesMouseClick: N, resetSelectionOnDoubleClick: H, styles: S, detailsOnClick: Y, precision: I }) : null })
233
+ ] }, N)) }),
234
+ /* @__PURE__ */ o.jsx(ht, { size: "lg" })
235
+ ] }) : null,
236
+ /* @__PURE__ */ o.jsxs(At, { ref: A, children: [
237
+ m.length === 0 && /* @__PURE__ */ o.jsx(Dt, {}),
238
+ I && m.length > 0 ? /* @__PURE__ */ o.jsx(It, { mainText: t, data: w, colors: c, radius: I, subNote: x, strokeWidth: e, tooltip: S, colorDomain: z || w.map((i) => i.label), onSeriesMouseOver: d, onSeriesMouseClick: G, resetSelectionOnDoubleClick: J, styles: k, detailsOnClick: Q, precision: et, animate: F === !0 ? {
239
+ duration: 0.5,
240
+ once: !0,
241
+ amount: 0.5
242
+ } : F || {
243
+ duration: 0,
244
+ once: !0,
245
+ amount: 0
246
+ }, trackColor: U }) : null
278
247
  ] }),
279
- j || t ? /* @__PURE__ */ v.jsx(De, { styles: {
280
- footnote: S?.footnote,
281
- source: S?.source
248
+ p || f ? /* @__PURE__ */ o.jsx(Nt, { styles: {
249
+ footnote: k?.footnote,
250
+ source: k?.source
282
251
  }, classNames: {
283
- footnote: O?.footnote,
284
- source: O?.source
285
- }, sources: j, footNote: t, width: R }) : null
252
+ footnote: E?.footnote,
253
+ source: E?.source
254
+ }, sources: p, footNote: f, width: M }) : null
286
255
  ] });
287
256
  }
288
257
  export {
289
- rn as DonutChart
258
+ Zt as DonutChart
290
259
  };
291
260
  //# sourceMappingURL=DonutChart.js.map