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.
Files changed (87) hide show
  1. package/README.md +33 -4
  2. package/build/215.eurostatmap.min.js +1 -1
  3. package/build/215.eurostatmap.min.js.map +1 -1
  4. package/build/eurostatmap.js +20424 -16231
  5. package/build/eurostatmap.min.js +2 -2
  6. package/build/eurostatmap.min.js.map +1 -1
  7. package/build/package.json +1 -1
  8. package/build/types/core/GridCartogramSettings.d.ts +33 -0
  9. package/build/types/core/MapConfig.d.ts +13 -2
  10. package/build/types/core/MapInstance.d.ts +80 -4
  11. package/build/types/core/encoding/EncodingConfig.d.ts +31 -0
  12. package/build/types/core/layer/Layer.d.ts +31 -0
  13. package/build/types/core/layer/LayerConfig.d.ts +19 -0
  14. package/build/types/core/layer/LayerRole.d.ts +1 -0
  15. package/build/types/core/locations.d.ts +44 -16
  16. package/build/types/core/stat/StatConfig.d.ts +7 -0
  17. package/build/types/index.d.ts +38 -33
  18. package/build/types/layers/CategoricalMap.d.ts +21 -0
  19. package/build/types/layers/CategoricalMapConfig.d.ts +11 -0
  20. package/build/types/layers/MapType.d.ts +34 -0
  21. package/build/types/layers/choropleth/BivariateChoroplethConfig.d.ts +27 -0
  22. package/build/types/layers/choropleth/BivariateChoroplethMap.d.ts +39 -0
  23. package/build/types/layers/choropleth/ChoroplethConfig.d.ts +39 -0
  24. package/build/types/layers/choropleth/ChoroplethMap.d.ts +48 -0
  25. package/build/types/layers/choropleth/TrivariateChoroplethConfig.d.ts +41 -0
  26. package/build/types/layers/choropleth/TrivariateChoroplethMap.d.ts +18 -0
  27. package/build/types/layers/choropleth/ValueByAlphaConfig.d.ts +8 -0
  28. package/build/types/layers/choropleth/ValueByAlphaMap.d.ts +9 -0
  29. package/build/types/layers/composition/CompositionStatConfig.d.ts +59 -0
  30. package/build/types/layers/composition/bar/BarMap.d.ts +97 -0
  31. package/build/types/layers/composition/bar/BarMapConfig.d.ts +76 -0
  32. package/build/types/layers/composition/coxcomb/CoxcombMap.d.ts +75 -0
  33. package/build/types/layers/composition/coxcomb/CoxcombMapConfig.d.ts +47 -0
  34. package/build/types/layers/composition/coxcomb/CoxcombStatConfig.d.ts +13 -0
  35. package/build/types/layers/composition/pie/PieMap.d.ts +84 -0
  36. package/build/types/layers/composition/pie/PieMapConfig.d.ts +50 -0
  37. package/build/types/layers/composition/stripe/StripeMap.d.ts +80 -0
  38. package/build/types/layers/composition/stripe/StripeMapConfig.d.ts +45 -0
  39. package/build/types/layers/composition/waffle/WaffleMap.d.ts +124 -0
  40. package/build/types/layers/composition/waffle/WaffleMapConfig.d.ts +58 -0
  41. package/build/types/layers/flow/FlowMap.d.ts +218 -0
  42. package/build/types/layers/flow/FlowMapConfig.d.ts +220 -0
  43. package/build/types/layers/proportional-symbol/ProportionalSymbolConfig.d.ts +47 -0
  44. package/build/types/layers/proportional-symbol/ProportionalSymbolMap.d.ts +94 -0
  45. package/build/types/layers/proportional-symbol/mushroom/MushroomMap.d.ts +67 -0
  46. package/build/types/layers/proportional-symbol/mushroom/MushroomMapConfig.d.ts +39 -0
  47. package/build/types/layers/spark/SparkMap.d.ts +56 -0
  48. package/build/types/layers/spark/SparkMapConfig.d.ts +75 -0
  49. package/build/types/layers/spark/SparkStatConfig.d.ts +33 -0
  50. package/build/types/legend/LegendConfig.d.ts +3 -0
  51. package/build/types/legend/choropleth/BivariateLegendConfig.d.ts +79 -0
  52. package/build/types/legend/choropleth/legend-choropleth-bivariate.d.ts +2 -2
  53. package/build/types/legend/choropleth/legend-choropleth-trivariate.d.ts +2 -2
  54. package/build/types/legend/choropleth/legend-choropleth.d.ts +2 -2
  55. package/build/types/legend/composition/legend-bar-chart.d.ts +2 -2
  56. package/build/types/legend/flow/legend-flow.d.ts +2 -2
  57. package/build/types/legend/legend-categorical.d.ts +2 -2
  58. package/build/types/legend/legend-continuous.d.ts +2 -2
  59. package/build/types/legend/legend-discrete.d.ts +2 -2
  60. package/build/types/legend/legend.d.ts +13 -13
  61. package/build/types/legend/proportional-symbol/ProportionalSymbolsLegendConfig.d.ts +6 -0
  62. package/build/types/legend/proportional-symbol/legend-proportional-symbols.d.ts +2 -2
  63. package/build/types/map-types/CategoricalMapConfig.d.ts +11 -11
  64. package/build/types/map-types/choropleth/map-choropleth-bivariate.d.ts +4 -4
  65. package/build/types/map-types/choropleth/map-choropleth-trivariate.d.ts +4 -4
  66. package/build/types/map-types/choropleth/map-value-by-alpha.d.ts +4 -4
  67. package/build/types/map-types/composition/CompositionStatConfig.d.ts +7 -0
  68. package/build/types/map-types/composition/bar/BarMap.d.ts +97 -79
  69. package/build/types/map-types/composition/bar/BarMapConfig.d.ts +76 -54
  70. package/build/types/map-types/composition/coxcomb/CoxcombMap.d.ts +29 -0
  71. package/build/types/map-types/composition/coxcomb/CoxcombMapConfig.d.ts +15 -0
  72. package/build/types/map-types/composition/map-spark.d.ts +5 -5
  73. package/build/types/map-types/composition/map-stripe.d.ts +5 -5
  74. package/build/types/map-types/composition/pie/PieMap.d.ts +1 -5
  75. package/build/types/map-types/composition/stripe/StripeMap.d.ts +19 -2
  76. package/build/types/map-types/composition/stripe/StripeMapConfig.d.ts +11 -0
  77. package/build/types/map-types/composition/waffle/WaffleMap.d.ts +1 -0
  78. package/build/types/map-types/flow/FlowMap.d.ts +121 -0
  79. package/build/types/map-types/flow/FlowMapConfig.d.ts +62 -0
  80. package/build/types/map-types/flow/map-flow.d.ts +5 -5
  81. package/build/types/map-types/proportional-symbol/ProportionalSymbolConfig.d.ts +30 -0
  82. package/build/types/map-types/proportional-symbol/ProportionalSymbolMap.d.ts +4 -0
  83. package/build/types/map-types/proportional-symbol/mushroom/MushroomMap.d.ts +37 -0
  84. package/build/types/map-types/proportional-symbol/mushroom/MushroomMapConfig.d.ts +19 -0
  85. package/build/types/map-types/spark/SparkMap.d.ts +4 -0
  86. package/build/types/map-types/spark/SparkMapConfig.d.ts +32 -0
  87. package/package.json +3 -2
