vue-chrts 0.2.3 → 0.2.5-test.1

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.
@@ -1,14 +1,14 @@
1
- import { defineComponent as C, useSlots as S, useTemplateRef as D, ref as N, computed as c, createElementBlock as y, openBlock as n, normalizeStyle as T, createVNode as g, createCommentVNode as m, createElementVNode as O, unref as i, withCtx as w, createBlock as u, Fragment as E, renderList as M, renderSlot as B } from "vue";
2
- import { Orientation as l, StackedBar as j, GroupedBar as z } from "@unovis/ts";
3
- import { getFirstPropertyValue as H } from "../../utils.js";
4
- import { useStackedGrouped as W } from "./stackedGroupedUtils.js";
5
- import { VisXYContainer as X, VisTooltip as Y, VisStackedBar as L, VisGroupedBar as $, VisAxis as A, VisBulletLegend as R } from "@unovis/vue";
6
- import q from "../Tooltip.js";
7
- import { LegendPosition as I } from "../../types.js";
8
- const U = {
1
+ import { defineComponent as W, useSlots as X, useTemplateRef as Y, ref as j, computed as k, createElementBlock as v, openBlock as l, normalizeStyle as L, createVNode as b, createCommentVNode as f, createElementVNode as H, unref as a, withCtx as $, createBlock as c, Fragment as q, renderList as I, renderSlot as C } from "vue";
2
+ import { Orientation as g, StackedBar as U, GroupedBar as J } from "@unovis/ts";
3
+ import { getFirstPropertyValue as K } from "../../utils.js";
4
+ import { useStackedGrouped as Q } from "./stackedGroupedUtils.js";
5
+ import { VisXYContainer as Z, VisXYLabels as _, VisTooltip as ee, VisStackedBar as F, VisGroupedBar as te, VisAxis as V, VisBulletLegend as ae } from "@unovis/vue";
6
+ import ie from "../Tooltip.js";
7
+ import { LegendPosition as ne } from "../../types.js";
8
+ const oe = {
9
9
  ref: "slotWrapper",
10
10
  style: { display: "none" }
11
- }, ae = /* @__PURE__ */ C({
11
+ }, ye = /* @__PURE__ */ W({
12
12
  __name: "BarChart",
13
13
  props: {
14
14
  data: {},
@@ -25,18 +25,19 @@ const U = {
25
25
  categories: {},
26
26
  xFormatter: {},
27
27
  yFormatter: {},
28
- yNumTicks: { default: (t) => t.data.length > 24 ? 24 / 4 : t.data.length - 1 },
28
+ yNumTicks: {},
29
29
  minMaxTicksOnly: { type: Boolean },
30
- xNumTicks: { default: (t) => t.data.length > 24 ? 24 / 4 : t.data.length - 1 },
30
+ xNumTicks: {},
31
31
  xExplicitTicks: {},
32
32
  yAxis: {},
33
- groupPadding: {},
34
- barPadding: {},
33
+ groupPadding: { default: 0 },
34
+ barPadding: { default: 0.2 },
35
35
  radius: {},
36
- hideLegend: { type: Boolean },
36
+ hideLegend: { type: Boolean, default: !1 },
37
37
  hideTooltip: { type: Boolean, default: !1 },
38
- orientation: { default: l.Vertical },
39
- legendPosition: {},
38
+ orientation: { default: g.Vertical },
39
+ legendPosition: { default: ne.BottomCenter },
40
+ legendStyle: { default: void 0 },
40
41
  xDomainLine: { type: Boolean },
41
42
  yDomainLine: { type: Boolean },
42
43
  xTickLine: { type: Boolean },
@@ -47,137 +48,174 @@ const U = {
47
48
  hideYAxis: { type: Boolean },
48
49
  stackedGroupedSpacing: { default: 0.1 },
49
50
  stackAndGrouped: { type: Boolean },
51
+ valueLabel: {},
50
52
  xAxis: {}
51
53
  },
52
54
  emits: ["click"],
53
- setup(t, { emit: V }) {
54
- const x = V, a = t, G = S(), k = D("slotWrapper"), r = N();
55
- if (!a.yAxis || a.yAxis.length === 0)
55
+ setup(e, { emit: G }) {
56
+ const S = G, t = e, O = X(), h = Y("slotWrapper"), u = j();
57
+ if (t.valueLabel && !t.xAxis)
58
+ throw new Error(
59
+ "BarChart: 'xAxis' prop is required when 'valueLabel' is enabled. Please provide an 'xAxis' to display value labels."
60
+ );
61
+ if (!t.yAxis || t.yAxis.length === 0)
56
62
  throw new Error("yAxis is required");
57
- const f = c(() => a.yAxis.map((e) => (d) => d[e])), v = (e, d) => {
58
- var o;
59
- return (o = Object.values(a.categories)[d]) == null ? void 0 : o.color;
60
- }, s = c(
61
- () => W({
62
- data: a.data,
63
- categories: a.categories,
64
- stackAndGrouped: a.stackAndGrouped,
65
- xAxis: a.xAxis,
66
- spacing: a.stackedGroupedSpacing
63
+ const A = k(() => t.yAxis.map((i) => (o) => o[i])), B = (i, o) => {
64
+ var n;
65
+ return (n = Object.values(t.categories)[o]) == null ? void 0 : n.color;
66
+ }, y = k(
67
+ () => Q({
68
+ data: t.data,
69
+ categories: t.categories,
70
+ stackAndGrouped: t.stackAndGrouped,
71
+ xAxis: t.xAxis,
72
+ spacing: t.stackedGroupedSpacing
67
73
  }).value
68
- ), h = c(
69
- () => a.legendPosition === I.Top
70
- );
71
- function b(e) {
72
- return r.value = e, P();
74
+ ), w = k(() => t.legendPosition.startsWith("top")), D = k(() => t.legendPosition.includes("left") ? "flex-start" : t.legendPosition.includes("right") ? "flex-end" : "center");
75
+ function T(i) {
76
+ return u.value = i, E();
73
77
  }
74
- function P(e) {
75
- return typeof window > "u" ? "" : k.value ? k.value.innerHTML : "";
78
+ function E(i) {
79
+ return typeof window > "u" ? "" : h.value ? h.value.innerHTML : "";
76
80
  }
77
- return (e, d) => (n(), y("div", {
78
- style: T({
81
+ const P = t.yAxis.map((i) => (o) => o[i]), N = P.length, z = t.data.flatMap(
82
+ (i, o) => P.map((n, s) => ({
83
+ x: o,
84
+ y: Number(n(i) ?? 0),
85
+ itemIndex: s
86
+ }))
87
+ ), M = (i) => {
88
+ if (t.stacked || t.stackAndGrouped) return i.x;
89
+ const o = N;
90
+ if (o <= 1) return i.x;
91
+ const s = 1 - (t.groupPadding ?? 0), m = s / o, x = -s / 2, r = m * i.itemIndex + m / 2, p = 1 - (t.barPadding ?? 0), R = (x + r) * p;
92
+ return i.x + R;
93
+ };
94
+ return (i, o) => (l(), v("div", {
95
+ style: L({
79
96
  display: "flex",
80
- flexDirection: h.value ? "column-reverse" : "column",
81
- gap: "1rem"
97
+ flexDirection: w.value ? "column-reverse" : "column",
98
+ gap: "var(--vis-legend-spacing)"
82
99
  }),
83
- onClick: d[0] || (d[0] = (o) => x("click", o, r.value))
100
+ onClick: o[0] || (o[0] = (n) => S("click", n, u.value))
84
101
  }, [
85
- g(i(X), {
102
+ b(a(Z), {
86
103
  padding: e.padding,
87
104
  height: e.height
88
105
  }, {
89
- default: w(() => [
90
- g(i(Y), {
91
- triggers: {
92
- [i(z).selectors.bar]: b,
93
- [i(j).selectors.bar]: b
94
- }
95
- }, null, 8, ["triggers"]),
96
- e.stackAndGrouped ? (n(!0), y(E, { key: 0 }, M(s.value.states, (o) => (n(), u(i(L), {
97
- key: o,
98
- data: s.value.chartData,
99
- x: (p, F) => F + s.value.positions[o],
100
- y: s.value.bars[o],
101
- color: s.value.colorFunctions[o],
102
- "rounded-corners": e.radius ?? 0,
103
- "group-padding": e.groupPadding ?? 0,
104
- "bar-padding": e.barPadding,
105
- orientation: e.orientation ?? i(l).Vertical
106
- }, null, 8, ["data", "x", "y", "color", "rounded-corners", "group-padding", "bar-padding", "orientation"]))), 128)) : e.stacked ? (n(), u(i(L), {
107
- key: 2,
108
- data: e.data,
109
- x: (o, p) => p,
110
- y: f.value,
111
- color: v,
112
- "rounded-corners": e.radius ?? 0,
113
- "group-padding": e.groupPadding ?? 0,
114
- "bar-padding": e.barPadding ?? 0.2,
115
- orientation: e.orientation ?? i(l).Vertical
116
- }, null, 8, ["data", "x", "y", "rounded-corners", "group-padding", "bar-padding", "orientation"])) : (n(), u(i($), {
117
- key: 1,
118
- data: e.data,
119
- x: (o, p) => p,
120
- y: f.value,
121
- color: v,
122
- "rounded-corners": e.radius ?? 0,
123
- "group-padding": e.groupPadding ?? 0,
124
- "bar-padding": e.barPadding ?? 0.2,
125
- orientation: e.orientation ?? i(l).Vertical
126
- }, null, 8, ["data", "x", "y", "rounded-corners", "group-padding", "bar-padding", "orientation"])),
127
- e.hideXAxis ? m("", !0) : (n(), u(i(A), {
128
- key: 3,
129
- type: "x",
130
- "tick-format": e.xFormatter,
131
- label: e.xLabel,
132
- "grid-line": e.xGridLine,
133
- "domain-line": !!e.xDomainLine,
134
- "tick-line": e.xTickLine,
135
- "num-ticks": e.xNumTicks,
136
- "tick-values": e.xExplicitTicks,
137
- minMaxTicksOnly: e.minMaxTicksOnly
138
- }, null, 8, ["tick-format", "label", "grid-line", "domain-line", "tick-line", "num-ticks", "tick-values", "minMaxTicksOnly"])),
139
- e.hideYAxis ? m("", !0) : (n(), u(i(A), {
140
- key: 4,
141
- type: "y",
142
- label: e.yLabel,
143
- "grid-line": e.orientation !== i(l).Horizontal && e.yGridLine,
144
- "domain-line": !!e.yDomainLine,
145
- "tick-format": e.yFormatter,
146
- "num-ticks": e.yNumTicks,
147
- "tick-line": e.yTickLine
148
- }, null, 8, ["label", "grid-line", "domain-line", "tick-format", "num-ticks", "tick-line"]))
149
- ]),
106
+ default: $(() => {
107
+ var n, s, m, x;
108
+ return [
109
+ e.valueLabel ? (l(), c(a(_), {
110
+ key: 0,
111
+ data: a(z),
112
+ x: M,
113
+ y: (r) => {
114
+ var d;
115
+ return r.y + (((d = t.valueLabel) == null ? void 0 : d.labelSpacing) ?? 0);
116
+ },
117
+ label: (n = t.valueLabel) == null ? void 0 : n.label,
118
+ backgroundColor: ((s = t.valueLabel) == null ? void 0 : s.backgroundColor) ?? "transparent",
119
+ color: ((m = t.valueLabel) == null ? void 0 : m.color) ?? "red",
120
+ labelFontSize: (x = t.valueLabel) == null ? void 0 : x.labelFontSize
121
+ }, null, 8, ["data", "y", "label", "backgroundColor", "color", "labelFontSize"])) : f("", !0),
122
+ b(a(ee), {
123
+ triggers: {
124
+ [a(J).selectors.bar]: T,
125
+ [a(U).selectors.bar]: T
126
+ }
127
+ }, null, 8, ["triggers"]),
128
+ e.stackAndGrouped ? (l(!0), v(q, { key: 1 }, I(y.value.states, (r) => (l(), c(a(F), {
129
+ key: r,
130
+ data: y.value.chartData,
131
+ x: (d, p) => p + y.value.positions[r],
132
+ y: y.value.bars[r],
133
+ color: y.value.colorFunctions[r],
134
+ "rounded-corners": e.radius ?? 0,
135
+ "group-padding": e.groupPadding ?? 0,
136
+ "bar-padding": e.barPadding,
137
+ orientation: e.orientation ?? a(g).Vertical
138
+ }, null, 8, ["data", "x", "y", "color", "rounded-corners", "group-padding", "bar-padding", "orientation"]))), 128)) : e.stacked ? (l(), c(a(F), {
139
+ key: 3,
140
+ data: e.data,
141
+ x: (r, d) => d,
142
+ y: A.value,
143
+ color: B,
144
+ "rounded-corners": e.radius ?? 0,
145
+ "group-padding": e.groupPadding ?? 0,
146
+ "bar-padding": e.barPadding ?? 0.2,
147
+ orientation: e.orientation ?? a(g).Vertical
148
+ }, null, 8, ["data", "x", "y", "rounded-corners", "group-padding", "bar-padding", "orientation"])) : (l(), c(a(te), {
149
+ key: 2,
150
+ data: e.data,
151
+ x: (r, d) => d,
152
+ y: A.value,
153
+ color: B,
154
+ "rounded-corners": e.radius ?? 0,
155
+ "group-padding": e.groupPadding ?? 0,
156
+ "bar-padding": e.barPadding ?? 0.2,
157
+ orientation: e.orientation ?? a(g).Vertical
158
+ }, null, 8, ["data", "x", "y", "rounded-corners", "group-padding", "bar-padding", "orientation"])),
159
+ e.hideXAxis ? f("", !0) : (l(), c(a(V), {
160
+ key: 4,
161
+ type: "x",
162
+ "tick-format": e.xFormatter,
163
+ label: e.xLabel,
164
+ "grid-line": e.xGridLine,
165
+ "domain-line": !!e.xDomainLine,
166
+ "tick-line": e.xTickLine,
167
+ "num-ticks": e.xNumTicks,
168
+ "tick-values": e.xExplicitTicks,
169
+ minMaxTicksOnly: e.minMaxTicksOnly
170
+ }, null, 8, ["tick-format", "label", "grid-line", "domain-line", "tick-line", "num-ticks", "tick-values", "minMaxTicksOnly"])),
171
+ e.hideYAxis ? f("", !0) : (l(), c(a(V), {
172
+ key: 5,
173
+ type: "y",
174
+ label: e.yLabel,
175
+ "grid-line": e.orientation !== a(g).Horizontal && e.yGridLine,
176
+ "domain-line": !!e.yDomainLine,
177
+ "tick-format": e.yFormatter,
178
+ "num-ticks": e.yNumTicks,
179
+ "tick-line": e.yTickLine
180
+ }, null, 8, ["label", "grid-line", "domain-line", "tick-format", "num-ticks", "tick-line"]))
181
+ ];
182
+ }),
150
183
  _: 1
151
184
  }, 8, ["padding", "height"]),
152
- e.hideLegend ? m("", !0) : (n(), y("div", {
185
+ t.hideLegend ? f("", !0) : (l(), v("div", {
153
186
  key: 0,
154
- style: T({
187
+ style: L({
155
188
  display: "flex",
156
- alignItems: "center",
157
- justifyContent: "flex-end",
158
- paddingBottom: h.value ? "1rem" : void 0
189
+ justifyContent: D.value
159
190
  })
160
191
  }, [
161
- g(i(R), {
162
- items: Object.values(a.categories)
163
- }, null, 8, ["items"])
192
+ b(a(ae), {
193
+ style: L([
194
+ t.legendStyle,
195
+ "display: flex; gap: var(--vis-legend-spacing);"
196
+ ]),
197
+ items: Object.values(t.categories).map((n) => ({
198
+ ...n,
199
+ color: Array.isArray(n.color) ? n.color[0] : n.color
200
+ }))
201
+ }, null, 8, ["style", "items"])
164
202
  ], 4)),
165
- O("div", U, [
166
- i(G).tooltip ? B(e.$slots, "tooltip", {
203
+ H("div", oe, [
204
+ a(O).tooltip ? C(i.$slots, "tooltip", {
167
205
  key: 0,
168
- values: r.value
169
- }) : r.value ? B(e.$slots, "fallback", { key: 1 }, () => [
170
- g(q, {
171
- data: r.value,
172
- categories: a.categories,
173
- toolTipTitle: i(H)(r.value) ?? "",
174
- yFormatter: a.orientation === i(l).Horizontal ? a.xFormatter : a.yFormatter
206
+ values: u.value
207
+ }) : u.value ? C(i.$slots, "fallback", { key: 1 }, () => [
208
+ b(ie, {
209
+ data: u.value,
210
+ categories: t.categories,
211
+ toolTipTitle: a(K)(u.value) ?? "",
212
+ yFormatter: t.orientation === a(g).Horizontal ? t.xFormatter : t.yFormatter
175
213
  }, null, 8, ["data", "categories", "toolTipTitle", "yFormatter"])
176
- ]) : m("", !0)
214
+ ]) : f("", !0)
177
215
  ], 512)
178
216
  ], 4));
179
217
  }
180
218
  });
181
219
  export {
182
- ae as default
220
+ ye as default
183
221
  };
@@ -7,7 +7,7 @@ declare const _default: <T extends {}>(__VLS_props: NonNullable<Awaited<typeof _
7
7
  attrs: any;
8
8
  slots: {
9
9
  tooltip?(_: {
10
- values: any;
10
+ values: T | undefined;
11
11
  }): any;
12
12
  fallback?(_: {}): any;
13
13
  };
@@ -2,7 +2,7 @@ import { ComputedRef } from 'vue';
2
2
  export interface StackedGroupedConfig<T> {
3
3
  data: T[];
4
4
  categories: Record<string, {
5
- color?: string;
5
+ color?: string | Array<string>;
6
6
  }>;
7
7
  stackAndGrouped: boolean;
8
8
  xAxis?: keyof T;
@@ -2,11 +2,11 @@ import { computed as u } from "vue";
2
2
  import { flattenData as i } from "../../utils.js";
3
3
  function g(t) {
4
4
  return u(() => {
5
- const e = p(t.categories), o = f(t.categories, e), r = d(o, t.categories), c = l(o), n = m(r), s = h(e, t.spacing), a = t.stackAndGrouped ? i(t.data, t.xAxis) : t.data;
5
+ const r = f(t.categories), e = p(t.categories, r), o = l(e, t.categories), c = d(e), n = m(o), s = y(r, t.spacing), a = t.stackAndGrouped ? i(t.data, t.xAxis) : t.data;
6
6
  return {
7
- states: e,
8
- groupedByState: o,
9
- colors: r,
7
+ states: r,
8
+ groupedByState: e,
9
+ colors: o,
10
10
  bars: c,
11
11
  colorFunctions: n,
12
12
  positions: s,
@@ -14,51 +14,52 @@ function g(t) {
14
14
  };
15
15
  });
16
16
  }
17
- function p(t) {
18
- const e = /* @__PURE__ */ new Set();
19
- return Object.keys(t).forEach((r) => {
20
- const c = r.match(/([A-Z][a-z]+)$/);
21
- c && e.add(c[1]);
22
- }), Array.from(e);
17
+ function f(t) {
18
+ const r = /* @__PURE__ */ new Set();
19
+ return Object.keys(t).forEach((o) => {
20
+ const c = o.match(/([A-Z][a-z]+)$/);
21
+ c && r.add(c[1]);
22
+ }), Array.from(r);
23
23
  }
24
- function f(t, e) {
25
- const o = {};
26
- return e.forEach((r) => {
27
- o[r] = Object.keys(t).filter(
28
- (c) => c.endsWith(r)
24
+ function p(t, r) {
25
+ const e = {};
26
+ return r.forEach((o) => {
27
+ e[o] = Object.keys(t).filter(
28
+ (c) => c.endsWith(o)
29
29
  );
30
- }), o;
31
- }
32
- function d(t, e) {
33
- const o = {};
34
- return Object.entries(t).forEach(([r, c]) => {
35
- o[r] = c.map((n) => {
36
- var s;
37
- return ((s = e[n]) == null ? void 0 : s.color) ?? "#ccc";
38
- });
39
- }), o;
30
+ }), e;
40
31
  }
41
- function l(t) {
32
+ function l(t, r) {
42
33
  const e = {};
43
- return Object.entries(t).forEach(([o, r]) => {
44
- e[o] = r.map((c) => {
45
- const n = c.replace(o, "").toLowerCase();
46
- return (s) => s[n + o];
34
+ return Object.entries(t).forEach(([o, c]) => {
35
+ e[o] = c.map((n) => {
36
+ var a;
37
+ const s = (a = r[n]) == null ? void 0 : a.color;
38
+ return Array.isArray(s) ? s[0] ?? "#ccc" : s ?? "#ccc";
47
39
  });
48
40
  }), e;
49
41
  }
42
+ function d(t) {
43
+ const r = {};
44
+ return Object.entries(t).forEach(([e, o]) => {
45
+ r[e] = o.map((c) => {
46
+ const n = c.replace(e, "").toLowerCase();
47
+ return (s) => s[n + e];
48
+ });
49
+ }), r;
50
+ }
50
51
  function m(t) {
51
- const e = {};
52
- return Object.entries(t).forEach(([o, r]) => {
53
- e[o] = (c, n) => r[n] ?? "#ccc";
54
- }), e;
52
+ const r = {};
53
+ return Object.entries(t).forEach(([e, o]) => {
54
+ r[e] = (c, n) => o[n] ?? "#ccc";
55
+ }), r;
55
56
  }
56
- function h(t, e = 0.4) {
57
- const o = t.length, r = {};
57
+ function y(t, r = 0.4) {
58
+ const e = t.length, o = {};
58
59
  return t.forEach((c, n) => {
59
- const s = (n - (o - 1) / 2) * e;
60
- r[c] = s;
61
- }), r;
60
+ const s = (n - (e - 1) / 2) * r;
61
+ o[c] = s;
62
+ }), o;
62
63
  }
63
64
  export {
64
65
  g as useStackedGrouped
@@ -66,7 +66,7 @@ type BarChartPropsBase<T> = {
66
66
  /**
67
67
  * Force specific ticks on the x-axis.
68
68
  */
69
- xExplicitTicks?: number;
69
+ xExplicitTicks?: (number | string | Date)[];
70
70
  /**
71
71
  * An array of property keys from the data object type 'T' to be used for the y-axis values.
72
72
  */
@@ -101,6 +101,10 @@ type BarChartPropsBase<T> = {
101
101
  * See `LegendPosition` for available options.
102
102
  */
103
103
  legendPosition?: LegendPosition;
104
+ /**
105
+ * Optional style object for the legend container. Allows custom CSS styling.
106
+ */
107
+ legendStyle?: string | Record<string, string>;
104
108
  /**
105
109
  * If `true`, displays a domain line (axis line) along the x-axis.
106
110
  */
@@ -133,23 +137,35 @@ type BarChartPropsBase<T> = {
133
137
  * If `true`, hide the y-axis.
134
138
  */
135
139
  hideYAxis?: boolean;
140
+ /**
141
+ * Specific spacing between stacked and grouped bars in pixels.
142
+ * Only applicable if `stackAndGrouped` is `true`.
143
+ */
136
144
  stackedGroupedSpacing?: number;
137
145
  };
138
- type BarChartPropsStackAndGrouped<T> = BarChartPropsBase<T> & {
139
- stackAndGrouped: true;
146
+ export type BarChartProps<T> = BarChartPropsBase<T> & {
140
147
  /**
141
- * The key in the data object type 'T' to be used for the x-axis values.
142
- * Required when stackAndGrouped is true.
148
+ * Whether the bars should be stacked and grouped.
149
+ * If true, `valueLabel` is optional and `xAxis` is required.
143
150
  */
144
- xAxis: keyof T;
145
- };
146
- type BarChartPropsNormal<T> = BarChartPropsBase<T> & {
147
- stackAndGrouped?: false;
151
+ stackAndGrouped?: boolean;
152
+ /**
153
+ * Configuration for the value label display.
154
+ * Required if `stackAndGrouped` is false and `xAxis` is present.
155
+ * Optional otherwise.
156
+ */
157
+ valueLabel?: ValueLabel;
148
158
  /**
149
- * The key in the data object type 'T' to be used for the x-axis values.
150
- * Optional when stackAndGrouped is not true.
159
+ * The data key for the X-axis.
160
+ * Required if `stackAndGrouped` is true, or if `stackAndGrouped` is false AND `valueLabel` is present.
151
161
  */
152
162
  xAxis?: keyof T;
153
163
  };
154
- export type BarChartProps<T> = BarChartPropsStackAndGrouped<T> | BarChartPropsNormal<T>;
164
+ export type ValueLabel = {
165
+ label: (d: any, index: number) => string | number;
166
+ labelSpacing?: number;
167
+ backgroundColor?: string;
168
+ color?: string;
169
+ labelFontSize?: number;
170
+ };
155
171
  export {};