@dou-ui/chart 0.0.0-stage → 0.1.0-alpha.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.
Files changed (237) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +10 -2
  3. package/dist/chart.js +6 -0
  4. package/dist/chart.js.map +1 -0
  5. package/dist/chart.vue_vue_type_script_setup_true_lang.js +4245 -0
  6. package/dist/chart.vue_vue_type_script_setup_true_lang.js.map +1 -0
  7. package/dist/components/area.js +6 -0
  8. package/dist/components/area.js.map +1 -0
  9. package/dist/components/area.vue_vue_type_script_setup_true_lang.js +55 -0
  10. package/dist/components/area.vue_vue_type_script_setup_true_lang.js.map +1 -0
  11. package/dist/components/axis.js +6 -0
  12. package/dist/components/axis.js.map +1 -0
  13. package/dist/components/axis.vue_vue_type_script_setup_true_lang.js +46 -0
  14. package/dist/components/axis.vue_vue_type_script_setup_true_lang.js.map +1 -0
  15. package/dist/components/bar.js +6 -0
  16. package/dist/components/bar.js.map +1 -0
  17. package/dist/components/bar.vue_vue_type_script_setup_true_lang.js +46 -0
  18. package/dist/components/bar.vue_vue_type_script_setup_true_lang.js.map +1 -0
  19. package/dist/components/boxplot.js +6 -0
  20. package/dist/components/boxplot.js.map +1 -0
  21. package/dist/components/boxplot.vue_vue_type_script_setup_true_lang.js +42 -0
  22. package/dist/components/boxplot.vue_vue_type_script_setup_true_lang.js.map +1 -0
  23. package/dist/components/brush.js +6 -0
  24. package/dist/components/brush.js.map +1 -0
  25. package/dist/components/brush.vue_vue_type_script_setup_true_lang.js +42 -0
  26. package/dist/components/brush.vue_vue_type_script_setup_true_lang.js.map +1 -0
  27. package/dist/components/funnel.js +6 -0
  28. package/dist/components/funnel.js.map +1 -0
  29. package/dist/components/funnel.vue_vue_type_script_setup_true_lang.js +41 -0
  30. package/dist/components/funnel.vue_vue_type_script_setup_true_lang.js.map +1 -0
  31. package/dist/components/gauge.js +6 -0
  32. package/dist/components/gauge.js.map +1 -0
  33. package/dist/components/gauge.vue_vue_type_script_setup_true_lang.js +91 -0
  34. package/dist/components/gauge.vue_vue_type_script_setup_true_lang.js.map +1 -0
  35. package/dist/components/heatmap.js +6 -0
  36. package/dist/components/heatmap.js.map +1 -0
  37. package/dist/components/heatmap.vue_vue_type_script_setup_true_lang.js +45 -0
  38. package/dist/components/heatmap.vue_vue_type_script_setup_true_lang.js.map +1 -0
  39. package/dist/components/histogram.js +6 -0
  40. package/dist/components/histogram.js.map +1 -0
  41. package/dist/components/histogram.vue_vue_type_script_setup_true_lang.js +61 -0
  42. package/dist/components/histogram.vue_vue_type_script_setup_true_lang.js.map +1 -0
  43. package/dist/components/line.js +6 -0
  44. package/dist/components/line.js.map +1 -0
  45. package/dist/components/line.vue_vue_type_script_setup_true_lang.js +52 -0
  46. package/dist/components/line.vue_vue_type_script_setup_true_lang.js.map +1 -0
  47. package/dist/components/marker.js +6 -0
  48. package/dist/components/marker.js.map +1 -0
  49. package/dist/components/marker.vue_vue_type_script_setup_true_lang.js +31 -0
  50. package/dist/components/marker.vue_vue_type_script_setup_true_lang.js.map +1 -0
  51. package/dist/components/pie.js +6 -0
  52. package/dist/components/pie.js.map +1 -0
  53. package/dist/components/pie.vue_vue_type_script_setup_true_lang.js +42 -0
  54. package/dist/components/pie.vue_vue_type_script_setup_true_lang.js.map +1 -0
  55. package/dist/components/radar.js +6 -0
  56. package/dist/components/radar.js.map +1 -0
  57. package/dist/components/radar.vue_vue_type_script_setup_true_lang.js +45 -0
  58. package/dist/components/radar.vue_vue_type_script_setup_true_lang.js.map +1 -0
  59. package/dist/components/range.js +6 -0
  60. package/dist/components/range.js.map +1 -0
  61. package/dist/components/range.vue_vue_type_script_setup_true_lang.js +27 -0
  62. package/dist/components/range.vue_vue_type_script_setup_true_lang.js.map +1 -0
  63. package/dist/components/scatter.js +6 -0
  64. package/dist/components/scatter.js.map +1 -0
  65. package/dist/components/scatter.vue_vue_type_script_setup_true_lang.js +45 -0
  66. package/dist/components/scatter.vue_vue_type_script_setup_true_lang.js.map +1 -0
  67. package/dist/components/sunburst.js +6 -0
  68. package/dist/components/sunburst.js.map +1 -0
  69. package/dist/components/sunburst.vue_vue_type_script_setup_true_lang.js +36 -0
  70. package/dist/components/sunburst.vue_vue_type_script_setup_true_lang.js.map +1 -0
  71. package/dist/components/tooltip.js +6 -0
  72. package/dist/components/tooltip.js.map +1 -0
  73. package/dist/components/tooltip.vue_vue_type_script_setup_true_lang.js +31 -0
  74. package/dist/components/tooltip.vue_vue_type_script_setup_true_lang.js.map +1 -0
  75. package/dist/components/treemap.js +6 -0
  76. package/dist/components/treemap.js.map +1 -0
  77. package/dist/components/treemap.vue_vue_type_script_setup_true_lang.js +33 -0
  78. package/dist/components/treemap.vue_vue_type_script_setup_true_lang.js.map +1 -0
  79. package/dist/components/waterfall.js +6 -0
  80. package/dist/components/waterfall.js.map +1 -0
  81. package/dist/components/waterfall.vue_vue_type_script_setup_true_lang.js +49 -0
  82. package/dist/components/waterfall.vue_vue_type_script_setup_true_lang.js.map +1 -0
  83. package/dist/components/zoom.js +6 -0
  84. package/dist/components/zoom.js.map +1 -0
  85. package/dist/components/zoom.vue_vue_type_script_setup_true_lang.js +37 -0
  86. package/dist/components/zoom.vue_vue_type_script_setup_true_lang.js.map +1 -0
  87. package/dist/context.js +30 -0
  88. package/dist/context.js.map +1 -0
  89. package/dist/core/bar.js +223 -0
  90. package/dist/core/bar.js.map +1 -0
  91. package/dist/core/box.js +150 -0
  92. package/dist/core/box.js.map +1 -0
  93. package/dist/core/colors.js +58 -0
  94. package/dist/core/colors.js.map +1 -0
  95. package/dist/core/data.js +257 -0
  96. package/dist/core/data.js.map +1 -0
  97. package/dist/core/decimate.js +211 -0
  98. package/dist/core/decimate.js.map +1 -0
  99. package/dist/core/format.js +151 -0
  100. package/dist/core/format.js.map +1 -0
  101. package/dist/core/funnel.js +68 -0
  102. package/dist/core/funnel.js.map +1 -0
  103. package/dist/core/grid.js +87 -0
  104. package/dist/core/grid.js.map +1 -0
  105. package/dist/core/heatmap.js +187 -0
  106. package/dist/core/heatmap.js.map +1 -0
  107. package/dist/core/histogram.js +81 -0
  108. package/dist/core/histogram.js.map +1 -0
  109. package/dist/core/hit.js +115 -0
  110. package/dist/core/hit.js.map +1 -0
  111. package/dist/core/labels.js +141 -0
  112. package/dist/core/labels.js.map +1 -0
  113. package/dist/core/layout.js +1002 -0
  114. package/dist/core/layout.js.map +1 -0
  115. package/dist/core/line.js +230 -0
  116. package/dist/core/line.js.map +1 -0
  117. package/dist/core/marker.js +205 -0
  118. package/dist/core/marker.js.map +1 -0
  119. package/dist/core/model.js +391 -0
  120. package/dist/core/model.js.map +1 -0
  121. package/dist/core/painter.js +79 -0
  122. package/dist/core/painter.js.map +1 -0
  123. package/dist/core/pattern.js +102 -0
  124. package/dist/core/pattern.js.map +1 -0
  125. package/dist/core/pie.js +119 -0
  126. package/dist/core/pie.js.map +1 -0
  127. package/dist/core/radar.js +83 -0
  128. package/dist/core/radar.js.map +1 -0
  129. package/dist/core/scale.js +149 -0
  130. package/dist/core/scale.js.map +1 -0
  131. package/dist/core/scatter.js +263 -0
  132. package/dist/core/scatter.js.map +1 -0
  133. package/dist/core/svg.js +209 -0
  134. package/dist/core/svg.js.map +1 -0
  135. package/dist/core/sync.js +21 -0
  136. package/dist/core/sync.js.map +1 -0
  137. package/dist/core/time.js +217 -0
  138. package/dist/core/time.js.map +1 -0
  139. package/dist/core/tree.js +348 -0
  140. package/dist/core/tree.js.map +1 -0
  141. package/dist/core/warn.js +11 -0
  142. package/dist/core/warn.js.map +1 -0
  143. package/dist/core/waterfall.js +134 -0
  144. package/dist/core/waterfall.js.map +1 -0
  145. package/dist/core/window.js +94 -0
  146. package/dist/core/window.js.map +1 -0
  147. package/dist/define.js +62 -0
  148. package/dist/define.js.map +1 -0
  149. package/dist/index.js +49 -0
  150. package/dist/index.js.map +1 -0
  151. package/dist/locale.js +170 -0
  152. package/dist/locale.js.map +1 -0
  153. package/dist/overlay.js +6 -0
  154. package/dist/overlay.js.map +1 -0
  155. package/dist/overlay.vue_vue_type_script_setup_true_lang.js +207 -0
  156. package/dist/overlay.vue_vue_type_script_setup_true_lang.js.map +1 -0
  157. package/dist/pointer.js +6 -0
  158. package/dist/pointer.js.map +1 -0
  159. package/dist/pointer.vue_vue_type_script_setup_true_lang.js +136 -0
  160. package/dist/pointer.vue_vue_type_script_setup_true_lang.js.map +1 -0
  161. package/dist/static.js +6 -0
  162. package/dist/static.js.map +1 -0
  163. package/dist/static.vue_vue_type_script_setup_true_lang.js +34 -0
  164. package/dist/static.vue_vue_type_script_setup_true_lang.js.map +1 -0
  165. package/dist/style.css +1 -0
  166. package/dist/style.d.ts +1 -0
  167. package/dist/style.js +3 -0
  168. package/dist/table.js +6 -0
  169. package/dist/table.js.map +1 -0
  170. package/dist/table.vue_vue_type_script_setup_true_lang.js +52 -0
  171. package/dist/table.vue_vue_type_script_setup_true_lang.js.map +1 -0
  172. package/dist/types/chart.vue.d.ts +24 -0
  173. package/dist/types/components/area.vue.d.ts +16 -0
  174. package/dist/types/components/axis.vue.d.ts +8 -0
  175. package/dist/types/components/bar.vue.d.ts +14 -0
  176. package/dist/types/components/boxplot.vue.d.ts +14 -0
  177. package/dist/types/components/brush.vue.d.ts +22 -0
  178. package/dist/types/components/funnel.vue.d.ts +14 -0
  179. package/dist/types/components/gauge.vue.d.ts +17 -0
  180. package/dist/types/components/heatmap.vue.d.ts +14 -0
  181. package/dist/types/components/histogram.vue.d.ts +14 -0
  182. package/dist/types/components/line.vue.d.ts +16 -0
  183. package/dist/types/components/marker.vue.d.ts +6 -0
  184. package/dist/types/components/pie.vue.d.ts +23 -0
  185. package/dist/types/components/radar.vue.d.ts +16 -0
  186. package/dist/types/components/range.vue.d.ts +12 -0
  187. package/dist/types/components/scatter.vue.d.ts +14 -0
  188. package/dist/types/components/sunburst.vue.d.ts +17 -0
  189. package/dist/types/components/tooltip.vue.d.ts +13 -0
  190. package/dist/types/components/treemap.vue.d.ts +8 -0
  191. package/dist/types/components/waterfall.vue.d.ts +16 -0
  192. package/dist/types/components/zoom.vue.d.ts +18 -0
  193. package/dist/types/context.d.ts +87 -0
  194. package/dist/types/core/bar.d.ts +38 -0
  195. package/dist/types/core/box.d.ts +25 -0
  196. package/dist/types/core/colors.d.ts +16 -0
  197. package/dist/types/core/data.d.ts +72 -0
  198. package/dist/types/core/decimate.d.ts +39 -0
  199. package/dist/types/core/format.d.ts +33 -0
  200. package/dist/types/core/funnel.d.ts +15 -0
  201. package/dist/types/core/grid.d.ts +18 -0
  202. package/dist/types/core/heatmap.d.ts +17 -0
  203. package/dist/types/core/histogram.d.ts +23 -0
  204. package/dist/types/core/hit.d.ts +31 -0
  205. package/dist/types/core/labels.d.ts +45 -0
  206. package/dist/types/core/layout.d.ts +259 -0
  207. package/dist/types/core/line.d.ts +36 -0
  208. package/dist/types/core/marker.d.ts +67 -0
  209. package/dist/types/core/model.d.ts +86 -0
  210. package/dist/types/core/painter.d.ts +34 -0
  211. package/dist/types/core/pattern.d.ts +14 -0
  212. package/dist/types/core/pie.d.ts +66 -0
  213. package/dist/types/core/radar.d.ts +12 -0
  214. package/dist/types/core/scale.d.ts +60 -0
  215. package/dist/types/core/scatter.d.ts +16 -0
  216. package/dist/types/core/series.d.ts +228 -0
  217. package/dist/types/core/svg.d.ts +63 -0
  218. package/dist/types/core/sync.d.ts +8 -0
  219. package/dist/types/core/time.d.ts +20 -0
  220. package/dist/types/core/tree.d.ts +84 -0
  221. package/dist/types/core/warn.d.ts +4 -0
  222. package/dist/types/core/waterfall.d.ts +24 -0
  223. package/dist/types/core/window.d.ts +36 -0
  224. package/dist/types/define.d.ts +115 -0
  225. package/dist/types/index.d.ts +363 -0
  226. package/dist/types/locale.d.ts +100 -0
  227. package/dist/types/overlay.vue.d.ts +95 -0
  228. package/dist/types/pointer.vue.d.ts +53 -0
  229. package/dist/types/static.vue.d.ts +24 -0
  230. package/dist/types/table.vue.d.ts +19 -0
  231. package/dist/types/types.d.ts +555 -0
  232. package/dist/types/zoom-layer.vue.d.ts +41 -0
  233. package/dist/zoom-layer.js +6 -0
  234. package/dist/zoom-layer.js.map +1 -0
  235. package/dist/zoom-layer.vue_vue_type_script_setup_true_lang.js +210 -0
  236. package/dist/zoom-layer.vue_vue_type_script_setup_true_lang.js.map +1 -0
  237. package/package.json +53 -4