@@ -0,0 +1,39 @@
1
+ import { MapConfig } from '../../core/MapConfig'
2
+ import type { ChoroplethLegendConfig } from '../../legend/choropleth/ChoroplethLegendConfig'
3
+
4
+ /**
5
+ * Configuration specific to choropleth maps
6
+ */
7
+ export interface ChoroplethConfig extends MapConfig {
8
+ /** Choropleth legend configuration. */
9
+ legend?: ChoroplethLegendConfig | false
10
+
11
+ /** Classification. */
12
+ numberOfClasses?: number
13
+ /** Classification method. */
14
+ classificationMethod?: 'quantile' | 'ckmeans' | 'jenks' | 'equinter' | 'threshold'
15
+ /** Thresholds. */
16
+ thresholds?: number[]
17
+ /** Make classif nice. */
18
+ makeClassifNice?: boolean
19
+
20
+ /** Colors. */
21
+ colors?: string[]
22
+ colorFunction?: (t: number) => string
23
+ /** Color scheme type. */
24
+ colorSchemeType?: 'discrete' | 'continuous'
25
+ /** Class to fill style. */
26
+ classToFillStyle?: { [classIndex: number]: string }
27
+
28
+ /** No-data styling. */
29
+ noDataFillStyle?: string
30
+
31
+ /** Value transformation (for continuous schemes). */
32
+ valueTransform?: (x: number) => number
33
+ valueUntransform?: (x: number) => number
34
+ /** Skip normalization. */
35
+ skipNormalization?: boolean
36
+
37
+ /** Diverging schemes. */
38
+ pointOfDivergence?: number
39
+ }
@@ -0,0 +1,48 @@
1
+ import { MapInstance } from '../../core/MapInstance'
2
+
3
+ /**
4
+ * Choropleth map object
5
+ */
6
+ export interface ChoroplethMap extends MapInstance {
7
+ numberOfClasses(): number
8
+ numberOfClasses(n: number): this
9
+
10
+ classificationMethod(): string
11
+ classificationMethod(method: 'quantile' | 'ckmeans' | 'jenks' | 'equinter' | 'threshold'): this
12
+
13
+ thresholds(): number[]
14
+ thresholds(t: number[]): this
15
+
16
+ colors(): string[]
17
+ colors(c: string[]): this
18
+
19
+ colorFunction(): (t: number) => string
20
+ colorFunction(fn: (t: number) => string): this
21
+
22
+ makeClassifNice(): boolean
23
+ makeClassifNice(v: boolean): this
24
+
25
+ classToFillStyle(): any
26
+ classToFillStyle(v: any): this
27
+
28
+ classifier(): any
29
+ classifier(v: any): this
30
+
31
+ colorSchemeType(): string
32
+ colorSchemeType(type: 'discrete' | 'continuous'): this
33
+
34
+ valueTransform(): (x: number) => number
35
+ valueTransform(v: (x: number) => number): this
36
+
37
+ valueUntransform(): (x: number) => number
38
+ valueUntransform(v: (x: number) => number): this
39
+
40
+ pointOfDivergence(): number | null
41
+ pointOfDivergence(v: number | null): this
42
+
43
+ skipNormalization(): boolean
44
+ skipNormalization(v: boolean): this
45
+
46
+ noDataFillStyle(): string
47
+ noDataFillStyle(style: string): this
48
+ }
@@ -0,0 +1,41 @@
1
+ import type { MapConfig } from '../../core/MapConfig'
2
+ import type { TrivariateLegendConfig } from '../../legend/choropleth/TrivariateLegendConfig'
3
+
4
+ /**
5
+ * Ternary color settings for trivariate choropleth maps.
6
+ */
7
+ export interface TrivariateTernarySettings {
8
+ /** Use sextant color mapping instead of continuous tricolore. */
9
+ sextant?: boolean
10
+ /** Array of 6 colors used when sextant mode is enabled. */
11
+ sextantColors?: [string, string, string, string, string, string]
12
+ /** Hue. */
13
+ hue?: number
14
+ /** Chroma. */
15
+ chroma?: number
16
+ /** Lightness. */
17
+ lightness?: number
18
+ /** Contrast. */
19
+ contrast?: number
20
+ /** Spread. */
21
+ spread?: number
22
+ /** Breaks. */
23
+ breaks?: number
24
+ /** Mean centering. */
25
+ meanCentering?: boolean
26
+ }
27
+
28
+ /**
29
+ * Configuration for trivariate choropleth maps.
30
+ */
31
+ export interface TrivariateChoroplethConfig extends MapConfig {
32
+ /** Trivariate choropleth legend configuration. */
33
+ legend?: TrivariateLegendConfig | false
34
+
35
+ /** Ternary codes. */
36
+ ternaryCodes?: [string, string, string]
37
+ /** No data fill style. */
38
+ noDataFillStyle?: string
39
+ /** Ternary settings. */
40
+ ternarySettings?: TrivariateTernarySettings
41
+ }
@@ -0,0 +1,18 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { TrivariateChoroplethConfig, TrivariateTernarySettings } from './TrivariateChoroplethConfig'
3
+
4
+ type TernarySettings = TrivariateTernarySettings
5
+
6
+ /**
7
+ * Trivariate choropleth map type.
8
+ */
9
+ export interface TrivariateChoroplethMap extends MapInstance {
10
+ ternaryCodes(): string[]
11
+ ternaryCodes(v: string[]): this
12
+
13
+ noDataFillStyle(): string
14
+ noDataFillStyle(v: string): this
15
+
16
+ ternarySettings(): TernarySettings
17
+ ternarySettings(v: Partial<TernarySettings>): this
18
+ }
@@ -0,0 +1,8 @@
1
+ import type { ChoroplethConfig } from './ChoroplethConfig'
2
+
3
+ /**
4
+ * Configuration for value-by-alpha choropleth maps.
5
+ */
6
+ export interface ValueByAlphaConfig extends ChoroplethConfig {
7
+ opacityScale?: (value: number) => number
8
+ }
@@ -0,0 +1,9 @@
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+
3
+ /**
4
+ * Value-by-alpha choropleth map type.
5
+ */
6
+ export interface ValueByAlphaMap extends MapInstance {
7
+ opacityScale(): ((value: number) => number) | null
8
+ opacityScale(v: ((value: number) => number) | null): this
9
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Statistical configuration for composition maps (pie, bar, waffle, stripe).
3
+ *
4
+ * Preferred API:
5
+ * - `map.stat('composition', { ... })`
6
+ * - `map.encoding('composition', { stat: 'composition' })`
7
+ *
8
+ * Either `eurostatDatasetCode` + `categoryParameter` (Eurostat API path)
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.
13
+ */
14
+ export interface CompositionStatConfig<TCustomData = Record<string, Record<string, number>>> {
15
+ /**
16
+ * Custom data keyed by region ID then category code.
17
+ * Use instead of `eurostatDatasetCode` when supplying data directly.
18
+ * When `customData` is set, `eurostatDatasetCode` and `categoryParameter`
19
+ * are not required.
20
+ * @example
21
+ * customData: {
22
+ * ES: { cat1: 2, cat2: 3, cat3: 5 },
23
+ * DE: { cat1: 4, cat2: 1, cat3: 6 },
24
+ * }
25
+ */
26
+ customData?: TCustomData
27
+
28
+ /** Eurostat dataset code. Required when not using `customData`. */
29
+ eurostatDatasetCode?: string
30
+ /** Filters. */
31
+ filters?: Record<string, any>
32
+ /** Unit text. */
33
+ unitText?: string
34
+ preprocess?: (regionId: string, value: any) => any
35
+ transform?: (value: number) => number
36
+
37
+ /** Category parameter. Required when not using `customData`. */
38
+ categoryParameter?: string
39
+ /** Category codes. */
40
+ categoryCodes?: string[]
41
+ /** Category labels. */
42
+ categoryLabels?: string[]
43
+ /** Category colors. */
44
+ categoryColors?: string[]
45
+ /** Total code. */
46
+ totalCode?: string
47
+
48
+ /** Legacy nested API supported by buildStatCompositionMethod. */
49
+ stat?: {
50
+ /** Eurostat dataset code. */
51
+ eurostatDatasetCode?: string
52
+ /** Filters. */
53
+ filters?: Record<string, any>
54
+ /** Unit text. */
55
+ unitText?: string
56
+ preprocess?: (regionId: string, value: any) => any
57
+ transform?: (value: number) => number
58
+ }
59
+ }
@@ -0,0 +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
+ 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
+ }
@@ -0,0 +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
+ /** 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
+ }
@@ -0,0 +1,75 @@
1
+ import type { MapInstance } from '../../../core/MapInstance'
2
+ import type { CoxcombStatConfig } from './CoxcombStatConfig'
3
+ import type { CoxcombLegendConfig } from '../../../legend/composition/CoxcombLegendConfig'
4
+
5
+ /**
6
+ * Coxcomb map type.
7
+ */
8
+ export interface CoxcombMap extends MapInstance {
9
+ legend(): CoxcombLegendConfig | false
10
+ legend(config: CoxcombLegendConfig | false): this
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
+
29
+ catColors(): any
30
+ catColors(v: any): this
31
+
32
+ catLabels(): any
33
+ catLabels(v: any): this
34
+
35
+ noDataFillStyle(): string
36
+ noDataFillStyle(v: string): this
37
+
38
+ /** @deprecated Use coxcombSettings({ maxRadius }) */
39
+ coxcombMaxRadius(): number
40
+ /** @deprecated Use coxcombSettings({ maxRadius }) */
41
+ coxcombMaxRadius(v: number): this
42
+
43
+ /** @deprecated Use coxcombSettings({ minRadius }) */
44
+ coxcombMinRadius(): number
45
+ /** @deprecated Use coxcombSettings({ minRadius }) */
46
+ coxcombMinRadius(v: number): this
47
+
48
+ /** @deprecated Use coxcombSettings({ rings }) */
49
+ coxcombRings(): boolean
50
+ /** @deprecated Use coxcombSettings({ rings }) */
51
+ coxcombRings(v: boolean): this
52
+
53
+ /** @deprecated Use coxcombSettings({ strokeFill }) */
54
+ coxcombStrokeFill(): string
55
+ /** @deprecated Use coxcombSettings({ strokeFill }) */
56
+ coxcombStrokeFill(v: string): this
57
+
58
+ /** @deprecated Use coxcombSettings({ strokeWidth }) */
59
+ coxcombStrokeWidth(): number
60
+ /** @deprecated Use coxcombSettings({ strokeWidth }) */
61
+ coxcombStrokeWidth(v: number): this
62
+
63
+ hoverColor(): string
64
+ hoverColor(v: string): this
65
+
66
+ classifierSize(): any
67
+ classifierSize(v: any): this
68
+
69
+ /** @deprecated Use coxcombSettings({ offsets }) */
70
+ coxcombOffsets(): { x: number; y: number }
71
+ /** @deprecated Use coxcombSettings({ offsets }) */
72
+ coxcombOffsets(v: { x: number; y: number }): this
73
+
74
+ statCoxcomb(config: CoxcombStatConfig): this
75
+ }
@@ -0,0 +1,47 @@
1
+ import type { MapConfig } from '../../../core/MapConfig'
2
+ import type { CoxcombLegendConfig } from '../../../legend/composition/CoxcombLegendConfig'
3
+
4
+ /**
5
+ * Configuration for coxcomb (polar area) chart maps.
6
+ */
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 */
18
+ /** Coxcomb min radius. */
19
+ coxcombMinRadius?: number
20
+ /** @deprecated Use coxcombSettings.maxRadius */
21
+ /** Coxcomb max radius. */
22
+ coxcombMaxRadius?: number
23
+ /** @deprecated Use coxcombSettings.strokeFill */
24
+ /** Coxcomb stroke fill. */
25
+ coxcombStrokeFill?: string
26
+ /** @deprecated Use coxcombSettings.strokeWidth */
27
+ /** Coxcomb stroke width. */
28
+ coxcombStrokeWidth?: number
29
+ /** @deprecated Use coxcombSettings.rings */
30
+ /** Coxcomb rings. */
31
+ coxcombRings?: boolean
32
+ /** @deprecated Use coxcombSettings.offsets */
33
+ /** Coxcomb offsets. */
34
+ coxcombOffsets?: { x: number; y: number }
35
+ /** Hover color. */
36
+ hoverColor?: string
37
+ /** Cat colors. */
38
+ catColors?: Record<string, string>
39
+ /** Cat labels. */
40
+ catLabels?: Record<string, string>
41
+ /** No data fill style. */
42
+ noDataFillStyle?: string
43
+ /** Classifier size. */
44
+ classifierSize?: any
45
+ /** Legend. */
46
+ legend?: CoxcombLegendConfig | false
47
+ }
@@ -0,0 +1,13 @@
1
+ import { CompositionStatConfig } from '../CompositionStatConfig'
2
+
3
+ /**
4
+ * Statistical configuration for coxcomb maps.
5
+ */
6
+ export interface CoxcombStatConfig extends CompositionStatConfig<Record<string, Record<string, Record<string, number>>>> {
7
+ /** Eurostat path. */
8
+ timeParameter?: string
9
+ /** Times. */
10
+ times: string[]
11
+ /** Time labels. */
12
+ timeLabels?: string[]
13
+ }
@@ -0,0 +1,84 @@
1
+ import type { MapInstance } from '../../../core/MapInstance'
2
+ import type { CompositionStatConfig } from '../CompositionStatConfig'
3
+ import type { PieChartLegendConfig } from '../../../legend/composition/PieChartLegendConfig'
4
+
5
+ /**
6
+ * Pie map type.
7
+ */
8
+ export interface PieMap extends MapInstance {
9
+ legend(): PieChartLegendConfig | false
10
+ legend(config: PieChartLegendConfig | false): this
11
+
12
+ catColors(): any
13
+ catColors(v: any): this
14
+
15
+ catLabels(): any
16
+ catLabels(v: any): this
17
+
18
+ showOnlyWhenComplete(): boolean
19
+ showOnlyWhenComplete(v: boolean): this
20
+
21
+ noDataFillStyle(): string
22
+ noDataFillStyle(v: string): this
23
+
24
+ compositionSettings(): {
25
+ type?: 'flag' | 'pie' | 'ring' | 'segment' | 'radar' | 'agepyramid' | 'halftone'
26
+ /** Radar wedge radius mode: share within symbol (default) or absolute values across map. */
27
+ radarValueMode?: 'share' | 'absolute'
28
+ minSize?: number
29
+ maxSize?: number
30
+ strokeFill?: string
31
+ strokeWidth?: number
32
+ reverseOrder?: boolean
33
+ /** Category code order for composition rendering. */
34
+ order?: string[]
35
+ stripesOrientation?: number
36
+ offsetAngle?: number
37
+ agePyramidHeightFactor?: number
38
+ otherColor?: string
39
+ otherText?: string
40
+ }
41
+ compositionSettings(v: {
42
+ type?: 'flag' | 'pie' | 'ring' | 'segment' | 'radar' | 'agepyramid' | 'halftone'
43
+ /** Radar wedge radius mode: share within symbol (default) or absolute values across map. */
44
+ radarValueMode?: 'share' | 'absolute'
45
+ minSize?: number
46
+ maxSize?: number
47
+ strokeFill?: string
48
+ strokeWidth?: number
49
+ reverseOrder?: boolean
50
+ /** Category code order for composition rendering. */
51
+ order?: string[]
52
+ stripesOrientation?: number
53
+ offsetAngle?: number
54
+ agePyramidHeightFactor?: number
55
+ otherColor?: string
56
+ otherText?: string
57
+ }): this
58
+
59
+ dorling(): boolean
60
+ dorling(v: boolean): this
61
+
62
+ compositionTotalCode(): string | undefined
63
+ compositionTotalCode(v: string | undefined): this
64
+
65
+ statCodes(): string[] | undefined
66
+ statCodes(v: string[] | undefined): this
67
+
68
+ statPie(config: CompositionStatConfig): this
69
+ /** @deprecated Legacy positional signature. Prefer statPie({ categoryParameter, categoryCodes, ... }). */
70
+ statPie(
71
+ /** Config. */
72
+ config: CompositionStatConfig,
73
+ /** Category parameter. */
74
+ categoryParameter?: string,
75
+ /** Category codes. */
76
+ categoryCodes?: string[],
77
+ /** Category labels. */
78
+ categoryLabels?: string[],
79
+ /** Category colors. */
80
+ categoryColors?: string[],
81
+ /** Total code. */
82
+ totalCode?: string
83
+ ): this
84
+ }
@@ -0,0 +1,50 @@
1
+ import type { MapConfig } from '../../../core/MapConfig'
2
+ import type { PieChartLegendConfig } from '../../../legend/composition/PieChartLegendConfig'
3
+
4
+ /**
5
+ * Configuration for pie chart composition maps.
6
+ */
7
+ export interface PieMapConfig extends MapConfig {
8
+ /** Pie-specific rendering settings. */
9
+ pieSettings?: {
10
+ innerRadius?: number
11
+ }
12
+ /** Consolidated composition symbol settings. */
13
+ compositionSettings?: {
14
+ type?: 'flag' | 'pie' | 'ring' | 'segment' | 'radar' | 'agepyramid' | 'halftone'
15
+ /** Radar wedge radius mode: share within symbol (default) or absolute values across map. */
16
+ radarValueMode?: 'share' | 'absolute'
17
+ minSize?: number
18
+ maxSize?: number
19
+ strokeFill?: string
20
+ strokeWidth?: number
21
+ reverseOrder?: boolean
22
+ /** Category code order for composition rendering. */
23
+ order?: string[]
24
+ stripesOrientation?: number
25
+ offsetAngle?: number
26
+ agePyramidHeightFactor?: number
27
+ otherColor?: string
28
+ otherText?: string
29
+ }
30
+ /** Tooltip pie radius. */
31
+ tooltipPieRadius?: number
32
+ /** Tooltip pie inner radius. */
33
+ tooltipPieInnerRadius?: number
34
+ /** Cat colors. */
35
+ catColors?: Record<string, string>
36
+ /** Cat labels. */
37
+ catLabels?: Record<string, string>
38
+ /** Show only when complete. */
39
+ showOnlyWhenComplete?: boolean
40
+ /** No data fill style. */
41
+ noDataFillStyle?: string
42
+ /** Dorling. */
43
+ dorling?: boolean
44
+ /** Total code used to compute optional 'other' composition share. */
45
+ compositionTotalCode?: string
46
+ /** Stat codes. */
47
+ statCodes?: string[]
48
+ /** Legend. */
49
+ legend?: PieChartLegendConfig | false
50
+ }