eurostat-map 4.4.5 → 4.6.0
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/README.md +33 -4
- package/build/215.eurostatmap.min.js +1 -1
- package/build/215.eurostatmap.min.js.map +1 -1
- package/build/eurostatmap.js +20424 -16231
- 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/GridCartogramSettings.d.ts +33 -0
- package/build/types/core/MapConfig.d.ts +13 -2
- package/build/types/core/MapInstance.d.ts +80 -4
- package/build/types/core/encoding/EncodingConfig.d.ts +31 -0
- package/build/types/core/layer/Layer.d.ts +31 -0
- package/build/types/core/layer/LayerConfig.d.ts +19 -0
- package/build/types/core/layer/LayerRole.d.ts +1 -0
- package/build/types/core/locations.d.ts +44 -16
- package/build/types/core/stat/StatConfig.d.ts +7 -0
- package/build/types/index.d.ts +38 -33
- package/build/types/layers/CategoricalMap.d.ts +21 -0
- package/build/types/layers/CategoricalMapConfig.d.ts +11 -0
- package/build/types/layers/MapType.d.ts +34 -0
- package/build/types/layers/choropleth/BivariateChoroplethConfig.d.ts +27 -0
- package/build/types/layers/choropleth/BivariateChoroplethMap.d.ts +39 -0
- package/build/types/layers/choropleth/ChoroplethConfig.d.ts +39 -0
- package/build/types/layers/choropleth/ChoroplethMap.d.ts +48 -0
- package/build/types/layers/choropleth/TrivariateChoroplethConfig.d.ts +41 -0
- package/build/types/layers/choropleth/TrivariateChoroplethMap.d.ts +18 -0
- package/build/types/layers/choropleth/ValueByAlphaConfig.d.ts +8 -0
- package/build/types/layers/choropleth/ValueByAlphaMap.d.ts +9 -0
- package/build/types/layers/composition/CompositionStatConfig.d.ts +59 -0
- package/build/types/layers/composition/bar/BarMap.d.ts +97 -0
- package/build/types/layers/composition/bar/BarMapConfig.d.ts +76 -0
- package/build/types/layers/composition/coxcomb/CoxcombMap.d.ts +75 -0
- package/build/types/layers/composition/coxcomb/CoxcombMapConfig.d.ts +47 -0
- package/build/types/layers/composition/coxcomb/CoxcombStatConfig.d.ts +13 -0
- package/build/types/layers/composition/pie/PieMap.d.ts +84 -0
- package/build/types/layers/composition/pie/PieMapConfig.d.ts +50 -0
- package/build/types/layers/composition/stripe/StripeMap.d.ts +80 -0
- package/build/types/layers/composition/stripe/StripeMapConfig.d.ts +45 -0
- package/build/types/layers/composition/waffle/WaffleMap.d.ts +124 -0
- package/build/types/layers/composition/waffle/WaffleMapConfig.d.ts +58 -0
- package/build/types/layers/flow/FlowMap.d.ts +218 -0
- package/build/types/layers/flow/FlowMapConfig.d.ts +220 -0
- package/build/types/layers/proportional-symbol/ProportionalSymbolConfig.d.ts +47 -0
- package/build/types/layers/proportional-symbol/ProportionalSymbolMap.d.ts +94 -0
- package/build/types/layers/proportional-symbol/mushroom/MushroomMap.d.ts +67 -0
- package/build/types/layers/proportional-symbol/mushroom/MushroomMapConfig.d.ts +39 -0
- package/build/types/layers/spark/SparkMap.d.ts +56 -0
- package/build/types/layers/spark/SparkMapConfig.d.ts +75 -0
- package/build/types/layers/spark/SparkStatConfig.d.ts +33 -0
- package/build/types/legend/LegendConfig.d.ts +3 -0
- package/build/types/legend/choropleth/BivariateLegendConfig.d.ts +79 -0
- package/build/types/legend/choropleth/legend-choropleth-bivariate.d.ts +2 -2
- package/build/types/legend/choropleth/legend-choropleth-trivariate.d.ts +2 -2
- package/build/types/legend/choropleth/legend-choropleth.d.ts +2 -2
- package/build/types/legend/composition/legend-bar-chart.d.ts +2 -2
- package/build/types/legend/flow/legend-flow.d.ts +2 -2
- package/build/types/legend/legend-categorical.d.ts +2 -2
- package/build/types/legend/legend-continuous.d.ts +2 -2
- package/build/types/legend/legend-discrete.d.ts +2 -2
- package/build/types/legend/legend.d.ts +13 -13
- package/build/types/legend/proportional-symbol/ProportionalSymbolsLegendConfig.d.ts +6 -0
- package/build/types/legend/proportional-symbol/legend-proportional-symbols.d.ts +2 -2
- package/build/types/map-types/CategoricalMapConfig.d.ts +11 -11
- package/build/types/map-types/choropleth/map-choropleth-bivariate.d.ts +4 -4
- package/build/types/map-types/choropleth/map-choropleth-trivariate.d.ts +4 -4
- package/build/types/map-types/choropleth/map-value-by-alpha.d.ts +4 -4
- package/build/types/map-types/composition/CompositionStatConfig.d.ts +7 -0
- package/build/types/map-types/composition/bar/BarMap.d.ts +97 -79
- package/build/types/map-types/composition/bar/BarMapConfig.d.ts +76 -54
- package/build/types/map-types/composition/coxcomb/CoxcombMap.d.ts +29 -0
- package/build/types/map-types/composition/coxcomb/CoxcombMapConfig.d.ts +15 -0
- package/build/types/map-types/composition/map-spark.d.ts +5 -5
- package/build/types/map-types/composition/map-stripe.d.ts +5 -5
- package/build/types/map-types/composition/pie/PieMap.d.ts +1 -5
- package/build/types/map-types/composition/stripe/StripeMap.d.ts +19 -2
- package/build/types/map-types/composition/stripe/StripeMapConfig.d.ts +11 -0
- package/build/types/map-types/composition/waffle/WaffleMap.d.ts +1 -0
- package/build/types/map-types/flow/FlowMap.d.ts +121 -0
- package/build/types/map-types/flow/FlowMapConfig.d.ts +62 -0
- package/build/types/map-types/flow/map-flow.d.ts +5 -5
- package/build/types/map-types/proportional-symbol/ProportionalSymbolConfig.d.ts +30 -0
- package/build/types/map-types/proportional-symbol/ProportionalSymbolMap.d.ts +4 -0
- package/build/types/map-types/proportional-symbol/mushroom/MushroomMap.d.ts +37 -0
- package/build/types/map-types/proportional-symbol/mushroom/MushroomMapConfig.d.ts +19 -0
- package/build/types/map-types/spark/SparkMap.d.ts +4 -0
- package/build/types/map-types/spark/SparkMapConfig.d.ts +32 -0
- package/package.json +3 -2
|
@@ -56,4 +56,83 @@ export interface BivariateLegendConfig extends LegendConfig {
|
|
|
56
56
|
|
|
57
57
|
/** Padding between arrow and axis label in pixels. @default 10 */
|
|
58
58
|
arrowPadding?: number
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Labels displayed at low/high ends of each axis.
|
|
62
|
+
* @default { x: { low: 'Low', high: 'High' }, y: { low: 'Low', high: 'High' } }
|
|
63
|
+
*/
|
|
64
|
+
axisExtremes?: {
|
|
65
|
+
x?: { low?: string; high?: string }
|
|
66
|
+
y?: { low?: string; high?: string }
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** Whether to show low/high endpoint labels on both axes. @default true */
|
|
70
|
+
showAxisExtremes?: boolean
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Optional text annotations for each corner of the bivariate square.
|
|
74
|
+
* Add text for any combination of topRight, bottomRight, bottomLeft, topLeft.
|
|
75
|
+
* Supports line breaks using '<br>'/'<br/>' or '\\n'.
|
|
76
|
+
*/
|
|
77
|
+
annotations?: {
|
|
78
|
+
topRight?: string
|
|
79
|
+
bottomRight?: string
|
|
80
|
+
bottomLeft?: string
|
|
81
|
+
topLeft?: string
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Length of corner annotation callout lines in pixels.
|
|
86
|
+
* Can be a single number for all corners, or per-corner values.
|
|
87
|
+
* @default 18
|
|
88
|
+
*/
|
|
89
|
+
annotationLineLength?:
|
|
90
|
+
| number
|
|
91
|
+
| {
|
|
92
|
+
topRight?: number
|
|
93
|
+
bottomRight?: number
|
|
94
|
+
bottomLeft?: number
|
|
95
|
+
topLeft?: number
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Annotation text offsets in pixels.
|
|
100
|
+
* Use global `{ x, y }` or per-corner values.
|
|
101
|
+
* @default auto (based on corner direction)
|
|
102
|
+
*/
|
|
103
|
+
annotationOffsets?:
|
|
104
|
+
| { x?: number; y?: number }
|
|
105
|
+
| {
|
|
106
|
+
topRight?: { x?: number; y?: number }
|
|
107
|
+
bottomRight?: { x?: number; y?: number }
|
|
108
|
+
bottomLeft?: { x?: number; y?: number }
|
|
109
|
+
topLeft?: { x?: number; y?: number }
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Extra offset applied to the leader-line endpoint where it meets the annotation label.
|
|
114
|
+
* Use global `{ x, y }` or per-corner values.
|
|
115
|
+
* @default { x: 0, y: 0 }
|
|
116
|
+
*/
|
|
117
|
+
annotationLineEndOffset?:
|
|
118
|
+
| { x?: number; y?: number }
|
|
119
|
+
| {
|
|
120
|
+
topRight?: { x?: number; y?: number }
|
|
121
|
+
bottomRight?: { x?: number; y?: number }
|
|
122
|
+
bottomLeft?: { x?: number; y?: number }
|
|
123
|
+
topLeft?: { x?: number; y?: number }
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @deprecated Use annotationOffsets instead.
|
|
128
|
+
* Radial padding between corner annotation callout line end and text in pixels.
|
|
129
|
+
*/
|
|
130
|
+
annotationPadding?:
|
|
131
|
+
| number
|
|
132
|
+
| {
|
|
133
|
+
topRight?: number
|
|
134
|
+
bottomRight?: number
|
|
135
|
+
bottomLeft?: number
|
|
136
|
+
topLeft?: number
|
|
137
|
+
}
|
|
59
138
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Creates a bivariate choropleth legend */
|
|
2
|
-
export function legend(config?: any): any
|
|
1
|
+
/** Creates a bivariate choropleth legend */
|
|
2
|
+
export function legend(config?: any): any
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Creates a trivariate choropleth legend */
|
|
2
|
-
export function legend(config?: any): any
|
|
1
|
+
/** Creates a trivariate choropleth legend */
|
|
2
|
+
export function legend(config?: any): any
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Creates a choropleth legend */
|
|
2
|
-
export function legend(config?: any): any
|
|
1
|
+
/** Creates a choropleth legend */
|
|
2
|
+
export function legend(config?: any): any
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Creates a bar chart legend */
|
|
2
|
-
export function legend(config?: any): any
|
|
1
|
+
/** Creates a bar chart legend */
|
|
2
|
+
export function legend(config?: any): any
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Creates a flow map legend */
|
|
2
|
-
export function legend(config?: any): any
|
|
1
|
+
/** Creates a flow map legend */
|
|
2
|
+
export function legend(config?: any): any
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Creates a categorical legend */
|
|
2
|
-
export function legend(config?: any): any
|
|
1
|
+
/** Creates a categorical legend */
|
|
2
|
+
export function legend(config?: any): any
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Creates a continuous legend */
|
|
2
|
-
export function legend(config?: any): any
|
|
1
|
+
/** Creates a continuous legend */
|
|
2
|
+
export function legend(config?: any): any
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Creates a discrete legend */
|
|
2
|
-
export function legend(config?: any): any
|
|
1
|
+
/** Creates a discrete legend */
|
|
2
|
+
export function legend(config?: any): any
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { MapInstance } from '../core/MapInstance'
|
|
2
|
-
|
|
3
|
-
/** Base legend configuration */
|
|
4
|
-
export interface LegendConfig {
|
|
5
|
-
title?: string
|
|
6
|
-
titleFontSize?: number
|
|
7
|
-
labelFontSize?: number
|
|
8
|
-
labelDelimiter?: string
|
|
9
|
-
noDataText?: string
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/** Creates a legend instance */
|
|
13
|
-
export function legend(config?: LegendConfig): any
|
|
1
|
+
import type { MapInstance } from '../core/MapInstance'
|
|
2
|
+
|
|
3
|
+
/** Base legend configuration */
|
|
4
|
+
export interface LegendConfig {
|
|
5
|
+
title?: string
|
|
6
|
+
titleFontSize?: number
|
|
7
|
+
labelFontSize?: number
|
|
8
|
+
labelDelimiter?: string
|
|
9
|
+
noDataText?: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Creates a legend instance */
|
|
13
|
+
export function legend(config?: LegendConfig): any
|
|
@@ -7,6 +7,9 @@ export interface ProportionalSymbolSizeLegendConfig {
|
|
|
7
7
|
/** Title for the size legend. */
|
|
8
8
|
title?: string | null
|
|
9
9
|
|
|
10
|
+
/** Subtitle displayed below the title. */
|
|
11
|
+
subtitle?: string | null
|
|
12
|
+
|
|
10
13
|
/** Padding between title and legend content in pixels. @default 15 */
|
|
11
14
|
titlePadding?: number
|
|
12
15
|
|
|
@@ -57,6 +60,9 @@ export interface ProportionalSymbolColorLegendConfig {
|
|
|
57
60
|
/** Title for the color legend. */
|
|
58
61
|
title?: string | null
|
|
59
62
|
|
|
63
|
+
/** Subtitle displayed below the title. */
|
|
64
|
+
subtitle?: string | null
|
|
65
|
+
|
|
60
66
|
/** Padding between title and legend content in pixels. @default 10 */
|
|
61
67
|
titlePadding?: number
|
|
62
68
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Creates a proportional symbols legend */
|
|
2
|
-
export function legend(config?: any): any
|
|
1
|
+
/** Creates a proportional symbols legend */
|
|
2
|
+
export function legend(config?: any): any
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { MapConfig } from '../core/MapConfig'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Configuration for categorical map
|
|
5
|
-
*/
|
|
6
|
-
export interface CategoricalMapConfig extends MapConfig {
|
|
7
|
-
/** Category-to-color mapping */
|
|
8
|
-
classToFillStyle?: Record<string, string>
|
|
9
|
-
/** Fill style for regions with no data */
|
|
10
|
-
noDataFillStyle?: string
|
|
11
|
-
}
|
|
1
|
+
import type { MapConfig } from '../core/MapConfig'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for categorical map
|
|
5
|
+
*/
|
|
6
|
+
export interface CategoricalMapConfig extends MapConfig {
|
|
7
|
+
/** Category-to-color mapping */
|
|
8
|
+
classToFillStyle?: Record<string, string>
|
|
9
|
+
/** Fill style for regions with no data */
|
|
10
|
+
noDataFillStyle?: string
|
|
11
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MapInstance } from '../../core/MapInstance'
|
|
2
|
-
|
|
3
|
-
/** Creates a bivariate choropleth map instance */
|
|
4
|
-
export function map(config?: any): MapInstance
|
|
1
|
+
import type { MapInstance } from '../../core/MapInstance'
|
|
2
|
+
|
|
3
|
+
/** Creates a bivariate choropleth map instance */
|
|
4
|
+
export function map(config?: any): MapInstance
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MapInstance } from '../../core/MapInstance'
|
|
2
|
-
|
|
3
|
-
/** Creates a trivariate choropleth map instance */
|
|
4
|
-
export function map(config?: any): MapInstance
|
|
1
|
+
import type { MapInstance } from '../../core/MapInstance'
|
|
2
|
+
|
|
3
|
+
/** Creates a trivariate choropleth map instance */
|
|
4
|
+
export function map(config?: any): MapInstance
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MapInstance } from '../../core/MapInstance'
|
|
2
|
-
|
|
3
|
-
/** Creates a value-by-alpha map instance */
|
|
4
|
-
export function map(config?: any): MapInstance
|
|
1
|
+
import type { MapInstance } from '../../core/MapInstance'
|
|
2
|
+
|
|
3
|
+
/** Creates a value-by-alpha map instance */
|
|
4
|
+
export function map(config?: any): MapInstance
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Statistical configuration for composition maps (pie, bar, waffle, stripe).
|
|
3
3
|
*
|
|
4
|
+
* Preferred API:
|
|
5
|
+
* - `map.stat('composition', { ... })`
|
|
6
|
+
* - `map.encoding('composition', { stat: 'composition' })`
|
|
7
|
+
*
|
|
4
8
|
* Either `eurostatDatasetCode` + `categoryParameter` (Eurostat API path)
|
|
5
9
|
* or `customData` (custom data path) must be provided.
|
|
10
|
+
*
|
|
11
|
+
* Legacy positional signatures in `statPie/statWaffle/statBar/statStripe` and
|
|
12
|
+
* `map.stat('composition', config, categoryParameter, ...)` remain supported.
|
|
6
13
|
*/
|
|
7
14
|
export interface CompositionStatConfig<TCustomData = Record<string, Record<string, number>>> {
|
|
8
15
|
/**
|
|
@@ -1,79 +1,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
|
-
barType(): 'stacked' | 'grouped'
|
|
13
|
-
barType(v: 'stacked' | 'grouped'): this
|
|
14
|
-
|
|
15
|
-
catColors(): any
|
|
16
|
-
catColors(v: any): this
|
|
17
|
-
|
|
18
|
-
catLabels(): any
|
|
19
|
-
catLabels(v: any): this
|
|
20
|
-
|
|
21
|
-
showOnlyWhenComplete(): boolean
|
|
22
|
-
showOnlyWhenComplete(v: boolean): this
|
|
23
|
-
|
|
24
|
-
noDataFillStyle(): string
|
|
25
|
-
noDataFillStyle(v: string): this
|
|
26
|
-
|
|
27
|
-
barMaxWidth(): number
|
|
28
|
-
barMaxWidth(v: number): this
|
|
29
|
-
|
|
30
|
-
barMinWidth(): number
|
|
31
|
-
barMinWidth(v: number): this
|
|
32
|
-
|
|
33
|
-
barHeight(): number
|
|
34
|
-
barHeight(v: number): this
|
|
35
|
-
|
|
36
|
-
barGroupWidth(): number
|
|
37
|
-
barGroupWidth(v: number): this
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
+
barType(): 'stacked' | 'grouped'
|
|
13
|
+
barType(v: 'stacked' | 'grouped'): this
|
|
14
|
+
|
|
15
|
+
catColors(): any
|
|
16
|
+
catColors(v: any): this
|
|
17
|
+
|
|
18
|
+
catLabels(): any
|
|
19
|
+
catLabels(v: any): this
|
|
20
|
+
|
|
21
|
+
showOnlyWhenComplete(): boolean
|
|
22
|
+
showOnlyWhenComplete(v: boolean): this
|
|
23
|
+
|
|
24
|
+
noDataFillStyle(): string
|
|
25
|
+
noDataFillStyle(v: string): this
|
|
26
|
+
|
|
27
|
+
barMaxWidth(): number
|
|
28
|
+
barMaxWidth(v: number): this
|
|
29
|
+
|
|
30
|
+
barMinWidth(): number
|
|
31
|
+
barMinWidth(v: number): this
|
|
32
|
+
|
|
33
|
+
barHeight(): number
|
|
34
|
+
barHeight(v: number): this
|
|
35
|
+
|
|
36
|
+
barGroupWidth(): number
|
|
37
|
+
barGroupWidth(v: number): this
|
|
38
|
+
|
|
39
|
+
barSettings(): any
|
|
40
|
+
barSettings(v: any): this
|
|
41
|
+
|
|
42
|
+
barGroupGap(): number
|
|
43
|
+
barGroupGap(v: number): this
|
|
44
|
+
|
|
45
|
+
barGroupMinHeight(): number
|
|
46
|
+
barGroupMinHeight(v: number): this
|
|
47
|
+
|
|
48
|
+
barGroupMaxHeight(): number
|
|
49
|
+
barGroupMaxHeight(v: number): this
|
|
50
|
+
|
|
51
|
+
barStrokeFill(): string
|
|
52
|
+
barStrokeFill(v: string): this
|
|
53
|
+
|
|
54
|
+
barStrokeWidth(): number
|
|
55
|
+
barStrokeWidth(v: number): this
|
|
56
|
+
|
|
57
|
+
barCornerRadius(): number
|
|
58
|
+
barCornerRadius(v: number): this
|
|
59
|
+
|
|
60
|
+
barOtherColor(): string
|
|
61
|
+
barOtherColor(v: string): this
|
|
62
|
+
|
|
63
|
+
barOtherText(): string
|
|
64
|
+
barOtherText(v: string): this
|
|
65
|
+
|
|
66
|
+
barTooltipWidth(): number
|
|
67
|
+
barTooltipWidth(v: number): this
|
|
68
|
+
|
|
69
|
+
barTooltipHeight(): number
|
|
70
|
+
barTooltipHeight(v: number): this
|
|
71
|
+
|
|
72
|
+
dorling(): boolean
|
|
73
|
+
dorling(v: boolean): this
|
|
74
|
+
|
|
75
|
+
barTotalCode(): string | undefined
|
|
76
|
+
barTotalCode(v: string | undefined): this
|
|
77
|
+
|
|
78
|
+
statCodes(): string[] | undefined
|
|
79
|
+
statCodes(v: string[] | undefined): this
|
|
80
|
+
|
|
81
|
+
statBar(config: CompositionStatConfig): this
|
|
82
|
+
/** @deprecated Legacy positional signature. Prefer statBar({ categoryParameter, categoryCodes, ... }). */
|
|
83
|
+
statBar(
|
|
84
|
+
/** Config. */
|
|
85
|
+
config: CompositionStatConfig,
|
|
86
|
+
/** Category parameter. */
|
|
87
|
+
categoryParameter?: string,
|
|
88
|
+
/** Category codes. */
|
|
89
|
+
categoryCodes?: string[],
|
|
90
|
+
/** Category labels. */
|
|
91
|
+
categoryLabels?: string[],
|
|
92
|
+
/** Category colors. */
|
|
93
|
+
categoryColors?: string[],
|
|
94
|
+
/** Total code. */
|
|
95
|
+
totalCode?: string
|
|
96
|
+
): this
|
|
97
|
+
}
|
|
@@ -1,54 +1,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
|
-
/** Bar 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
|
-
/** Bar min width. */
|
|
19
|
-
barMinWidth?: number
|
|
20
|
-
/** Bar max width. */
|
|
21
|
-
barMaxWidth?: number
|
|
22
|
-
/** Bar height. */
|
|
23
|
-
barHeight?: number
|
|
24
|
-
/** Bar group width. */
|
|
25
|
-
barGroupWidth?: number
|
|
26
|
-
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/** Bar
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
|
|
54
|
-
|
|
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
|
+
/** Bar 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
|
+
/** Bar min width. */
|
|
19
|
+
barMinWidth?: number
|
|
20
|
+
/** Bar max width. */
|
|
21
|
+
barMaxWidth?: number
|
|
22
|
+
/** Bar height. */
|
|
23
|
+
barHeight?: number
|
|
24
|
+
/** Bar group width. */
|
|
25
|
+
barGroupWidth?: number
|
|
26
|
+
/** Grouped bar settings object. */
|
|
27
|
+
barSettings?: {
|
|
28
|
+
type?: 'stacked' | 'grouped'
|
|
29
|
+
minWidth?: number
|
|
30
|
+
maxWidth?: number
|
|
31
|
+
height?: number
|
|
32
|
+
groupWidth?: number
|
|
33
|
+
groupMinWidth?: number
|
|
34
|
+
groupMaxWidth?: number
|
|
35
|
+
groupGap?: number
|
|
36
|
+
groupMinHeight?: number
|
|
37
|
+
groupMaxHeight?: number
|
|
38
|
+
groupMaxValue?: number
|
|
39
|
+
groupMaxWidthValue?: number
|
|
40
|
+
strokeFill?: string
|
|
41
|
+
strokeWidth?: number
|
|
42
|
+
cornerRadius?: number
|
|
43
|
+
otherColor?: string
|
|
44
|
+
otherText?: string
|
|
45
|
+
tooltipWidth?: number
|
|
46
|
+
tooltipHeight?: number
|
|
47
|
+
}
|
|
48
|
+
/** Bar group gap. */
|
|
49
|
+
barGroupGap?: number
|
|
50
|
+
/** Bar group min height. */
|
|
51
|
+
barGroupMinHeight?: number
|
|
52
|
+
/** Bar group max height. */
|
|
53
|
+
barGroupMaxHeight?: number
|
|
54
|
+
/** Bar stroke fill. */
|
|
55
|
+
barStrokeFill?: string
|
|
56
|
+
/** Bar stroke width. */
|
|
57
|
+
barStrokeWidth?: number
|
|
58
|
+
/** Bar corner radius. */
|
|
59
|
+
barCornerRadius?: number
|
|
60
|
+
/** Bar other color. */
|
|
61
|
+
barOtherColor?: string
|
|
62
|
+
/** Bar other text. */
|
|
63
|
+
barOtherText?: string
|
|
64
|
+
/** Bar tooltip width. */
|
|
65
|
+
barTooltipWidth?: number
|
|
66
|
+
/** Bar tooltip height. */
|
|
67
|
+
barTooltipHeight?: number
|
|
68
|
+
/** Dorling. */
|
|
69
|
+
dorling?: boolean
|
|
70
|
+
/** Bar total code. */
|
|
71
|
+
barTotalCode?: string
|
|
72
|
+
/** Stat codes. */
|
|
73
|
+
statCodes?: string[]
|
|
74
|
+
/** Legend. */
|
|
75
|
+
legend?: BarChartLegendConfig | false
|
|
76
|
+
}
|
|
@@ -9,6 +9,23 @@ export interface CoxcombMap extends MapInstance {
|
|
|
9
9
|
legend(): CoxcombLegendConfig | false
|
|
10
10
|
legend(config: CoxcombLegendConfig | false): this
|
|
11
11
|
|
|
12
|
+
coxcombSettings(): {
|
|
13
|
+
minRadius: number
|
|
14
|
+
maxRadius: number
|
|
15
|
+
strokeFill: string
|
|
16
|
+
strokeWidth: number
|
|
17
|
+
rings: boolean
|
|
18
|
+
offsets: { x: number; y: number }
|
|
19
|
+
}
|
|
20
|
+
coxcombSettings(v: {
|
|
21
|
+
minRadius?: number
|
|
22
|
+
maxRadius?: number
|
|
23
|
+
strokeFill?: string
|
|
24
|
+
strokeWidth?: number
|
|
25
|
+
rings?: boolean
|
|
26
|
+
offsets?: { x: number; y: number }
|
|
27
|
+
}): this
|
|
28
|
+
|
|
12
29
|
catColors(): any
|
|
13
30
|
catColors(v: any): this
|
|
14
31
|
|
|
@@ -18,19 +35,29 @@ export interface CoxcombMap extends MapInstance {
|
|
|
18
35
|
noDataFillStyle(): string
|
|
19
36
|
noDataFillStyle(v: string): this
|
|
20
37
|
|
|
38
|
+
/** @deprecated Use coxcombSettings({ maxRadius }) */
|
|
21
39
|
coxcombMaxRadius(): number
|
|
40
|
+
/** @deprecated Use coxcombSettings({ maxRadius }) */
|
|
22
41
|
coxcombMaxRadius(v: number): this
|
|
23
42
|
|
|
43
|
+
/** @deprecated Use coxcombSettings({ minRadius }) */
|
|
24
44
|
coxcombMinRadius(): number
|
|
45
|
+
/** @deprecated Use coxcombSettings({ minRadius }) */
|
|
25
46
|
coxcombMinRadius(v: number): this
|
|
26
47
|
|
|
48
|
+
/** @deprecated Use coxcombSettings({ rings }) */
|
|
27
49
|
coxcombRings(): boolean
|
|
50
|
+
/** @deprecated Use coxcombSettings({ rings }) */
|
|
28
51
|
coxcombRings(v: boolean): this
|
|
29
52
|
|
|
53
|
+
/** @deprecated Use coxcombSettings({ strokeFill }) */
|
|
30
54
|
coxcombStrokeFill(): string
|
|
55
|
+
/** @deprecated Use coxcombSettings({ strokeFill }) */
|
|
31
56
|
coxcombStrokeFill(v: string): this
|
|
32
57
|
|
|
58
|
+
/** @deprecated Use coxcombSettings({ strokeWidth }) */
|
|
33
59
|
coxcombStrokeWidth(): number
|
|
60
|
+
/** @deprecated Use coxcombSettings({ strokeWidth }) */
|
|
34
61
|
coxcombStrokeWidth(v: number): this
|
|
35
62
|
|
|
36
63
|
hoverColor(): string
|
|
@@ -39,7 +66,9 @@ export interface CoxcombMap extends MapInstance {
|
|
|
39
66
|
classifierSize(): any
|
|
40
67
|
classifierSize(v: any): this
|
|
41
68
|
|
|
69
|
+
/** @deprecated Use coxcombSettings({ offsets }) */
|
|
42
70
|
coxcombOffsets(): { x: number; y: number }
|
|
71
|
+
/** @deprecated Use coxcombSettings({ offsets }) */
|
|
43
72
|
coxcombOffsets(v: { x: number; y: number }): this
|
|
44
73
|
|
|
45
74
|
statCoxcomb(config: CoxcombStatConfig): this
|
|
@@ -5,16 +5,31 @@ import type { CoxcombLegendConfig } from '../../../legend/composition/CoxcombLeg
|
|
|
5
5
|
* Configuration for coxcomb (polar area) chart maps.
|
|
6
6
|
*/
|
|
7
7
|
export interface CoxcombMapConfig extends MapConfig {
|
|
8
|
+
/** Grouped coxcomb settings. */
|
|
9
|
+
coxcombSettings?: {
|
|
10
|
+
minRadius?: number
|
|
11
|
+
maxRadius?: number
|
|
12
|
+
strokeFill?: string
|
|
13
|
+
strokeWidth?: number
|
|
14
|
+
rings?: boolean
|
|
15
|
+
offsets?: { x: number; y: number }
|
|
16
|
+
}
|
|
17
|
+
/** @deprecated Use coxcombSettings.minRadius */
|
|
8
18
|
/** Coxcomb min radius. */
|
|
9
19
|
coxcombMinRadius?: number
|
|
20
|
+
/** @deprecated Use coxcombSettings.maxRadius */
|
|
10
21
|
/** Coxcomb max radius. */
|
|
11
22
|
coxcombMaxRadius?: number
|
|
23
|
+
/** @deprecated Use coxcombSettings.strokeFill */
|
|
12
24
|
/** Coxcomb stroke fill. */
|
|
13
25
|
coxcombStrokeFill?: string
|
|
26
|
+
/** @deprecated Use coxcombSettings.strokeWidth */
|
|
14
27
|
/** Coxcomb stroke width. */
|
|
15
28
|
coxcombStrokeWidth?: number
|
|
29
|
+
/** @deprecated Use coxcombSettings.rings */
|
|
16
30
|
/** Coxcomb rings. */
|
|
17
31
|
coxcombRings?: boolean
|
|
32
|
+
/** @deprecated Use coxcombSettings.offsets */
|
|
18
33
|
/** Coxcomb offsets. */
|
|
19
34
|
coxcombOffsets?: { x: number; y: number }
|
|
20
35
|
/** Hover color. */
|