@icij/murmur-next 4.0.5 → 4.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/components/AccordionStep.vue.d.ts +79 -0
- package/dist/lib/components/AccordionWrapper.vue.d.ts +33 -0
- package/dist/lib/components/ActiveTextTruncate.vue.d.ts +101 -0
- package/dist/lib/components/AdvancedLinkForm.vue.d.ts +168 -0
- package/dist/lib/components/Brand.vue.d.ts +55 -0
- package/dist/lib/components/BrandExpansion.vue.d.ts +105 -0
- package/dist/lib/components/ConfirmButton.vue.d.ts +158 -0
- package/dist/lib/components/ContentPlaceholder.vue.d.ts +44 -0
- package/dist/lib/components/CustomPagination.vue.d.ts +130 -0
- package/dist/lib/components/DigitsInput.vue.d.ts +66 -0
- package/dist/lib/components/DonateForm.vue.d.ts +46 -0
- package/dist/lib/components/EmbedForm.vue.d.ts +121 -0
- package/dist/lib/components/EmbeddableFooter.vue.d.ts +103 -0
- package/dist/lib/components/FollowUsPopover.vue.d.ts +16 -0
- package/dist/lib/components/GenericFooter.vue.d.ts +47 -0
- package/dist/lib/components/GenericHeader.vue.d.ts +928 -0
- package/dist/lib/components/HapticCopy.vue.d.ts +156 -0
- package/dist/lib/components/ImddbHeader.vue.d.ts +960 -0
- package/dist/lib/components/OrdinalLegend.vue.d.ts +87 -0
- package/dist/lib/components/RangePicker.vue.d.ts +193 -0
- package/dist/lib/components/ResponsiveIframe.vue.d.ts +46 -0
- package/dist/lib/components/ScaleLegend.vue.d.ts +101 -0
- package/dist/lib/components/SecretInput.vue.d.ts +99 -0
- package/dist/lib/components/SelectableDropdown.vue.d.ts +210 -0
- package/dist/lib/components/SharingOptions.vue.d.ts +153 -0
- package/dist/lib/components/SharingOptionsLink.vue.d.ts +200 -0
- package/dist/lib/components/SignUpForm.vue.d.ts +141 -0
- package/dist/lib/components/SlideUpDown.vue.d.ts +74 -0
- package/dist/lib/components/TexturedDeck.vue.d.ts +89 -0
- package/dist/lib/components/TinyPagination.vue.d.ts +188 -0
- package/dist/lib/composables/chart.d.ts +48 -0
- package/dist/lib/composables/resizeObserver.d.ts +22 -0
- package/dist/lib/composables/sendEmail.d.ts +6 -0
- package/dist/lib/config.d.ts +19 -0
- package/dist/lib/config.default.d.ts +34 -0
- package/dist/lib/datavisualisations/BarChart.vue.d.ts +232 -0
- package/dist/lib/datavisualisations/ColumnChart.vue.d.ts +408 -0
- package/dist/lib/datavisualisations/LineChart.vue.d.ts +208 -0
- package/dist/lib/datavisualisations/StackedBarChart.vue.d.ts +338 -0
- package/dist/lib/datavisualisations/StackedColumnChart.vue.d.ts +412 -0
- package/dist/lib/enums.d.ts +32 -0
- package/dist/lib/i18n.d.ts +5 -0
- package/dist/lib/keys.d.ts +2 -0
- package/dist/lib/main.d.ts +61 -0
- package/dist/lib/maps/ChoroplethMap.vue.d.ts +466 -0
- package/dist/lib/maps/ChoroplethMapAnnotation.vue.d.ts +188 -0
- package/dist/lib/maps/SymbolMap.vue.d.ts +277 -0
- package/dist/lib/murmur.css +1 -0
- package/dist/lib/murmur.js +44934 -0
- package/dist/lib/murmur.js.map +1 -0
- package/dist/lib/murmur.umd.cjs +837 -0
- package/dist/lib/murmur.umd.cjs.map +1 -0
- package/dist/lib/types.d.ts +44 -0
- package/dist/lib/utils/animation.d.ts +8 -0
- package/dist/lib/utils/assets.d.ts +2 -0
- package/dist/lib/utils/clipboard.d.ts +2 -0
- package/dist/lib/utils/iframe-resizer.d.ts +11 -0
- package/dist/lib/utils/placeholder.d.ts +12 -0
- package/dist/lib/utils/placeholderTypes.d.ts +18 -0
- package/dist/lib/utils/strings.d.ts +1 -0
- package/lib/components/RangePicker.vue +3 -4
- package/lib/i18n.ts +5 -4
- package/lib/main.ts +22 -6
- package/package.json +6 -4
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/// <reference types="@/shims-vue" />
|
|
2
|
+
/// <reference types="vue-i18n" />
|
|
3
|
+
declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
4
|
+
chartHeightRatio: {
|
|
5
|
+
type: NumberConstructor;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
|
|
9
|
+
*/
|
|
10
|
+
data: {
|
|
11
|
+
default: () => string | any[];
|
|
12
|
+
validator(value: string): boolean;
|
|
13
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
14
|
+
};
|
|
15
|
+
dataUrlType: {
|
|
16
|
+
default: string;
|
|
17
|
+
validator(value: string): boolean;
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
20
|
+
socialMode: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
};
|
|
23
|
+
socialModeRatio: {
|
|
24
|
+
default: number;
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Height of each bar
|
|
29
|
+
*/
|
|
30
|
+
barHeight: {
|
|
31
|
+
type: NumberConstructor;
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Distance between each bar
|
|
36
|
+
*/
|
|
37
|
+
barGap: {
|
|
38
|
+
type: NumberConstructor;
|
|
39
|
+
default: number;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Color of each bar (uses the CSS variable --bar-color by default)
|
|
43
|
+
*/
|
|
44
|
+
barColor: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: null;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
|
|
50
|
+
*/
|
|
51
|
+
barHighlightColor: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: null;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Enforce a width for each bar's label
|
|
57
|
+
*/
|
|
58
|
+
fixedLabelWidth: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
default: null;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Enforce a width for each bar's value
|
|
64
|
+
*/
|
|
65
|
+
fixedValueWidth: {
|
|
66
|
+
type: NumberConstructor;
|
|
67
|
+
default: null;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Distance between a bar and its label
|
|
71
|
+
*/
|
|
72
|
+
labelGap: {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
default: number;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Distande between a bar and its value
|
|
78
|
+
*/
|
|
79
|
+
valueGap: {
|
|
80
|
+
type: NumberConstructor;
|
|
81
|
+
default: number;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Sort bars by one or several keys.
|
|
85
|
+
*/
|
|
86
|
+
sortBy: {
|
|
87
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
88
|
+
default: null;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Function to apply to format x axis ticks (bar value). It can be a
|
|
92
|
+
* function returning the formatted value or a d3's formatter string.
|
|
93
|
+
*/
|
|
94
|
+
xAxisTickFormat: {
|
|
95
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
96
|
+
default: () => {
|
|
97
|
+
<T>(value: T): T;
|
|
98
|
+
(): undefined;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}, {
|
|
102
|
+
el: import('../../node_modules/vue').Ref<null>;
|
|
103
|
+
dataHasHighlights: any;
|
|
104
|
+
width: import('../../node_modules/vue').Ref<number>;
|
|
105
|
+
height: import('../../node_modules/vue').ComputedRef<number>;
|
|
106
|
+
margin: import('../../node_modules/vue').ComputedRef<{
|
|
107
|
+
left: any;
|
|
108
|
+
right: number;
|
|
109
|
+
top: number;
|
|
110
|
+
bottom: number;
|
|
111
|
+
}>;
|
|
112
|
+
labels: import('../../node_modules/vue').ComputedRef<any>;
|
|
113
|
+
bars: import('../../node_modules/vue').ComputedRef<any>;
|
|
114
|
+
formatXDatum: (d: any) => any;
|
|
115
|
+
}, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, ("resized" | "loaded")[], "resized" | "loaded", import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
|
|
116
|
+
chartHeightRatio: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
|
|
121
|
+
*/
|
|
122
|
+
data: {
|
|
123
|
+
default: () => string | any[];
|
|
124
|
+
validator(value: string): boolean;
|
|
125
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
126
|
+
};
|
|
127
|
+
dataUrlType: {
|
|
128
|
+
default: string;
|
|
129
|
+
validator(value: string): boolean;
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
};
|
|
132
|
+
socialMode: {
|
|
133
|
+
type: BooleanConstructor;
|
|
134
|
+
};
|
|
135
|
+
socialModeRatio: {
|
|
136
|
+
default: number;
|
|
137
|
+
type: NumberConstructor;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Height of each bar
|
|
141
|
+
*/
|
|
142
|
+
barHeight: {
|
|
143
|
+
type: NumberConstructor;
|
|
144
|
+
default: number;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* Distance between each bar
|
|
148
|
+
*/
|
|
149
|
+
barGap: {
|
|
150
|
+
type: NumberConstructor;
|
|
151
|
+
default: number;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Color of each bar (uses the CSS variable --bar-color by default)
|
|
155
|
+
*/
|
|
156
|
+
barColor: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: null;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
|
|
162
|
+
*/
|
|
163
|
+
barHighlightColor: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
default: null;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Enforce a width for each bar's label
|
|
169
|
+
*/
|
|
170
|
+
fixedLabelWidth: {
|
|
171
|
+
type: NumberConstructor;
|
|
172
|
+
default: null;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Enforce a width for each bar's value
|
|
176
|
+
*/
|
|
177
|
+
fixedValueWidth: {
|
|
178
|
+
type: NumberConstructor;
|
|
179
|
+
default: null;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Distance between a bar and its label
|
|
183
|
+
*/
|
|
184
|
+
labelGap: {
|
|
185
|
+
type: NumberConstructor;
|
|
186
|
+
default: number;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Distande between a bar and its value
|
|
190
|
+
*/
|
|
191
|
+
valueGap: {
|
|
192
|
+
type: NumberConstructor;
|
|
193
|
+
default: number;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Sort bars by one or several keys.
|
|
197
|
+
*/
|
|
198
|
+
sortBy: {
|
|
199
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
200
|
+
default: null;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Function to apply to format x axis ticks (bar value). It can be a
|
|
204
|
+
* function returning the formatted value or a d3's formatter string.
|
|
205
|
+
*/
|
|
206
|
+
xAxisTickFormat: {
|
|
207
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
208
|
+
default: () => {
|
|
209
|
+
<T>(value: T): T;
|
|
210
|
+
(): undefined;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
}>> & {
|
|
214
|
+
onResized?: ((...args: any[]) => any) | undefined;
|
|
215
|
+
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
216
|
+
}, {
|
|
217
|
+
data: string | Record<string, any> | unknown[];
|
|
218
|
+
barHeight: number;
|
|
219
|
+
barGap: number;
|
|
220
|
+
barColor: string;
|
|
221
|
+
barHighlightColor: string;
|
|
222
|
+
fixedLabelWidth: number;
|
|
223
|
+
fixedValueWidth: number;
|
|
224
|
+
labelGap: number;
|
|
225
|
+
valueGap: number;
|
|
226
|
+
sortBy: string | unknown[];
|
|
227
|
+
xAxisTickFormat: string | Function;
|
|
228
|
+
dataUrlType: string;
|
|
229
|
+
socialMode: boolean;
|
|
230
|
+
socialModeRatio: number;
|
|
231
|
+
}, {}>;
|
|
232
|
+
export default _default;
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
/// <reference types="@/shims-vue" />
|
|
2
|
+
/// <reference types="vue-i18n" />
|
|
3
|
+
import { ComponentPublicInstance, PropType } from '../../node_modules/vue';
|
|
4
|
+
type ColumnBar = {
|
|
5
|
+
datum: {
|
|
6
|
+
[timeSerie: string]: any;
|
|
7
|
+
};
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
14
|
+
chartHeightRatio: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
};
|
|
17
|
+
data: {
|
|
18
|
+
default: () => string | any[]; /**
|
|
19
|
+
* Color of each highlighted column (uses the CSS variable --column-color by default)
|
|
20
|
+
*/
|
|
21
|
+
validator(value: string): boolean;
|
|
22
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
23
|
+
};
|
|
24
|
+
dataUrlType: {
|
|
25
|
+
default: string;
|
|
26
|
+
validator(value: string): boolean;
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
socialMode: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
};
|
|
32
|
+
socialModeRatio: {
|
|
33
|
+
default: number;
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Color of each column (uses the CSS variable --column-color by default)
|
|
38
|
+
*/
|
|
39
|
+
columnColor: {
|
|
40
|
+
type: PropType<string>;
|
|
41
|
+
default: null;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Color of each highlighted column (uses the CSS variable --column-color by default)
|
|
45
|
+
*/
|
|
46
|
+
columnHighlightColor: {
|
|
47
|
+
type: PropType<string>;
|
|
48
|
+
default: null;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Enforce the height of the chart (regardless of the width or the social mode)
|
|
52
|
+
*/
|
|
53
|
+
fixedHeight: {
|
|
54
|
+
type: PropType<number>;
|
|
55
|
+
default: null;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Enforce a width for each column's label
|
|
59
|
+
*/
|
|
60
|
+
fixedLabelWidth: {
|
|
61
|
+
type: PropType<number>;
|
|
62
|
+
default: null;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Name of the series (to get the value from in the data collection objects)
|
|
66
|
+
*/
|
|
67
|
+
seriesName: {
|
|
68
|
+
type: PropType<string>;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Hide x axis ticks when no enough space
|
|
73
|
+
*/
|
|
74
|
+
xAxisTickCollapse: {
|
|
75
|
+
type: PropType<boolean>;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Function to apply to format x axis ticks
|
|
80
|
+
*/
|
|
81
|
+
xAxisTickFormat: {
|
|
82
|
+
type: PropType<string | Function>;
|
|
83
|
+
default: () => {
|
|
84
|
+
<T>(value: T): T;
|
|
85
|
+
(): undefined;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Definition of x axis ticks
|
|
90
|
+
*/
|
|
91
|
+
xAxisTicks: {
|
|
92
|
+
type: PropType<string[] | null>;
|
|
93
|
+
default: null;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Function to apply to format y axis ticks
|
|
97
|
+
*/
|
|
98
|
+
yAxisTickFormat: {
|
|
99
|
+
type: PropType<string | Function>;
|
|
100
|
+
default: () => {
|
|
101
|
+
<T>(value: T): T;
|
|
102
|
+
(): undefined;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Definition of y axis ticks
|
|
107
|
+
*/
|
|
108
|
+
yAxisTicks: {
|
|
109
|
+
type: PropType<number | object>;
|
|
110
|
+
default: number;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Sort columns by one or several keys.
|
|
114
|
+
*/
|
|
115
|
+
sortBy: {
|
|
116
|
+
type: PropType<string | string[]>;
|
|
117
|
+
default: null;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Key to use for timeseries
|
|
121
|
+
*/
|
|
122
|
+
timeseriesKey: {
|
|
123
|
+
type: PropType<string>;
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Set max value instead of extracting it from the data.
|
|
128
|
+
*/
|
|
129
|
+
maxValue: {
|
|
130
|
+
type: PropType<number>;
|
|
131
|
+
default: null;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Hide bar tooltips
|
|
135
|
+
*/
|
|
136
|
+
noTooltips: {
|
|
137
|
+
type: PropType<boolean>;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Hide x axis
|
|
141
|
+
*/
|
|
142
|
+
noXAxis: {
|
|
143
|
+
type: PropType<boolean>;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Hide y axis
|
|
147
|
+
*/
|
|
148
|
+
noYAxis: {
|
|
149
|
+
type: PropType<boolean>;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Bar padding as a portion of each bar width
|
|
153
|
+
*/
|
|
154
|
+
barPadding: {
|
|
155
|
+
type: PropType<number>;
|
|
156
|
+
default: number;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Bar margin in pixel
|
|
160
|
+
*/
|
|
161
|
+
barMargin: {
|
|
162
|
+
type: PropType<number>;
|
|
163
|
+
default: number;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* A list of highlighted key
|
|
167
|
+
*/
|
|
168
|
+
highlights: {
|
|
169
|
+
type: PropType<string[]>;
|
|
170
|
+
default: () => never[];
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Show a "placeholder" behind every bar
|
|
174
|
+
*/
|
|
175
|
+
stripped: {
|
|
176
|
+
type: PropType<boolean>;
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Show a "placeholder" behind every bar on hover
|
|
180
|
+
*/
|
|
181
|
+
hover: {
|
|
182
|
+
type: PropType<boolean>;
|
|
183
|
+
};
|
|
184
|
+
}, {
|
|
185
|
+
el: import('../../node_modules/vue').Ref<ComponentPublicInstance<HTMLElement> | null>;
|
|
186
|
+
dataHasHighlights: any;
|
|
187
|
+
width: import('../../node_modules/vue').Ref<number>;
|
|
188
|
+
height: import('../../node_modules/vue').Ref<number>;
|
|
189
|
+
margin: import('../../node_modules/vue').ComputedRef<{
|
|
190
|
+
left: number;
|
|
191
|
+
right: number;
|
|
192
|
+
top: number;
|
|
193
|
+
bottom: number;
|
|
194
|
+
}>;
|
|
195
|
+
padded: import('../../node_modules/vue').ComputedRef<{
|
|
196
|
+
width: number;
|
|
197
|
+
height: number;
|
|
198
|
+
}>;
|
|
199
|
+
shownTooltip: import('../../node_modules/vue').Ref<number>;
|
|
200
|
+
bars: import('../../node_modules/vue').ComputedRef<ColumnBar[]>;
|
|
201
|
+
select: ({ datum }: {
|
|
202
|
+
datum: any;
|
|
203
|
+
}) => void;
|
|
204
|
+
highlighted: (datum: any) => boolean;
|
|
205
|
+
barTooltipStyle: (bar: {
|
|
206
|
+
x: number;
|
|
207
|
+
y: number;
|
|
208
|
+
width: number;
|
|
209
|
+
}) => {
|
|
210
|
+
top: string;
|
|
211
|
+
left: string;
|
|
212
|
+
};
|
|
213
|
+
formatYDatum: (d: any) => any;
|
|
214
|
+
formatXDatum: (d: any) => any;
|
|
215
|
+
}, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
|
|
216
|
+
chartHeightRatio: {
|
|
217
|
+
type: NumberConstructor;
|
|
218
|
+
};
|
|
219
|
+
data: {
|
|
220
|
+
default: () => string | any[]; /**
|
|
221
|
+
* Color of each highlighted column (uses the CSS variable --column-color by default)
|
|
222
|
+
*/
|
|
223
|
+
validator(value: string): boolean;
|
|
224
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
225
|
+
};
|
|
226
|
+
dataUrlType: {
|
|
227
|
+
default: string;
|
|
228
|
+
validator(value: string): boolean;
|
|
229
|
+
type: StringConstructor;
|
|
230
|
+
};
|
|
231
|
+
socialMode: {
|
|
232
|
+
type: BooleanConstructor;
|
|
233
|
+
};
|
|
234
|
+
socialModeRatio: {
|
|
235
|
+
default: number;
|
|
236
|
+
type: NumberConstructor;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* Color of each column (uses the CSS variable --column-color by default)
|
|
240
|
+
*/
|
|
241
|
+
columnColor: {
|
|
242
|
+
type: PropType<string>;
|
|
243
|
+
default: null;
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* Color of each highlighted column (uses the CSS variable --column-color by default)
|
|
247
|
+
*/
|
|
248
|
+
columnHighlightColor: {
|
|
249
|
+
type: PropType<string>;
|
|
250
|
+
default: null;
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Enforce the height of the chart (regardless of the width or the social mode)
|
|
254
|
+
*/
|
|
255
|
+
fixedHeight: {
|
|
256
|
+
type: PropType<number>;
|
|
257
|
+
default: null;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* Enforce a width for each column's label
|
|
261
|
+
*/
|
|
262
|
+
fixedLabelWidth: {
|
|
263
|
+
type: PropType<number>;
|
|
264
|
+
default: null;
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* Name of the series (to get the value from in the data collection objects)
|
|
268
|
+
*/
|
|
269
|
+
seriesName: {
|
|
270
|
+
type: PropType<string>;
|
|
271
|
+
default: string;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Hide x axis ticks when no enough space
|
|
275
|
+
*/
|
|
276
|
+
xAxisTickCollapse: {
|
|
277
|
+
type: PropType<boolean>;
|
|
278
|
+
default: boolean;
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* Function to apply to format x axis ticks
|
|
282
|
+
*/
|
|
283
|
+
xAxisTickFormat: {
|
|
284
|
+
type: PropType<string | Function>;
|
|
285
|
+
default: () => {
|
|
286
|
+
<T>(value: T): T;
|
|
287
|
+
(): undefined;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* Definition of x axis ticks
|
|
292
|
+
*/
|
|
293
|
+
xAxisTicks: {
|
|
294
|
+
type: PropType<string[] | null>;
|
|
295
|
+
default: null;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* Function to apply to format y axis ticks
|
|
299
|
+
*/
|
|
300
|
+
yAxisTickFormat: {
|
|
301
|
+
type: PropType<string | Function>;
|
|
302
|
+
default: () => {
|
|
303
|
+
<T>(value: T): T;
|
|
304
|
+
(): undefined;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* Definition of y axis ticks
|
|
309
|
+
*/
|
|
310
|
+
yAxisTicks: {
|
|
311
|
+
type: PropType<number | object>;
|
|
312
|
+
default: number;
|
|
313
|
+
};
|
|
314
|
+
/**
|
|
315
|
+
* Sort columns by one or several keys.
|
|
316
|
+
*/
|
|
317
|
+
sortBy: {
|
|
318
|
+
type: PropType<string | string[]>;
|
|
319
|
+
default: null;
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* Key to use for timeseries
|
|
323
|
+
*/
|
|
324
|
+
timeseriesKey: {
|
|
325
|
+
type: PropType<string>;
|
|
326
|
+
default: string;
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* Set max value instead of extracting it from the data.
|
|
330
|
+
*/
|
|
331
|
+
maxValue: {
|
|
332
|
+
type: PropType<number>;
|
|
333
|
+
default: null;
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* Hide bar tooltips
|
|
337
|
+
*/
|
|
338
|
+
noTooltips: {
|
|
339
|
+
type: PropType<boolean>;
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* Hide x axis
|
|
343
|
+
*/
|
|
344
|
+
noXAxis: {
|
|
345
|
+
type: PropType<boolean>;
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* Hide y axis
|
|
349
|
+
*/
|
|
350
|
+
noYAxis: {
|
|
351
|
+
type: PropType<boolean>;
|
|
352
|
+
};
|
|
353
|
+
/**
|
|
354
|
+
* Bar padding as a portion of each bar width
|
|
355
|
+
*/
|
|
356
|
+
barPadding: {
|
|
357
|
+
type: PropType<number>;
|
|
358
|
+
default: number;
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* Bar margin in pixel
|
|
362
|
+
*/
|
|
363
|
+
barMargin: {
|
|
364
|
+
type: PropType<number>;
|
|
365
|
+
default: number;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* A list of highlighted key
|
|
369
|
+
*/
|
|
370
|
+
highlights: {
|
|
371
|
+
type: PropType<string[]>;
|
|
372
|
+
default: () => never[];
|
|
373
|
+
};
|
|
374
|
+
/**
|
|
375
|
+
* Show a "placeholder" behind every bar
|
|
376
|
+
*/
|
|
377
|
+
stripped: {
|
|
378
|
+
type: PropType<boolean>;
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* Show a "placeholder" behind every bar on hover
|
|
382
|
+
*/
|
|
383
|
+
hover: {
|
|
384
|
+
type: PropType<boolean>;
|
|
385
|
+
};
|
|
386
|
+
}>>, {
|
|
387
|
+
data: string | Record<string, any> | unknown[];
|
|
388
|
+
fixedLabelWidth: number;
|
|
389
|
+
sortBy: string | string[];
|
|
390
|
+
xAxisTickFormat: string | Function;
|
|
391
|
+
dataUrlType: string;
|
|
392
|
+
socialMode: boolean;
|
|
393
|
+
socialModeRatio: number;
|
|
394
|
+
columnColor: string;
|
|
395
|
+
columnHighlightColor: string;
|
|
396
|
+
fixedHeight: number;
|
|
397
|
+
seriesName: string;
|
|
398
|
+
xAxisTickCollapse: boolean;
|
|
399
|
+
xAxisTicks: string[] | null;
|
|
400
|
+
yAxisTickFormat: string | Function;
|
|
401
|
+
yAxisTicks: number | object;
|
|
402
|
+
timeseriesKey: string;
|
|
403
|
+
maxValue: number;
|
|
404
|
+
barPadding: number;
|
|
405
|
+
barMargin: number;
|
|
406
|
+
highlights: string[];
|
|
407
|
+
}, {}>;
|
|
408
|
+
export default _default;
|