@@ -0,0 +1,115 @@
1
+ import type { Tone } from 'dou-ui';
2
+ import { type ComponentObjectPropsOptions, type ExtractPropTypes, type PropType } from 'vue';
3
+ import type { ChartAccessor, ChartData } from './core/data';
4
+ import type { ChartSeriesKind, ChartValueAxis } from './core/series';
5
+ export interface ChartSeriesOptions<Props extends ComponentObjectPropsOptions> extends Omit<ChartSeriesKind<ExtractPropTypes<Props>>, 'draw'> {
6
+ /** Props of its own, declared as for any component; they reach `draw` on `series.props`. */
7
+ props?: Props;
8
+ /**
9
+ * Draws the series. `series` has its values read into columns (`x.values`,
10
+ * `top`), `view` the scales; `view.point(x, value)` gives where a value lands. Draw only through
11
+ * `painter`, and keep to the points on screen for large data.
12
+ */
13
+ draw: ChartSeriesKind<ExtractPropTypes<Props>>['draw'];
14
+ }
15
+ /**
16
+ * Makes a series component of your own. It sits in a `DouChart` like the
17
+ * built-in ones and gets the same axes, stacking, legend and colors:
18
+ * describe how it widens the axes (`zero`, `band`, `inset`) and how it draws.
19
+ *
20
+ * ```ts
21
+ * const DouChartLollipop = defineChartSeries({
22
+ * type: 'lollipop',
23
+ * zero: true,
24
+ * props: { radius: { type: Number, default: 4 } },
25
+ * draw(painter, series, view) { … },
26
+ * })
27
+ * ```
28
+ */
29
+ export declare function defineChartSeries<Props extends ComponentObjectPropsOptions = {}>(options: ChartSeriesOptions<Props>): import("vue").DefineComponent<ComponentObjectPropsOptions<{
30
+ [x: string]: unknown;
31
+ }> extends {
32
+ y: {
33
+ readonly type: PropType<ChartAccessor>;
34
+ readonly required: true;
35
+ };
36
+ name: StringConstructor;
37
+ data: PropType<ChartData>;
38
+ x: PropType<ChartAccessor>;
39
+ color: StringConstructor;
40
+ tone: PropType<Tone>;
41
+ axis: PropType<ChartValueAxis>;
42
+ stack: {
43
+ readonly type: PropType<string | boolean>;
44
+ readonly default: undefined;
45
+ };
46
+ hidden: BooleanConstructor;
47
+ } & Props ? {} : ExtractPropTypes<{
48
+ y: {
49
+ readonly type: PropType<ChartAccessor>;
50
+ readonly required: true;
51
+ };
52
+ name: StringConstructor;
53
+ data: PropType<ChartData>;
54
+ x: PropType<ChartAccessor>;
55
+ color: StringConstructor;
56
+ tone: PropType<Tone>;
57
+ axis: PropType<ChartValueAxis>;
58
+ stack: {
59
+ readonly type: PropType<string | boolean>;
60
+ readonly default: undefined;
61
+ };
62
+ hidden: BooleanConstructor;
63
+ } & Props>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:hidden"[], "update:hidden", import("vue").PublicProps, Readonly<ComponentObjectPropsOptions<{
64
+ [x: string]: unknown;
65
+ }> extends {
66
+ y: {
67
+ readonly type: PropType<ChartAccessor>;
68
+ readonly required: true;
69
+ };
70
+ name: StringConstructor;
71
+ data: PropType<ChartData>;
72
+ x: PropType<ChartAccessor>;
73
+ color: StringConstructor;
74
+ tone: PropType<Tone>;
75
+ axis: PropType<ChartValueAxis>;
76
+ stack: {
77
+ readonly type: PropType<string | boolean>;
78
+ readonly default: undefined;
79
+ };
80
+ hidden: BooleanConstructor;
81
+ } & Props ? {} : ExtractPropTypes<{
82
+ y: {
83
+ readonly type: PropType<ChartAccessor>;
84
+ readonly required: true;
85
+ };
86
+ name: StringConstructor;
87
+ data: PropType<ChartData>;
88
+ x: PropType<ChartAccessor>;
89
+ color: StringConstructor;
90
+ tone: PropType<Tone>;
91
+ axis: PropType<ChartValueAxis>;
92
+ stack: {
93
+ readonly type: PropType<string | boolean>;
94
+ readonly default: undefined;
95
+ };
96
+ hidden: BooleanConstructor;
97
+ } & Props>> & Readonly<{
98
+ "onUpdate:hidden"?: ((...args: any[]) => any) | undefined;
99
+ }>, import("vue").ExtractDefaultPropTypes<{
100
+ y: {
101
+ readonly type: PropType<ChartAccessor>;
102
+ readonly required: true;
103
+ };
104
+ name: StringConstructor;
105
+ data: PropType<ChartData>;
106
+ x: PropType<ChartAccessor>;
107
+ color: StringConstructor;
108
+ tone: PropType<Tone>;
109
+ axis: PropType<ChartValueAxis>;
110
+ stack: {
111
+ readonly type: PropType<string | boolean>;
112
+ readonly default: undefined;
113
+ };
114
+ hidden: BooleanConstructor;
115
+ } & Props>, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,363 @@
1
+ export declare const DouChart: import("dou-ui").WithInstall<{
2
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./types").ChartProps> & Readonly<{
3
+ onSelect?: ((event: import("./types").ChartPointEvent) => any) | undefined;
4
+ onHover?: ((event: import("./types").ChartPointEvent | null) => any) | undefined;
5
+ "onUpdate:table"?: ((value: boolean) => any) | undefined;
6
+ }>, import("./types").ChartExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ select: (event: import("./types").ChartPointEvent) => any;
8
+ hover: (event: import("./types").ChartPointEvent | null) => any;
9
+ "update:table": (value: boolean) => any;
10
+ }, import("vue").PublicProps, {
11
+ data: import("./index.js").ChartData;
12
+ legend: boolean;
13
+ height: string | number;
14
+ ssrWidth: number;
15
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
16
+ P: {};
17
+ B: {};
18
+ D: {};
19
+ C: {};
20
+ M: {};
21
+ Defaults: {};
22
+ }, Readonly<import("./types").ChartProps> & Readonly<{
23
+ onSelect?: ((event: import("./types").ChartPointEvent) => any) | undefined;
24
+ onHover?: ((event: import("./types").ChartPointEvent | null) => any) | undefined;
25
+ "onUpdate:table"?: ((value: boolean) => any) | undefined;
26
+ }>, import("./types").ChartExpose, {}, {}, {}, {
27
+ data: import("./index.js").ChartData;
28
+ legend: boolean;
29
+ height: string | number;
30
+ ssrWidth: number;
31
+ }>;
32
+ __isFragment?: never;
33
+ __isTeleport?: never;
34
+ __isSuspense?: never;
35
+ } & import("vue").ComponentOptionsBase<Readonly<import("./types").ChartProps> & Readonly<{
36
+ onSelect?: ((event: import("./types").ChartPointEvent) => any) | undefined;
37
+ onHover?: ((event: import("./types").ChartPointEvent | null) => any) | undefined;
38
+ "onUpdate:table"?: ((value: boolean) => any) | undefined;
39
+ }>, import("./types").ChartExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ select: (event: import("./types").ChartPointEvent) => any;
41
+ hover: (event: import("./types").ChartPointEvent | null) => any;
42
+ "update:table": (value: boolean) => any;
43
+ }, string, {
44
+ data: import("./index.js").ChartData;
45
+ legend: boolean;
46
+ height: string | number;
47
+ ssrWidth: number;
48
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
49
+ $slots: import("./types").ChartSlots;
50
+ }), import("vue").HTMLAttributes>;
51
+ export declare const DouChartAxis: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartAxisProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./types").ChartAxisProps> & Readonly<{}>, {
52
+ nice: boolean;
53
+ grid: boolean;
54
+ zero: boolean;
55
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
56
+ export declare const DouChartLine: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartLineProps & {
57
+ hidden?: boolean;
58
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
+ "update:hidden": (value: boolean) => any;
60
+ }, string, import("vue").PublicProps, Readonly<import("./types").ChartLineProps & {
61
+ hidden?: boolean;
62
+ }> & Readonly<{
63
+ "onUpdate:hidden"?: ((value: boolean) => any) | undefined;
64
+ }>, {
65
+ dots: boolean | "auto";
66
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
67
+ export declare const DouChartArea: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartAreaProps & {
68
+ hidden?: boolean;
69
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
70
+ "update:hidden": (value: boolean) => any;
71
+ }, string, import("vue").PublicProps, Readonly<import("./types").ChartAreaProps & {
72
+ hidden?: boolean;
73
+ }> & Readonly<{
74
+ "onUpdate:hidden"?: ((value: boolean) => any) | undefined;
75
+ }>, {
76
+ dots: boolean | "auto";
77
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
78
+ export declare const DouChartBar: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartBarProps & {
79
+ hidden?: boolean;
80
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
+ "update:hidden": (value: boolean) => any;
82
+ }, string, import("vue").PublicProps, Readonly<import("./types").ChartBarProps & {
83
+ hidden?: boolean;
84
+ }> & Readonly<{
85
+ "onUpdate:hidden"?: ((value: boolean) => any) | undefined;
86
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
87
+ export declare const DouChartScatter: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartScatterProps & {
88
+ hidden?: boolean;
89
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
90
+ "update:hidden": (value: boolean) => any;
91
+ }, string, import("vue").PublicProps, Readonly<import("./types").ChartScatterProps & {
92
+ hidden?: boolean;
93
+ }> & Readonly<{
94
+ "onUpdate:hidden"?: ((value: boolean) => any) | undefined;
95
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
96
+ export declare const DouChartPie: import("dou-ui").WithInstall<{
97
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./types").ChartPieProps & {
98
+ hidden?: string[];
99
+ }> & Readonly<{
100
+ "onUpdate:hidden"?: ((value: string[]) => any) | undefined;
101
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
102
+ "update:hidden": (value: string[]) => any;
103
+ }, import("vue").PublicProps, {
104
+ innerRadius: number;
105
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
106
+ P: {};
107
+ B: {};
108
+ D: {};
109
+ C: {};
110
+ M: {};
111
+ Defaults: {};
112
+ }, Readonly<import("./types").ChartPieProps & {
113
+ hidden?: string[];
114
+ }> & Readonly<{
115
+ "onUpdate:hidden"?: ((value: string[]) => any) | undefined;
116
+ }>, {}, {}, {}, {}, {
117
+ innerRadius: number;
118
+ }>;
119
+ __isFragment?: never;
120
+ __isTeleport?: never;
121
+ __isSuspense?: never;
122
+ } & import("vue").ComponentOptionsBase<Readonly<import("./types").ChartPieProps & {
123
+ hidden?: string[];
124
+ }> & Readonly<{
125
+ "onUpdate:hidden"?: ((value: string[]) => any) | undefined;
126
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
127
+ "update:hidden": (value: string[]) => any;
128
+ }, string, {
129
+ innerRadius: number;
130
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
131
+ $slots: import("./types").ChartPieSlots;
132
+ }), {}>;
133
+ export declare const DouChartHeatmap: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartHeatmapProps & {
134
+ hidden?: boolean;
135
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
136
+ "update:hidden": (value: boolean) => any;
137
+ }, string, import("vue").PublicProps, Readonly<import("./types").ChartHeatmapProps & {
138
+ hidden?: boolean;
139
+ }> & Readonly<{
140
+ "onUpdate:hidden"?: ((value: boolean) => any) | undefined;
141
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
142
+ export declare const DouChartRadar: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartRadarProps & {
143
+ hidden?: boolean;
144
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
145
+ "update:hidden": (value: boolean) => any;
146
+ }, string, import("vue").PublicProps, Readonly<import("./types").ChartRadarProps & {
147
+ hidden?: boolean;
148
+ }> & Readonly<{
149
+ "onUpdate:hidden"?: ((value: boolean) => any) | undefined;
150
+ }>, {
151
+ dots: boolean;
152
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
153
+ export declare const DouChartFunnel: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartFunnelProps & {
154
+ hidden?: boolean;
155
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
156
+ "update:hidden": (value: boolean) => any;
157
+ }, string, import("vue").PublicProps, Readonly<import("./types").ChartFunnelProps & {
158
+ hidden?: boolean;
159
+ }> & Readonly<{
160
+ "onUpdate:hidden"?: ((value: boolean) => any) | undefined;
161
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
162
+ export declare const DouChartWaterfall: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartWaterfallProps & {
163
+ hidden?: boolean;
164
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
165
+ "update:hidden": (value: boolean) => any;
166
+ }, string, import("vue").PublicProps, Readonly<import("./types").ChartWaterfallProps & {
167
+ hidden?: boolean;
168
+ }> & Readonly<{
169
+ "onUpdate:hidden"?: ((value: boolean) => any) | undefined;
170
+ }>, {
171
+ connectors: boolean;
172
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
173
+ export declare const DouChartHistogram: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartHistogramProps & {
174
+ hidden?: boolean;
175
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
176
+ "update:hidden": (value: boolean) => any;
177
+ }, string, import("vue").PublicProps, Readonly<import("./types").ChartHistogramProps & {
178
+ hidden?: boolean;
179
+ }> & Readonly<{
180
+ "onUpdate:hidden"?: ((value: boolean) => any) | undefined;
181
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
182
+ export declare const DouChartBoxplot: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartBoxplotProps & {
183
+ hidden?: boolean;
184
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
185
+ "update:hidden": (value: boolean) => any;
186
+ }, string, import("vue").PublicProps, Readonly<import("./types").ChartBoxplotProps & {
187
+ hidden?: boolean;
188
+ }> & Readonly<{
189
+ "onUpdate:hidden"?: ((value: boolean) => any) | undefined;
190
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
191
+ export declare const DouChartGauge: import("dou-ui").WithInstall<{
192
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./types").ChartGaugeProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
193
+ max: number;
194
+ min: number;
195
+ innerRadius: number;
196
+ endAngle: number;
197
+ startAngle: number;
198
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
199
+ P: {};
200
+ B: {};
201
+ D: {};
202
+ C: {};
203
+ M: {};
204
+ Defaults: {};
205
+ }, Readonly<import("./types").ChartGaugeProps> & Readonly<{}>, {}, {}, {}, {}, {
206
+ max: number;
207
+ min: number;
208
+ innerRadius: number;
209
+ endAngle: number;
210
+ startAngle: number;
211
+ }>;
212
+ __isFragment?: never;
213
+ __isTeleport?: never;
214
+ __isSuspense?: never;
215
+ } & import("vue").ComponentOptionsBase<Readonly<import("./types").ChartGaugeProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
216
+ max: number;
217
+ min: number;
218
+ innerRadius: number;
219
+ endAngle: number;
220
+ startAngle: number;
221
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
222
+ $slots: import("./types").ChartGaugeSlots;
223
+ }), {}>;
224
+ export declare const DouChartTreemap: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartTreeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./types").ChartTreeProps> & Readonly<{}>, {
225
+ label: import("./index.js").ChartAccessor;
226
+ labels: boolean | import("./types").ChartLabelFormat;
227
+ value: import("./index.js").ChartAccessor;
228
+ children: import("./index.js").ChartAccessor;
229
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
230
+ export declare const DouChartSunburst: import("dou-ui").WithInstall<{
231
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./types").ChartSunburstProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
232
+ label: import("./index.js").ChartAccessor;
233
+ labels: boolean | import("./types").ChartLabelFormat;
234
+ value: import("./index.js").ChartAccessor;
235
+ children: import("./index.js").ChartAccessor;
236
+ innerRadius: number;
237
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
238
+ P: {};
239
+ B: {};
240
+ D: {};
241
+ C: {};
242
+ M: {};
243
+ Defaults: {};
244
+ }, Readonly<import("./types").ChartSunburstProps> & Readonly<{}>, {}, {}, {}, {}, {
245
+ label: import("./index.js").ChartAccessor;
246
+ labels: boolean | import("./types").ChartLabelFormat;
247
+ value: import("./index.js").ChartAccessor;
248
+ children: import("./index.js").ChartAccessor;
249
+ innerRadius: number;
250
+ }>;
251
+ __isFragment?: never;
252
+ __isTeleport?: never;
253
+ __isSuspense?: never;
254
+ } & import("vue").ComponentOptionsBase<Readonly<import("./types").ChartSunburstProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
255
+ label: import("./index.js").ChartAccessor;
256
+ labels: boolean | import("./types").ChartLabelFormat;
257
+ value: import("./index.js").ChartAccessor;
258
+ children: import("./index.js").ChartAccessor;
259
+ innerRadius: number;
260
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
261
+ $slots: import("./types").ChartSunburstSlots;
262
+ }), {}>;
263
+ export declare const DouChartTooltip: import("dou-ui").WithInstall<{
264
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./types").ChartTooltipProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
265
+ crosshair: boolean;
266
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
267
+ P: {};
268
+ B: {};
269
+ D: {};
270
+ C: {};
271
+ M: {};
272
+ Defaults: {};
273
+ }, Readonly<import("./types").ChartTooltipProps> & Readonly<{}>, {}, {}, {}, {}, {
274
+ crosshair: boolean;
275
+ }>;
276
+ __isFragment?: never;
277
+ __isTeleport?: never;
278
+ __isSuspense?: never;
279
+ } & import("vue").ComponentOptionsBase<Readonly<import("./types").ChartTooltipProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
280
+ crosshair: boolean;
281
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
282
+ $slots: import("./types").ChartTooltipSlots;
283
+ }), {}>;
284
+ export declare const DouChartZoom: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartZoomProps & {
285
+ x?: import("./types").ChartInterval | null;
286
+ y?: import("./types").ChartInterval | null;
287
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
288
+ "update:x": (value: import("./types").ChartInterval | null) => any;
289
+ "update:y": (value: import("./types").ChartInterval | null) => any;
290
+ }, string, import("vue").PublicProps, Readonly<import("./types").ChartZoomProps & {
291
+ x?: import("./types").ChartInterval | null;
292
+ y?: import("./types").ChartInterval | null;
293
+ }> & Readonly<{
294
+ "onUpdate:x"?: ((value: import("./types").ChartInterval | null) => any) | undefined;
295
+ "onUpdate:y"?: ((value: import("./types").ChartInterval | null) => any) | undefined;
296
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
297
+ export declare const DouChartBrush: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartBrushProps & {
298
+ x?: import("./types").ChartInterval | null;
299
+ y?: import("./types").ChartInterval | null;
300
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
301
+ select: (event: import("./types").ChartBrushEvent) => any;
302
+ "update:x": (value: import("./types").ChartInterval | null) => any;
303
+ "update:y": (value: import("./types").ChartInterval | null) => any;
304
+ }, string, import("vue").PublicProps, Readonly<import("./types").ChartBrushProps & {
305
+ x?: import("./types").ChartInterval | null;
306
+ y?: import("./types").ChartInterval | null;
307
+ }> & Readonly<{
308
+ onSelect?: ((event: import("./types").ChartBrushEvent) => any) | undefined;
309
+ "onUpdate:x"?: ((value: import("./types").ChartInterval | null) => any) | undefined;
310
+ "onUpdate:y"?: ((value: import("./types").ChartInterval | null) => any) | undefined;
311
+ }>, {
312
+ dim: boolean;
313
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
314
+ export declare const DouChartRange: import("dou-ui").WithInstall<import("vue").DefineComponent<{
315
+ modelValue?: import("./types").ChartInterval | null;
316
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
317
+ "update:modelValue": (value: import("./types").ChartInterval | null) => any;
318
+ }, string, import("vue").PublicProps, Readonly<{
319
+ modelValue?: import("./types").ChartInterval | null;
320
+ }> & Readonly<{
321
+ "onUpdate:modelValue"?: ((value: import("./types").ChartInterval | null) => any) | undefined;
322
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
323
+ export declare const DouChartMarker: import("dou-ui").WithInstall<import("vue").DefineComponent<import("./types").ChartMarkerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./types").ChartMarkerProps> & Readonly<{}>, {
324
+ dashed: boolean;
325
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {}>;
326
+ export default DouChart;
327
+ export { defineChartSeries } from './define';
328
+ export type { ChartSeriesOptions } from './define';
329
+ export type { ChartAreaProps, ChartAxisProps, ChartBarProps, ChartBoxplotProps, ChartItemColor, ChartDataLabel, ChartLabelFormat, ChartBrushEvent, ChartBrushProps, ChartExportOptions, ChartEmits, ChartExpose, ChartFunnelProps, ChartGaugeProps, ChartGaugeSlots, ChartHeatmapProps, ChartHistogramProps, ChartImageOptions, ChartInterval, ChartLineProps, ChartMarkerProps, ChartPieProps, ChartPieSlots, ChartPointEvent, ChartRadarProps, ChartProps, ChartScatterProps, ChartSunburstProps, ChartSunburstSlots, ChartSlots, ChartTooltipItem, ChartTooltipProps, ChartTooltipSlots, ChartTreeProps, ChartTreemapProps, ChartWaterfallProps, ChartZoomAxis, ChartZoomProps, } from './types';
330
+ export type { ChartAccessor, ChartColumns, ChartData, ChartRow, XColumn as ChartXColumn, } from './core/data';
331
+ export type { ChartAxisRole, ChartAxisType, ChartLegendPlacement, ChartTickValue, } from './core/layout';
332
+ export type { ChartCategorySort } from './core/model';
333
+ export type { ChartPattern } from './core/pattern';
334
+ export type { Painter as ChartPainter, Rect as ChartRect } from './core/painter';
335
+ export type { Scale as ChartScale } from './core/scale';
336
+ export type { ChartColors, ChartHit, ChartSeries, ChartSeriesKind, ChartSeriesProps, ChartValueAxis, ChartView, } from './core/series';
337
+ export { chartLocales, useChartMessages } from './locale';
338
+ export type { ChartMessages, ChartMessagesOverride } from './locale';
339
+ declare module 'vue' {
340
+ interface GlobalComponents {
341
+ DouChart: typeof DouChart;
342
+ DouChartAxis: typeof DouChartAxis;
343
+ DouChartLine: typeof DouChartLine;
344
+ DouChartArea: typeof DouChartArea;
345
+ DouChartBar: typeof DouChartBar;
346
+ DouChartScatter: typeof DouChartScatter;
347
+ DouChartHeatmap: typeof DouChartHeatmap;
348
+ DouChartRadar: typeof DouChartRadar;
349
+ DouChartFunnel: typeof DouChartFunnel;
350
+ DouChartWaterfall: typeof DouChartWaterfall;
351
+ DouChartHistogram: typeof DouChartHistogram;
352
+ DouChartBoxplot: typeof DouChartBoxplot;
353
+ DouChartGauge: typeof DouChartGauge;
354
+ DouChartTreemap: typeof DouChartTreemap;
355
+ DouChartSunburst: typeof DouChartSunburst;
356
+ DouChartPie: typeof DouChartPie;
357
+ DouChartTooltip: typeof DouChartTooltip;
358
+ DouChartZoom: typeof DouChartZoom;
359
+ DouChartBrush: typeof DouChartBrush;
360
+ DouChartRange: typeof DouChartRange;
361
+ DouChartMarker: typeof DouChartMarker;
362
+ }
363
+ }
@@ -0,0 +1,100 @@
1
+ import { type MaybeRefOrGetter } from 'vue';
2
+ export interface ChartMessages {
3
+ /** The chart's accessible name when it has no `description`. */
4
+ chart: string;
5
+ /** Read out for each series: `{name}`, `{count}` points, from `{min}` to `{max}`. */
6
+ series: string;
7
+ /** Read out for a series without points: `{name}`. */
8
+ seriesEmpty: string;
9
+ /**
10
+ * Read out for a heatmap: `{name}`, `{rows}` rows and `{columns}` columns, the
11
+ * smallest `{min}` and largest `{max}` value and where it is, `{at}`.
12
+ */
13
+ heatmap: string;
14
+ /** Read out for a slice of a pie: `{label}`, `{value}`, `{share}` (a percentage). */
15
+ slice: string;
16
+ /** Read out for a pie with a `name`: `{name}`, `{slices}`. */
17
+ pie: string;
18
+ /** Joins the series in the summary. */
19
+ listSeparator: string;
20
+ /** Joins what is read out for one x or point. */
21
+ itemSeparator: string;
22
+ /** A slice's value in its tooltip: `{value}`, `{share}` (a percentage). */
23
+ share: string;
24
+ /** A band's two ends in its tooltip: `{from}`, `{to}`. */
25
+ band: string;
26
+ /** A waterfall's change and the running total after it: `{change}`, `{total}`. */
27
+ waterfallStep: string;
28
+ /** A box plot's numbers, in its tooltip: its top and bottom whisker, quartiles and median. */
29
+ boxHigh: string;
30
+ boxQ3: string;
31
+ boxMedian: string;
32
+ boxQ1: string;
33
+ boxLow: string;
34
+ /** The values past a box plot's whiskers: `{count}`. */
35
+ boxOutliers: string;
36
+ /** A box plot in the summary: `{name}`, `{count}` (its groups), `{min}`, `{max}`. */
37
+ boxSeries: string;
38
+ /** A histogram in the summary: `{name}`, `{count}` (its bins), `{min}`, `{max}` (counts). */
39
+ binsSeries: string;
40
+ /** A gauge, read out: `{name}`, `{value}`, `{min}`, `{max}`. */
41
+ gauge: string;
42
+ /** The same, for a gauge without a name. */
43
+ gaugeValue: string;
44
+ /** A box plot's numbers in one line, read out and in the table: `{median}`, `{q1}`, `{q3}`, `{low}`, `{high}`. */
45
+ box: string;
46
+ /** Read out with each legend entry: how to show it alone. */
47
+ legendHint: string;
48
+ /** Under a pie with slices turned off: `{count}`. */
49
+ hiddenSlices: string;
50
+ /** The summary of a chart that can be explored with the keys: `{summary}`. */
51
+ keys: string;
52
+ /** The same, for a chart that can also be zoomed: `{summary}`. */
53
+ zoomKeys: string;
54
+ /** Read out after zooming with the keys: `{from}`, `{to}`. */
55
+ zoomed: string;
56
+ /** Read out after going back to the whole chart. */
57
+ zoomReset: string;
58
+ /** The range strip's handles. */
59
+ rangeStart: string;
60
+ rangeEnd: string;
61
+ /** The chart with the range of its x axis: `{chart}`, `{from}`, `{to}`. */
62
+ range: string;
63
+ /** The same, for a `horizontal` chart, whose x axis runs down the side. */
64
+ rangeDown: string;
65
+ /** The summary: `{chart}` (with its range) and `{series}` (the series joined). */
66
+ summary: string;
67
+ /** Shown, and read out, when no series has a value. */
68
+ empty: string;
69
+ /** The table view's caption when the chart has no `aria-label` nor named series. */
70
+ table: string;
71
+ /** The table view's caption from its series' names: `{names}`. */
72
+ tableOf: string;
73
+ /** Joins the series' names in the table's caption. */
74
+ nameSeparator: string;
75
+ /** The table view's head over the series' names, for a scatter's points. */
76
+ tableSeries: string;
77
+ /** The table view's head over the values, for a scatter's points and a pie. */
78
+ tableValue: string;
79
+ /** The table view's head over a pie's shares. */
80
+ tableShare: string;
81
+ /** The table view's head over a tree's nodes. */
82
+ tableNode: string;
83
+ /** What a histogram counts, when it has no `name`. */
84
+ count: string;
85
+ /** A funnel stage's share of the stage before it, in its tooltip, table and summary. */
86
+ stageRate: string;
87
+ /** A funnel stage's share of the first stage. */
88
+ totalRate: string;
89
+ /** Under a table cut short: `{shown}` rows of `{count}`. */
90
+ tableMore: string;
91
+ }
92
+ export declare const chartLocales: Record<string, ChartMessages>;
93
+ export type ChartMessagesOverride = Partial<ChartMessages>;
94
+ /**
95
+ * The chart's texts, picked by the name of DouUI's current locale.
96
+ * Pass `messages` to override any of them.
97
+ */
98
+ export declare function useChartMessages(override?: MaybeRefOrGetter<ChartMessagesOverride | undefined>): import("vue").ComputedRef<ChartMessages>;
99
+ /** Fills `{name}` placeholders. */
100
+ export declare const format: (text: string, params: Record<string, string | number>) => string;