eurostat-map 4.10.9 → 4.10.11
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/build/215.eurostatmap.min.js +1 -1
- package/build/eurostatmap.js +2757 -2689
- package/build/eurostatmap.min.js +2 -2
- package/build/eurostatmap.min.js.map +1 -1
- package/build/package.json +1 -1
- package/build/types/core/InsetConfig.d.ts +92 -71
- package/build/types/core/MapConfig.d.ts +103 -12
- package/build/types/core/MapInstance.d.ts +624 -555
- package/build/types/core/TooltipConfig.d.ts +33 -5
- package/build/types/core/decoration/PatternFillConfig.d.ts +34 -0
- package/build/types/core/geo/geometries.d.ts +13 -1
- package/build/types/core/layer/Layer.d.ts +49 -31
- package/build/types/core/minimaps.d.ts +11 -3
- package/build/types/core/stat/StatData.d.ts +2 -2
- package/build/types/core/utils.d.ts +44 -0
- package/build/types/index.d.ts +37 -6
- package/build/types/layers/CategoricalMap.d.ts +9 -9
- package/build/types/layers/choropleth/BivariateChoroplethConfig.d.ts +3 -0
- package/build/types/layers/choropleth/BivariateChoroplethMap.d.ts +9 -6
- package/build/types/layers/choropleth/ChoroplethConfig.d.ts +3 -3
- package/build/types/layers/choropleth/ChoroplethMap.d.ts +16 -4
- package/build/types/layers/choropleth/TrivariateChoroplethMap.d.ts +4 -0
- package/build/types/layers/choropleth/ValueByAlphaMap.d.ts +4 -3
- package/build/types/layers/composition/bar/BarMap.d.ts +170 -97
- package/build/types/layers/composition/bar/BarMapConfig.d.ts +83 -76
- package/build/types/layers/composition/coxcomb/CoxcombMap.d.ts +7 -6
- package/build/types/layers/composition/coxcomb/CoxcombMapConfig.d.ts +2 -2
- package/build/types/layers/composition/pie/PieMap.d.ts +8 -4
- package/build/types/layers/composition/pie/PieMapConfig.d.ts +0 -4
- package/build/types/layers/composition/stripe/StripeMap.d.ts +4 -4
- package/build/types/layers/composition/waffle/WaffleMap.d.ts +4 -4
- package/build/types/layers/flow/FlowMap.d.ts +8 -8
- package/build/types/layers/proportional-symbol/ProportionalSymbolConfig.d.ts +105 -52
- package/build/types/layers/proportional-symbol/ProportionalSymbolMap.d.ts +104 -100
- package/build/types/layers/proportional-symbol/mushroom/MushroomMap.d.ts +16 -12
- package/build/types/layers/spark/SparkMap.d.ts +14 -8
- package/build/types/layers/spark/SparkMapConfig.d.ts +8 -12
- package/build/types/legend/LegendConfig.d.ts +72 -73
- package/build/types/legend/MushroomLegendConfig.d.ts +15 -0
- package/build/types/legend/choropleth/BivariateLegendConfig.d.ts +6 -6
- package/build/types/legend/choropleth/TrivariateLegendConfig.d.ts +5 -5
- package/build/types/legend/composition/BarChartLegendConfig.d.ts +32 -0
- package/build/types/legend/composition/StripeCompositionLegendConfig.d.ts +34 -2
- package/package.json +1 -1
- package/build/types/core/MinimapConfig.d.ts +0 -11
- package/build/types/legend/CoxcombLegendConfig.d.ts +0 -85
- package/build/types/legend/PieChartLegendConfig.d.ts +0 -68
- package/build/types/legend/SparklineLegendConfig.d.ts +0 -6
- package/build/types/legend/StripeCompositionLegendConfig.d.ts +0 -11
- package/build/types/legend/WaffleLegendConfig.d.ts +0 -74
- package/build/types/legend/choropleth/legend-choropleth-bivariate.d.ts +0 -2
- package/build/types/legend/choropleth/legend-choropleth-trivariate.d.ts +0 -2
- package/build/types/legend/choropleth/legend-choropleth.d.ts +0 -2
- package/build/types/legend/composition/legend-bar-chart.d.ts +0 -2
- package/build/types/legend/flow/legend-flow.d.ts +0 -2
- package/build/types/legend/legend-categorical.d.ts +0 -2
- package/build/types/legend/legend-continuous.d.ts +0 -2
- package/build/types/legend/legend-discrete.d.ts +0 -2
- package/build/types/legend/legend.d.ts +0 -13
- package/build/types/legend/proportional-symbol/PropSymbolLegendConfig.d.ts +0 -0
- package/build/types/legend/proportional-symbol/legend-proportional-symbols.d.ts +0 -2
- package/build/types/map-types/CategoricalMap.d.ts +0 -21
- package/build/types/map-types/CategoricalMapConfig.d.ts +0 -11
- package/build/types/map-types/CateogricalMapConfig.d.ts +0 -11
- package/build/types/map-types/MapType.d.ts +0 -34
- package/build/types/map-types/choropleth/BivariateChoroplethConfig.d.ts +0 -27
- package/build/types/map-types/choropleth/BivariateChoroplethMap.d.ts +0 -39
- package/build/types/map-types/choropleth/ChoroplethConfig.d.ts +0 -39
- package/build/types/map-types/choropleth/ChoroplethMap.d.ts +0 -48
- package/build/types/map-types/choropleth/TrivariateChoroplethConfig.d.ts +0 -41
- package/build/types/map-types/choropleth/TrivariateChoroplethMap.d.ts +0 -18
- package/build/types/map-types/choropleth/ValueByAlphaConfig.d.ts +0 -8
- package/build/types/map-types/choropleth/ValueByAlphaMap.d.ts +0 -9
- package/build/types/map-types/choropleth/map-choropleth-bivariate.d.ts +0 -4
- package/build/types/map-types/choropleth/map-choropleth-trivariate.d.ts +0 -4
- package/build/types/map-types/choropleth/map-choropleth.d.ts +0 -47
- package/build/types/map-types/choropleth/map-value-by-alpha.d.ts +0 -4
- package/build/types/map-types/composition/BarMap.d.ts +0 -86
- package/build/types/map-types/composition/BarMapConfig.d.ts +0 -30
- package/build/types/map-types/composition/CompositionStatConfig.d.ts +0 -57
- package/build/types/map-types/composition/CoxcombMap.d.ts +0 -42
- package/build/types/map-types/composition/CoxcombMapConfig.d.ts +0 -18
- package/build/types/map-types/composition/PieMap.d.ts +0 -62
- package/build/types/map-types/composition/PieMapConfig.d.ts +0 -24
- package/build/types/map-types/composition/SparkMap.d.ts +0 -46
- package/build/types/map-types/composition/SparkMapConfig.d.ts +0 -25
- package/build/types/map-types/composition/StripeMap.d.ts +0 -43
- package/build/types/map-types/composition/StripeMapConfig.d.ts +0 -16
- package/build/types/map-types/composition/WaffleMap.d.ts +0 -71
- package/build/types/map-types/composition/WaffleMapConfig.d.ts +0 -25
- package/build/types/map-types/composition/bar/BarMap.d.ts +0 -97
- package/build/types/map-types/composition/bar/BarMapConfig.d.ts +0 -76
- package/build/types/map-types/composition/composition-map.d.ts +0 -25
- package/build/types/map-types/composition/coxcomb/CoxcombMap.d.ts +0 -75
- package/build/types/map-types/composition/coxcomb/CoxcombMapConfig.d.ts +0 -47
- package/build/types/map-types/composition/coxcomb/CoxcombStatConfig.d.ts +0 -13
- package/build/types/map-types/composition/map-bar.d.ts +0 -5
- package/build/types/map-types/composition/map-coxcomb.d.ts +0 -5
- package/build/types/map-types/composition/map-pie.d.ts +0 -10
- package/build/types/map-types/composition/map-spark.d.ts +0 -5
- package/build/types/map-types/composition/map-stripe.d.ts +0 -5
- package/build/types/map-types/composition/map-waffle.d.ts +0 -5
- package/build/types/map-types/composition/pie/PieMap.d.ts +0 -84
- package/build/types/map-types/composition/pie/PieMapConfig.d.ts +0 -50
- package/build/types/map-types/composition/stripe/StripeMap.d.ts +0 -80
- package/build/types/map-types/composition/stripe/StripeMapConfig.d.ts +0 -45
- package/build/types/map-types/composition/waffle/WaffleMap.d.ts +0 -124
- package/build/types/map-types/composition/waffle/WaffleMapConfig.d.ts +0 -58
- package/build/types/map-types/flow/FlowMap.d.ts +0 -218
- package/build/types/map-types/flow/FlowMapConfig.d.ts +0 -220
- package/build/types/map-types/flow/map-flow.d.ts +0 -5
- package/build/types/map-types/map-categorical.d.ts +0 -19
- package/build/types/map-types/proportional-symbol/ProportionalSymbolConfig.d.ts +0 -47
- package/build/types/map-types/proportional-symbol/ProportionalSymbolMap.d.ts +0 -94
- package/build/types/map-types/proportional-symbol/map-proportional-symbols.d.ts +0 -35
- package/build/types/map-types/proportional-symbol/mushroom/MushroomMap.d.ts +0 -67
- package/build/types/map-types/proportional-symbol/mushroom/MushroomMapConfig.d.ts +0 -39
- package/build/types/map-types/spark/SparkMap.d.ts +0 -56
- package/build/types/map-types/spark/SparkMapConfig.d.ts +0 -74
- package/build/types/map-types/spark/SparkStatConfig.d.ts +0 -32
|
@@ -1,97 +1,170 @@
|
|
|
1
|
-
import type { MapInstance } from '../../../core/MapInstance'
|
|
2
|
-
import type { CompositionStatConfig } from '../CompositionStatConfig'
|
|
3
|
-
import type { BarChartLegendConfig } from '../../../legend/composition/BarChartLegendConfig'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Bar map type.
|
|
7
|
-
*/
|
|
8
|
-
export interface BarMap extends MapInstance {
|
|
9
|
-
legend(): BarChartLegendConfig | false
|
|
10
|
-
legend(config: BarChartLegendConfig | false): this
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
barType(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
barSettings()
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
):
|
|
97
|
-
}
|
|
1
|
+
import type { MapInstance } from '../../../core/MapInstance'
|
|
2
|
+
import type { CompositionStatConfig } from '../CompositionStatConfig'
|
|
3
|
+
import type { BarChartLegendConfig } from '../../../legend/composition/BarChartLegendConfig'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Bar map type.
|
|
7
|
+
*/
|
|
8
|
+
export interface BarMap extends MapInstance {
|
|
9
|
+
legend(): BarChartLegendConfig | false
|
|
10
|
+
legend(config: BarChartLegendConfig | false): this
|
|
11
|
+
|
|
12
|
+
/** @deprecated Use barSettings({ type }) */
|
|
13
|
+
barType(): 'stacked' | 'grouped'
|
|
14
|
+
/** @deprecated Use barSettings({ type }) */
|
|
15
|
+
barType(v: 'stacked' | 'grouped'): this
|
|
16
|
+
|
|
17
|
+
catColors(): Record<string, string> | undefined
|
|
18
|
+
catColors(v: Record<string, string>): this
|
|
19
|
+
|
|
20
|
+
catLabels(): Record<string, string> | undefined
|
|
21
|
+
catLabels(v: Record<string, string>): this
|
|
22
|
+
|
|
23
|
+
showOnlyWhenComplete(): boolean
|
|
24
|
+
showOnlyWhenComplete(v: boolean): this
|
|
25
|
+
|
|
26
|
+
noDataFillStyle(): string
|
|
27
|
+
noDataFillStyle(v: string): this
|
|
28
|
+
|
|
29
|
+
/** @deprecated Use barSettings({ maxWidth }) */
|
|
30
|
+
barMaxWidth(): number
|
|
31
|
+
/** @deprecated Use barSettings({ maxWidth }) */
|
|
32
|
+
barMaxWidth(v: number): this
|
|
33
|
+
|
|
34
|
+
/** @deprecated Use barSettings({ minWidth }) */
|
|
35
|
+
barMinWidth(): number
|
|
36
|
+
/** @deprecated Use barSettings({ minWidth }) */
|
|
37
|
+
barMinWidth(v: number): this
|
|
38
|
+
|
|
39
|
+
/** @deprecated Use barSettings({ height }) */
|
|
40
|
+
barHeight(): number
|
|
41
|
+
/** @deprecated Use barSettings({ height }) */
|
|
42
|
+
barHeight(v: number): this
|
|
43
|
+
|
|
44
|
+
/** @deprecated Use barSettings({ groupWidth }) */
|
|
45
|
+
barGroupWidth(): number
|
|
46
|
+
/** @deprecated Use barSettings({ groupWidth }) */
|
|
47
|
+
barGroupWidth(v: number): this
|
|
48
|
+
|
|
49
|
+
/** Consolidated bar chart style settings. */
|
|
50
|
+
barSettings(): {
|
|
51
|
+
type?: 'stacked' | 'grouped'
|
|
52
|
+
minWidth?: number
|
|
53
|
+
maxWidth?: number
|
|
54
|
+
height?: number
|
|
55
|
+
groupWidth?: number
|
|
56
|
+
groupMinWidth?: number
|
|
57
|
+
groupMaxWidth?: number
|
|
58
|
+
groupGap?: number
|
|
59
|
+
groupMinHeight?: number
|
|
60
|
+
groupMaxHeight?: number
|
|
61
|
+
groupMaxValue?: number
|
|
62
|
+
groupMaxWidthValue?: number
|
|
63
|
+
strokeFill?: string
|
|
64
|
+
strokeWidth?: number
|
|
65
|
+
cornerRadius?: number
|
|
66
|
+
otherColor?: string
|
|
67
|
+
otherText?: string
|
|
68
|
+
tooltipWidth?: number
|
|
69
|
+
tooltipHeight?: number
|
|
70
|
+
showCategoryLabels?: boolean
|
|
71
|
+
}
|
|
72
|
+
barSettings(v: {
|
|
73
|
+
type?: 'stacked' | 'grouped'
|
|
74
|
+
minWidth?: number
|
|
75
|
+
maxWidth?: number
|
|
76
|
+
height?: number
|
|
77
|
+
groupWidth?: number
|
|
78
|
+
groupMinWidth?: number
|
|
79
|
+
groupMaxWidth?: number
|
|
80
|
+
groupGap?: number
|
|
81
|
+
groupMinHeight?: number
|
|
82
|
+
groupMaxHeight?: number
|
|
83
|
+
groupMaxValue?: number
|
|
84
|
+
groupMaxWidthValue?: number
|
|
85
|
+
strokeFill?: string
|
|
86
|
+
strokeWidth?: number
|
|
87
|
+
cornerRadius?: number
|
|
88
|
+
otherColor?: string
|
|
89
|
+
otherText?: string
|
|
90
|
+
tooltipWidth?: number
|
|
91
|
+
tooltipHeight?: number
|
|
92
|
+
showCategoryLabels?: boolean
|
|
93
|
+
}): this
|
|
94
|
+
|
|
95
|
+
/** @deprecated Use barSettings({ groupGap }) */
|
|
96
|
+
barGroupGap(): number
|
|
97
|
+
/** @deprecated Use barSettings({ groupGap }) */
|
|
98
|
+
barGroupGap(v: number): this
|
|
99
|
+
|
|
100
|
+
/** @deprecated Use barSettings({ groupMinHeight }) */
|
|
101
|
+
barGroupMinHeight(): number
|
|
102
|
+
/** @deprecated Use barSettings({ groupMinHeight }) */
|
|
103
|
+
barGroupMinHeight(v: number): this
|
|
104
|
+
|
|
105
|
+
/** @deprecated Use barSettings({ groupMaxHeight }) */
|
|
106
|
+
barGroupMaxHeight(): number
|
|
107
|
+
/** @deprecated Use barSettings({ groupMaxHeight }) */
|
|
108
|
+
barGroupMaxHeight(v: number): this
|
|
109
|
+
|
|
110
|
+
/** @deprecated Use barSettings({ strokeFill }) */
|
|
111
|
+
barStrokeFill(): string
|
|
112
|
+
/** @deprecated Use barSettings({ strokeFill }) */
|
|
113
|
+
barStrokeFill(v: string): this
|
|
114
|
+
|
|
115
|
+
/** @deprecated Use barSettings({ strokeWidth }) */
|
|
116
|
+
barStrokeWidth(): number
|
|
117
|
+
/** @deprecated Use barSettings({ strokeWidth }) */
|
|
118
|
+
barStrokeWidth(v: number): this
|
|
119
|
+
|
|
120
|
+
/** @deprecated Use barSettings({ cornerRadius }) */
|
|
121
|
+
barCornerRadius(): number
|
|
122
|
+
/** @deprecated Use barSettings({ cornerRadius }) */
|
|
123
|
+
barCornerRadius(v: number): this
|
|
124
|
+
|
|
125
|
+
/** @deprecated Use barSettings({ otherColor }) */
|
|
126
|
+
barOtherColor(): string
|
|
127
|
+
/** @deprecated Use barSettings({ otherColor }) */
|
|
128
|
+
barOtherColor(v: string): this
|
|
129
|
+
|
|
130
|
+
/** @deprecated Use barSettings({ otherText }) */
|
|
131
|
+
barOtherText(): string
|
|
132
|
+
/** @deprecated Use barSettings({ otherText }) */
|
|
133
|
+
barOtherText(v: string): this
|
|
134
|
+
|
|
135
|
+
/** @deprecated Use barSettings({ tooltipWidth }) */
|
|
136
|
+
barTooltipWidth(): number
|
|
137
|
+
/** @deprecated Use barSettings({ tooltipWidth }) */
|
|
138
|
+
barTooltipWidth(v: number): this
|
|
139
|
+
|
|
140
|
+
/** @deprecated Use barSettings({ tooltipHeight }) */
|
|
141
|
+
barTooltipHeight(): number
|
|
142
|
+
/** @deprecated Use barSettings({ tooltipHeight }) */
|
|
143
|
+
barTooltipHeight(v: number): this
|
|
144
|
+
|
|
145
|
+
dorling(): boolean
|
|
146
|
+
dorling(v: boolean): this
|
|
147
|
+
|
|
148
|
+
barTotalCode(): string | undefined
|
|
149
|
+
barTotalCode(v: string | undefined): this
|
|
150
|
+
|
|
151
|
+
statCodes(): string[] | undefined
|
|
152
|
+
statCodes(v: string[] | undefined): this
|
|
153
|
+
|
|
154
|
+
statBar(config: CompositionStatConfig): this
|
|
155
|
+
/** @deprecated Legacy positional signature. Prefer statBar({ categoryParameter, categoryCodes, ... }). */
|
|
156
|
+
statBar(
|
|
157
|
+
/** Config. */
|
|
158
|
+
config: CompositionStatConfig,
|
|
159
|
+
/** Category parameter. */
|
|
160
|
+
categoryParameter?: string,
|
|
161
|
+
/** Category codes. */
|
|
162
|
+
categoryCodes?: string[],
|
|
163
|
+
/** Category labels. */
|
|
164
|
+
categoryLabels?: string[],
|
|
165
|
+
/** Category colors. */
|
|
166
|
+
categoryColors?: string[],
|
|
167
|
+
/** Total code. */
|
|
168
|
+
totalCode?: string
|
|
169
|
+
): this
|
|
170
|
+
}
|
|
@@ -1,76 +1,83 @@
|
|
|
1
|
-
import type { MapConfig } from '../../../core/MapConfig'
|
|
2
|
-
import type { BarChartLegendConfig } from '../../../legend/composition/BarChartLegendConfig'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Configuration for bar chart composition maps.
|
|
6
|
-
*/
|
|
7
|
-
export interface BarMapConfig extends MapConfig {
|
|
8
|
-
/**
|
|
9
|
-
barType?: 'stacked' | 'grouped'
|
|
10
|
-
/** Cat colors. */
|
|
11
|
-
catColors?: Record<string, string>
|
|
12
|
-
/** Cat labels. */
|
|
13
|
-
catLabels?: Record<string, string>
|
|
14
|
-
/** Show only when complete. */
|
|
15
|
-
showOnlyWhenComplete?: boolean
|
|
16
|
-
/** No data fill style. */
|
|
17
|
-
noDataFillStyle?: string
|
|
18
|
-
/**
|
|
19
|
-
barMinWidth?: number
|
|
20
|
-
/**
|
|
21
|
-
barMaxWidth?: number
|
|
22
|
-
/**
|
|
23
|
-
barHeight?: number
|
|
24
|
-
/**
|
|
25
|
-
barGroupWidth?: number
|
|
26
|
-
/**
|
|
27
|
-
barSettings?: {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
1
|
+
import type { MapConfig } from '../../../core/MapConfig'
|
|
2
|
+
import type { BarChartLegendConfig } from '../../../legend/composition/BarChartLegendConfig'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Configuration for bar chart composition maps.
|
|
6
|
+
*/
|
|
7
|
+
export interface BarMapConfig extends MapConfig {
|
|
8
|
+
/** @deprecated Use barSettings.type */
|
|
9
|
+
barType?: 'stacked' | 'grouped'
|
|
10
|
+
/** Cat colors. */
|
|
11
|
+
catColors?: Record<string, string>
|
|
12
|
+
/** Cat labels. */
|
|
13
|
+
catLabels?: Record<string, string>
|
|
14
|
+
/** Show only when complete. */
|
|
15
|
+
showOnlyWhenComplete?: boolean
|
|
16
|
+
/** No data fill style. */
|
|
17
|
+
noDataFillStyle?: string
|
|
18
|
+
/** @deprecated Use barSettings.minWidth */
|
|
19
|
+
barMinWidth?: number
|
|
20
|
+
/** @deprecated Use barSettings.maxWidth */
|
|
21
|
+
barMaxWidth?: number
|
|
22
|
+
/** @deprecated Use barSettings.height */
|
|
23
|
+
barHeight?: number
|
|
24
|
+
/** @deprecated Use barSettings.groupWidth */
|
|
25
|
+
barGroupWidth?: number
|
|
26
|
+
/** Consolidated bar chart style settings. */
|
|
27
|
+
barSettings?: {
|
|
28
|
+
/** 'stacked': one bar per region, category segments stacked; 'grouped': category bars
|
|
29
|
+
* side-by-side. @default 'grouped' */
|
|
30
|
+
type?: 'stacked' | 'grouped'
|
|
31
|
+
minWidth?: number
|
|
32
|
+
maxWidth?: number
|
|
33
|
+
height?: number
|
|
34
|
+
/** Width of each grouped bar. Defaults to cell width / number of categories. */
|
|
35
|
+
groupWidth?: number
|
|
36
|
+
groupMinWidth?: number
|
|
37
|
+
groupMaxWidth?: number
|
|
38
|
+
groupGap?: number
|
|
39
|
+
groupMinHeight?: number
|
|
40
|
+
groupMaxHeight?: number
|
|
41
|
+
/** Optional override for the grouped-mode max value, for sharing scales across maps. */
|
|
42
|
+
groupMaxValue?: number
|
|
43
|
+
/** Optional override for the grouped-mode max width-encoded value. */
|
|
44
|
+
groupMaxWidthValue?: number
|
|
45
|
+
strokeFill?: string
|
|
46
|
+
strokeWidth?: number
|
|
47
|
+
cornerRadius?: number
|
|
48
|
+
otherColor?: string
|
|
49
|
+
otherText?: string
|
|
50
|
+
tooltipWidth?: number
|
|
51
|
+
tooltipHeight?: number
|
|
52
|
+
/** Show the category name (e.g. "Cities:") before each tooltip value. @default true */
|
|
53
|
+
showCategoryLabels?: boolean
|
|
54
|
+
}
|
|
55
|
+
/** @deprecated Use barSettings.groupGap */
|
|
56
|
+
barGroupGap?: number
|
|
57
|
+
/** @deprecated Use barSettings.groupMinHeight */
|
|
58
|
+
barGroupMinHeight?: number
|
|
59
|
+
/** @deprecated Use barSettings.groupMaxHeight */
|
|
60
|
+
barGroupMaxHeight?: number
|
|
61
|
+
/** @deprecated Use barSettings.strokeFill */
|
|
62
|
+
barStrokeFill?: string
|
|
63
|
+
/** @deprecated Use barSettings.strokeWidth */
|
|
64
|
+
barStrokeWidth?: number
|
|
65
|
+
/** @deprecated Use barSettings.cornerRadius */
|
|
66
|
+
barCornerRadius?: number
|
|
67
|
+
/** @deprecated Use barSettings.otherColor */
|
|
68
|
+
barOtherColor?: string
|
|
69
|
+
/** @deprecated Use barSettings.otherText */
|
|
70
|
+
barOtherText?: string
|
|
71
|
+
/** @deprecated Use barSettings.tooltipWidth */
|
|
72
|
+
barTooltipWidth?: number
|
|
73
|
+
/** @deprecated Use barSettings.tooltipHeight */
|
|
74
|
+
barTooltipHeight?: number
|
|
75
|
+
/** Dorling. */
|
|
76
|
+
dorling?: boolean
|
|
77
|
+
/** Bar total code. */
|
|
78
|
+
barTotalCode?: string
|
|
79
|
+
/** Stat codes. */
|
|
80
|
+
statCodes?: string[]
|
|
81
|
+
/** Legend. */
|
|
82
|
+
legend?: BarChartLegendConfig | false
|
|
83
|
+
}
|
|
@@ -26,11 +26,11 @@ export interface CoxcombMap extends MapInstance {
|
|
|
26
26
|
offsets?: { x: number; y: number }
|
|
27
27
|
}): this
|
|
28
28
|
|
|
29
|
-
catColors():
|
|
30
|
-
catColors(v:
|
|
29
|
+
catColors(): Record<string, string> | undefined
|
|
30
|
+
catColors(v: Record<string, string>): this
|
|
31
31
|
|
|
32
|
-
catLabels():
|
|
33
|
-
catLabels(v:
|
|
32
|
+
catLabels(): Record<string, string> | undefined
|
|
33
|
+
catLabels(v: Record<string, string>): this
|
|
34
34
|
|
|
35
35
|
noDataFillStyle(): string
|
|
36
36
|
noDataFillStyle(v: string): this
|
|
@@ -63,8 +63,9 @@ export interface CoxcombMap extends MapInstance {
|
|
|
63
63
|
hoverColor(): string
|
|
64
64
|
hoverColor(v: string): this
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
classifierSize(
|
|
66
|
+
/** D3 radial scale mapping a stat value to a wedge radius in pixels. */
|
|
67
|
+
classifierSize(): ((value: number) => number) | null
|
|
68
|
+
classifierSize(v: (value: number) => number): this
|
|
68
69
|
|
|
69
70
|
/** @deprecated Use coxcombSettings({ offsets }) */
|
|
70
71
|
coxcombOffsets(): { x: number; y: number }
|
|
@@ -40,8 +40,8 @@ export interface CoxcombMapConfig extends MapConfig {
|
|
|
40
40
|
catLabels?: Record<string, string>
|
|
41
41
|
/** No data fill style. */
|
|
42
42
|
noDataFillStyle?: string
|
|
43
|
-
/**
|
|
44
|
-
classifierSize?:
|
|
43
|
+
/** D3 radial scale mapping a stat value to a wedge radius in pixels. */
|
|
44
|
+
classifierSize?: (value: number) => number
|
|
45
45
|
/** Legend. */
|
|
46
46
|
legend?: CoxcombLegendConfig | false
|
|
47
47
|
}
|
|
@@ -9,11 +9,11 @@ export interface PieMap extends MapInstance {
|
|
|
9
9
|
legend(): PieChartLegendConfig | false
|
|
10
10
|
legend(config: PieChartLegendConfig | false): this
|
|
11
11
|
|
|
12
|
-
catColors():
|
|
13
|
-
catColors(v:
|
|
12
|
+
catColors(): Record<string, string> | undefined
|
|
13
|
+
catColors(v: Record<string, string>): this
|
|
14
14
|
|
|
15
|
-
catLabels():
|
|
16
|
-
catLabels(v:
|
|
15
|
+
catLabels(): Record<string, string> | undefined
|
|
16
|
+
catLabels(v: Record<string, string>): this
|
|
17
17
|
|
|
18
18
|
showOnlyWhenComplete(): boolean
|
|
19
19
|
showOnlyWhenComplete(v: boolean): this
|
|
@@ -21,6 +21,10 @@ export interface PieMap extends MapInstance {
|
|
|
21
21
|
noDataFillStyle(): string
|
|
22
22
|
noDataFillStyle(v: string): this
|
|
23
23
|
|
|
24
|
+
/** Pie-specific rendering settings, independent of compositionSettings. */
|
|
25
|
+
pieSettings(): { innerRadius?: number }
|
|
26
|
+
pieSettings(v: { innerRadius?: number }): this
|
|
27
|
+
|
|
24
28
|
compositionSettings(): {
|
|
25
29
|
type?: 'flag' | 'pie' | 'ring' | 'segment' | 'radar' | 'agepyramid' | 'halftone'
|
|
26
30
|
/** Radar wedge radius mode: share within symbol (default) or absolute values across map. */
|
|
@@ -27,10 +27,6 @@ export interface PieMapConfig extends MapConfig {
|
|
|
27
27
|
otherColor?: string
|
|
28
28
|
otherText?: string
|
|
29
29
|
}
|
|
30
|
-
/** Tooltip pie radius. */
|
|
31
|
-
tooltipPieRadius?: number
|
|
32
|
-
/** Tooltip pie inner radius. */
|
|
33
|
-
tooltipPieInnerRadius?: number
|
|
34
30
|
/** Cat colors. */
|
|
35
31
|
catColors?: Record<string, string>
|
|
36
32
|
/** Cat labels. */
|
|
@@ -27,11 +27,11 @@ export interface StripeMap extends MapInstance {
|
|
|
27
27
|
/** @deprecated Use stripeSettings({ orientation }) */
|
|
28
28
|
stripeOrientation(v: number): this
|
|
29
29
|
|
|
30
|
-
catColors():
|
|
31
|
-
catColors(v:
|
|
30
|
+
catColors(): Record<string, string> | undefined
|
|
31
|
+
catColors(v: Record<string, string>): this
|
|
32
32
|
|
|
33
|
-
catLabels():
|
|
34
|
-
catLabels(v:
|
|
33
|
+
catLabels(): Record<string, string> | undefined
|
|
34
|
+
catLabels(v: Record<string, string>): this
|
|
35
35
|
|
|
36
36
|
/** @deprecated Use stripeSettings({ otherColor }) */
|
|
37
37
|
stripeOtherColor(): string
|
|
@@ -9,11 +9,11 @@ export interface WaffleMap extends MapInstance {
|
|
|
9
9
|
legend(): WaffleLegendConfig | false
|
|
10
10
|
legend(config: WaffleLegendConfig | false): this
|
|
11
11
|
|
|
12
|
-
catColors():
|
|
13
|
-
catColors(v:
|
|
12
|
+
catColors(): Record<string, string> | undefined
|
|
13
|
+
catColors(v: Record<string, string>): this
|
|
14
14
|
|
|
15
|
-
catLabels():
|
|
16
|
-
catLabels(v:
|
|
15
|
+
catLabels(): Record<string, string> | undefined
|
|
16
|
+
catLabels(v: Record<string, string>): this
|
|
17
17
|
|
|
18
18
|
showOnlyWhenComplete(): boolean
|
|
19
19
|
showOnlyWhenComplete(v: boolean): this
|
|
@@ -25,13 +25,13 @@ export interface FlowMap extends MapInstance {
|
|
|
25
25
|
nodeType: 'circle' | 'donut'
|
|
26
26
|
labelOffsets: { x: number; y: number }
|
|
27
27
|
lineType: 'curved' | 'straight' | 'sankey'
|
|
28
|
-
nodeSizeScale:
|
|
28
|
+
nodeSizeScale: ((value: number) => number) | null
|
|
29
29
|
opacity: number
|
|
30
30
|
internal: boolean
|
|
31
31
|
topLocations: number
|
|
32
32
|
topLocationsType: 'sum' | 'origin' | 'destination'
|
|
33
33
|
curvatureSettings: FlowCurvatureSettings
|
|
34
|
-
order: any
|
|
34
|
+
order: (a: any, b: any) => number
|
|
35
35
|
widthGradient: boolean
|
|
36
36
|
opacityGradient: boolean
|
|
37
37
|
widthGradientSettings: FlowWidthGradientSettings
|
|
@@ -56,13 +56,13 @@ export interface FlowMap extends MapInstance {
|
|
|
56
56
|
nodeType?: 'circle' | 'donut'
|
|
57
57
|
labelOffsets?: { x: number; y: number }
|
|
58
58
|
lineType?: 'curved' | 'straight' | 'sankey'
|
|
59
|
-
nodeSizeScale?:
|
|
59
|
+
nodeSizeScale?: (value: number) => number
|
|
60
60
|
opacity?: number
|
|
61
61
|
internal?: boolean
|
|
62
62
|
topLocations?: number
|
|
63
63
|
topLocationsType?: 'sum' | 'origin' | 'destination'
|
|
64
64
|
curvatureSettings?: FlowCurvatureSettings
|
|
65
|
-
order?: any
|
|
65
|
+
order?: (a: any, b: any) => number
|
|
66
66
|
widthGradient?: boolean
|
|
67
67
|
opacityGradient?: boolean
|
|
68
68
|
widthGradientSettings?: FlowWidthGradientSettings
|
|
@@ -152,9 +152,9 @@ export interface FlowMap extends MapInstance {
|
|
|
152
152
|
flowLineType(v: 'curved' | 'straight' | 'sankey'): this
|
|
153
153
|
|
|
154
154
|
/** @deprecated Use flowSettings({ nodeSizeScale }) */
|
|
155
|
-
flowNodeSizeScale():
|
|
155
|
+
flowNodeSizeScale(): ((value: number) => number) | null
|
|
156
156
|
/** @deprecated Use flowSettings({ nodeSizeScale }) */
|
|
157
|
-
flowNodeSizeScale(v:
|
|
157
|
+
flowNodeSizeScale(v: (value: number) => number): this
|
|
158
158
|
|
|
159
159
|
/** @deprecated Use flowSettings({ opacity }) */
|
|
160
160
|
flowOpacity(): number
|
|
@@ -182,9 +182,9 @@ export interface FlowMap extends MapInstance {
|
|
|
182
182
|
flowCurvatureSettings(v: FlowCurvatureSettings): this
|
|
183
183
|
|
|
184
184
|
/** @deprecated Use flowSettings({ order }) */
|
|
185
|
-
flowOrder(): any
|
|
185
|
+
flowOrder(): (a: any, b: any) => number
|
|
186
186
|
/** @deprecated Use flowSettings({ order }) */
|
|
187
|
-
flowOrder(v: any): this
|
|
187
|
+
flowOrder(v: (a: any, b: any) => number): this
|
|
188
188
|
|
|
189
189
|
/** @deprecated Use flowSettings({ widthGradient }) */
|
|
190
190
|
flowWidthGradient(): boolean
|