eurostat-map 4.4.3 → 4.4.5

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 (39) hide show
  1. package/README.md +148 -147
  2. package/build/215.eurostatmap.min.js +1 -1
  3. package/build/215.eurostatmap.min.js.map +1 -1
  4. package/build/eurostatmap.js +2594 -1497
  5. package/build/eurostatmap.min.js +2 -2
  6. package/build/eurostatmap.min.js.map +1 -1
  7. package/build/package.json +87 -87
  8. package/build/types/core/MapConfig.d.ts +6 -0
  9. package/build/types/core/MapInstance.d.ts +8 -0
  10. package/build/types/index.d.ts +2 -1
  11. package/build/types/legend/choropleth/legend-choropleth-bivariate.d.ts +2 -2
  12. package/build/types/legend/choropleth/legend-choropleth-trivariate.d.ts +2 -2
  13. package/build/types/legend/choropleth/legend-choropleth.d.ts +2 -2
  14. package/build/types/legend/composition/legend-bar-chart.d.ts +2 -2
  15. package/build/types/legend/flow/legend-flow.d.ts +2 -2
  16. package/build/types/legend/legend-categorical.d.ts +2 -2
  17. package/build/types/legend/legend-continuous.d.ts +2 -2
  18. package/build/types/legend/legend-discrete.d.ts +2 -2
  19. package/build/types/legend/legend.d.ts +13 -13
  20. package/build/types/legend/proportional-symbol/legend-proportional-symbols.d.ts +2 -2
  21. package/build/types/map-types/CategoricalMapConfig.d.ts +11 -11
  22. package/build/types/map-types/choropleth/TrivariateChoroplethConfig.d.ts +25 -16
  23. package/build/types/map-types/choropleth/TrivariateChoroplethMap.d.ts +5 -2
  24. package/build/types/map-types/choropleth/map-choropleth-bivariate.d.ts +4 -4
  25. package/build/types/map-types/choropleth/map-choropleth-trivariate.d.ts +4 -4
  26. package/build/types/map-types/choropleth/map-value-by-alpha.d.ts +4 -4
  27. package/build/types/map-types/composition/CompositionStatConfig.d.ts +19 -3
  28. package/build/types/map-types/composition/coxcomb/CoxcombStatConfig.d.ts +1 -4
  29. package/build/types/map-types/composition/map-spark.d.ts +5 -5
  30. package/build/types/map-types/composition/map-stripe.d.ts +5 -5
  31. package/build/types/map-types/composition/pie/PieMap.d.ts +41 -22
  32. package/build/types/map-types/composition/pie/PieMapConfig.d.ts +24 -16
  33. package/build/types/map-types/composition/stripe/StripeMap.d.ts +12 -1
  34. package/build/types/map-types/composition/stripe/StripeMapConfig.d.ts +6 -0
  35. package/build/types/map-types/composition/waffle/WaffleMap.d.ts +45 -0
  36. package/build/types/map-types/composition/waffle/WaffleMapConfig.d.ts +24 -10
  37. package/build/types/map-types/flow/map-flow.d.ts +5 -5
  38. package/build/types/map-types/spark/SparkStatConfig.d.ts +21 -5
  39. package/package.json +15 -15
@@ -1,87 +1,87 @@
1
- {
2
- "name": "eurostat-map",
3
- "version": "4.4.3",
4
- "description": "Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.",
5
- "keywords": [
6
- "eurostat",
7
- "statistics",
8
- "europe",
9
- "SVG",
10
- "NUTS",
11
- "map",
12
- "D3",
13
- "cartography",
14
- "thematic",
15
- "mapping",
16
- "eurostat-map",
17
- "dataviz",
18
- "data visualization"
19
- ],
20
- "homepage": "https://github.com/eurostat/eurostat-map",
21
- "author": "",
22
- "license": "EUPL-1.2",
23
- "repository": {
24
- "type": "git",
25
- "url": "https://github.com/eurostat/eurostat-map.git"
26
- },
27
- "main": "build/eurostatmap.min.js",
28
- "unpkg": "build/eurostatmap.min.js",
29
- "module": "build/eurostatmap.js",
30
- "types": "build/types/index.d.ts",
31
- "typings": "build/types/index.d.ts",
32
- "files": [
33
- "build"
34
- ],
35
- "scripts": {
36
- "start": "webpack --config webpack/webpack.config.dev.js",
37
- "server": "webpack-dev-server --open --watch",
38
- "build-types": "tsc --project tsconfig.json",
39
- "build-prod": "npm run build-types && webpack --config webpack/webpack.config.prod.js",
40
- "build-prod-debug": "webpack --config webpack/webpack.config.debug-size.js",
41
- "format": "prettier --write .",
42
- "test": "jest",
43
- "type-check": "tsc --noEmit"
44
- },
45
- "dependencies": {
46
- "d3-array": "^3.2.4",
47
- "d3-axis": "^3.0.0",
48
- "d3-ease": "^3.0.1",
49
- "d3-fetch": "^3.0.1",
50
- "d3-force": "^3.0.0",
51
- "d3-format": "^3.1.0",
52
- "d3-geo": "^3.1.1",
53
- "d3-geo-projection": "^3.0.0",
54
- "d3-interpolate": "^3.0.1",
55
- "d3-scale": "^4.0.2",
56
- "d3-scale-chromatic": "^3.1.0",
57
- "d3-selection": "^3.0.0",
58
- "d3-shape": "^3.2.0",
59
- "d3-svg-annotation": "^2.5.1",
60
- "d3-zoom": "^3.0.0",
61
- "idb-keyval": "^6.2.2",
62
- "jsonstat-toolkit": "^1.0.8",
63
- "proj4": "^2.17.0",
64
- "simple-statistics": "^7.8.8",
65
- "topojson-client": "^3.1.0"
66
- },
67
- "overrides": {
68
- "d3-color": "3.1.0"
69
- },
70
- "devDependencies": {
71
- "@babel/core": "^7.22.6",
72
- "@babel/plugin-transform-runtime": "^7.22.6",
73
- "@babel/preset-env": "^7.22.6",
74
- "@babel/runtime": "^7.12.1",
75
- "babel-loader": "^9.1.2",
76
- "css-loader": "^7.1.2",
77
- "prettier": "^3.4.1",
78
- "style-loader": "^4.0.0",
79
- "ts-loader": "^9.5.4",
80
- "typescript": "^5.9.3",
81
- "webpack": "^5.88.1",
82
- "webpack-bundle-analyzer": "^4.10.2",
83
- "webpack-cli": "^5.0.0",
84
- "webpack-dev-server": "^5.2.2",
85
- "webpack-livereload-plugin": "^3.0.2"
86
- }
87
- }
1
+ {
2
+ "name": "eurostat-map",
3
+ "version": "4.4.5",
4
+ "description": "Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.",
5
+ "keywords": [
6
+ "eurostat",
7
+ "statistics",
8
+ "europe",
9
+ "SVG",
10
+ "NUTS",
11
+ "map",
12
+ "D3",
13
+ "cartography",
14
+ "thematic",
15
+ "mapping",
16
+ "eurostat-map",
17
+ "dataviz",
18
+ "data visualization"
19
+ ],
20
+ "homepage": "https://github.com/eurostat/eurostat-map",
21
+ "author": "",
22
+ "license": "EUPL-1.2",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/eurostat/eurostat-map.git"
26
+ },
27
+ "main": "build/eurostatmap.min.js",
28
+ "unpkg": "build/eurostatmap.min.js",
29
+ "module": "build/eurostatmap.js",
30
+ "types": "build/types/index.d.ts",
31
+ "typings": "build/types/index.d.ts",
32
+ "files": [
33
+ "build"
34
+ ],
35
+ "scripts": {
36
+ "start": "webpack --config webpack/webpack.config.dev.js",
37
+ "server": "webpack-dev-server --open --watch",
38
+ "build-types": "tsc --project tsconfig.json",
39
+ "build-prod": "npm run build-types && webpack --config webpack/webpack.config.prod.js",
40
+ "build-prod-debug": "webpack --config webpack/webpack.config.debug-size.js",
41
+ "format": "prettier --write .",
42
+ "test": "jest",
43
+ "type-check": "tsc --noEmit"
44
+ },
45
+ "dependencies": {
46
+ "d3-array": "^3.2.4",
47
+ "d3-axis": "^3.0.0",
48
+ "d3-ease": "^3.0.1",
49
+ "d3-fetch": "^3.0.1",
50
+ "d3-force": "^3.0.0",
51
+ "d3-format": "^3.1.0",
52
+ "d3-geo": "^3.1.1",
53
+ "d3-geo-projection": "^3.0.0",
54
+ "d3-interpolate": "^3.0.1",
55
+ "d3-scale": "^4.0.2",
56
+ "d3-scale-chromatic": "^3.1.0",
57
+ "d3-selection": "^3.0.0",
58
+ "d3-shape": "^3.2.0",
59
+ "d3-svg-annotation": "^2.5.1",
60
+ "d3-zoom": "^3.0.0",
61
+ "idb-keyval": "^6.2.2",
62
+ "jsonstat-toolkit": "^1.0.8",
63
+ "proj4": "^2.17.0",
64
+ "simple-statistics": "^7.8.8",
65
+ "topojson-client": "^3.1.0"
66
+ },
67
+ "overrides": {
68
+ "d3-color": "3.1.0"
69
+ },
70
+ "devDependencies": {
71
+ "@babel/core": "^7.22.6",
72
+ "@babel/plugin-transform-runtime": "^7.22.6",
73
+ "@babel/preset-env": "^7.22.6",
74
+ "@babel/runtime": "^7.12.1",
75
+ "babel-loader": "^9.1.2",
76
+ "css-loader": "^7.1.2",
77
+ "prettier": "^3.4.1",
78
+ "style-loader": "^4.0.0",
79
+ "ts-loader": "^9.5.4",
80
+ "typescript": "^5.9.3",
81
+ "webpack": "^5.88.1",
82
+ "webpack-bundle-analyzer": "^4.10.2",
83
+ "webpack-cli": "^5.0.0",
84
+ "webpack-dev-server": "^5.2.2",
85
+ "webpack-livereload-plugin": "^3.0.2"
86
+ }
87
+ }
@@ -112,6 +112,9 @@ export interface MapConfig {
112
112
  /** Show/hide inset map toggle button. */
113
113
  insetsButton?: boolean
114
114
 
115
+ /** Show/hide legend toggle button. */
116
+ legendButton?: boolean
117
+
115
118
  /** Show/hide placename labels. */
116
119
  placenames?: boolean
117
120
 
@@ -151,6 +154,9 @@ export interface MapConfig {
151
154
  /** Position adjustment for insets button: [x, y] */
152
155
  insetsButtonPosition?: [number, number]
153
156
 
157
+ /** Position adjustment for legend button: [x, y] */
158
+ legendButtonPosition?: [number, number]
159
+
154
160
  /** Pointer hover color for NUTS regions. */
155
161
  hoverColor?: string
156
162
 
@@ -266,6 +266,10 @@ export interface MapInstance {
266
266
  insetsButton(): boolean
267
267
  insetsButton(show: boolean): this
268
268
 
269
+ /** Show/hide legend toggle button. */
270
+ legendButton(): boolean
271
+ legendButton(show: boolean): this
272
+
269
273
  /** Filter function for placename labels. */
270
274
  placenamesFilter(): ((name: any) => boolean) | undefined
271
275
  placenamesFilter(fn: (name: any) => boolean): this
@@ -314,6 +318,10 @@ export interface MapInstance {
314
318
  insetsButtonPosition(): [number, number] | undefined
315
319
  insetsButtonPosition(pos: [number, number]): this
316
320
 
321
+ /** Position adjustment for legend button: [x, y] */
322
+ legendButtonPosition(): [number, number] | undefined
323
+ legendButtonPosition(pos: [number, number]): this
324
+
317
325
  /** Pointer hover color for NUTS regions. */
318
326
  hoverColor(): string
319
327
  hoverColor(color: string): this
@@ -15,7 +15,7 @@ import type { ValueByAlphaConfig } from './map-types/choropleth/ValueByAlphaConf
15
15
  import type { ValueByAlphaMap } from './map-types/choropleth/ValueByAlphaMap'
16
16
  import type { BivariateChoroplethConfig } from './map-types/choropleth/BivariateChoroplethConfig'
17
17
  import type { BivariateChoroplethMap } from './map-types/choropleth/BivariateChoroplethMap'
18
- import type { TrivariateChoroplethConfig } from './map-types/choropleth/TrivariateChoroplethConfig'
18
+ import type { TrivariateChoroplethConfig, TrivariateTernarySettings } from './map-types/choropleth/TrivariateChoroplethConfig'
19
19
  import type { TrivariateChoroplethMap } from './map-types/choropleth/TrivariateChoroplethMap'
20
20
 
21
21
  // Categorical map types
@@ -122,6 +122,7 @@ export type {
122
122
  BivariateChoroplethConfig,
123
123
  BivariateChoroplethMap,
124
124
  TrivariateChoroplethConfig,
125
+ TrivariateTernarySettings,
125
126
  TrivariateChoroplethMap,
126
127
  }
127
128
 
@@ -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
@@ -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,6 +1,30 @@
1
1
  import type { MapConfig } from '../../core/MapConfig'
2
2
  import type { TrivariateLegendConfig } from '../../legend/choropleth/TrivariateLegendConfig'
3
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
+
4
28
  /**
5
29
  * Configuration for trivariate choropleth maps.
6
30
  */
@@ -13,20 +37,5 @@ export interface TrivariateChoroplethConfig extends MapConfig {
13
37
  /** No data fill style. */
14
38
  noDataFillStyle?: string
15
39
  /** Ternary settings. */
16
- ternarySettings?: {
17
- /** Hue. */
18
- hue?: number
19
- /** Chroma. */
20
- chroma?: number
21
- /** Lightness. */
22
- lightness?: number
23
- /** Contrast. */
24
- contrast?: number
25
- /** Spread. */
26
- spread?: number
27
- /** Breaks. */
28
- breaks?: number
29
- /** Mean centering. */
30
- meanCentering?: boolean
31
- }
40
+ ternarySettings?: TrivariateTernarySettings
32
41
  }
@@ -1,4 +1,7 @@
1
1
  import type { MapInstance } from '../../core/MapInstance'
2
+ import type { TrivariateChoroplethConfig, TrivariateTernarySettings } from './TrivariateChoroplethConfig'
3
+
4
+ type TernarySettings = TrivariateTernarySettings
2
5
 
3
6
  /**
4
7
  * Trivariate choropleth map type.
@@ -10,6 +13,6 @@ export interface TrivariateChoroplethMap extends MapInstance {
10
13
  noDataFillStyle(): string
11
14
  noDataFillStyle(v: string): this
12
15
 
13
- ternarySettings(): any
14
- ternarySettings(v: any): this
16
+ ternarySettings(): TernarySettings
17
+ ternarySettings(v: Partial<TernarySettings>): this
15
18
  }
@@ -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,24 @@
1
1
  /**
2
2
  * Statistical configuration for composition maps (pie, bar, waffle, stripe).
3
+ *
4
+ * Either `eurostatDatasetCode` + `categoryParameter` (Eurostat API path)
5
+ * or `customData` (custom data path) must be provided.
3
6
  */
4
- export interface CompositionStatConfig {
5
- /** Eurostat dataset code. */
7
+ export interface CompositionStatConfig<TCustomData = Record<string, Record<string, number>>> {
8
+ /**
9
+ * Custom data keyed by region ID then category code.
10
+ * Use instead of `eurostatDatasetCode` when supplying data directly.
11
+ * When `customData` is set, `eurostatDatasetCode` and `categoryParameter`
12
+ * are not required.
13
+ * @example
14
+ * customData: {
15
+ * ES: { cat1: 2, cat2: 3, cat3: 5 },
16
+ * DE: { cat1: 4, cat2: 1, cat3: 6 },
17
+ * }
18
+ */
19
+ customData?: TCustomData
20
+
21
+ /** Eurostat dataset code. Required when not using `customData`. */
6
22
  eurostatDatasetCode?: string
7
23
  /** Filters. */
8
24
  filters?: Record<string, any>
@@ -10,7 +26,7 @@ export interface CompositionStatConfig {
10
26
  unitText?: string
11
27
  transform?: (value: number) => number
12
28
 
13
- /** Category parameter. */
29
+ /** Category parameter. Required when not using `customData`. */
14
30
  categoryParameter?: string
15
31
  /** Category codes. */
16
32
  categoryCodes?: string[]
@@ -3,14 +3,11 @@ import { CompositionStatConfig } from '../CompositionStatConfig'
3
3
  /**
4
4
  * Statistical configuration for coxcomb maps.
5
5
  */
6
- export interface CoxcombStatConfig extends CompositionStatConfig {
6
+ export interface CoxcombStatConfig extends CompositionStatConfig<Record<string, Record<string, Record<string, number>>>> {
7
7
  /** Eurostat path. */
8
8
  timeParameter?: string
9
9
  /** Times. */
10
10
  times: string[]
11
11
  /** Time labels. */
12
12
  timeLabels?: string[]
13
-
14
- /** Custom data path. */
15
- customData?: Record<string, Record<string, Record<string, number>>>
16
13
  }
@@ -1,5 +1,5 @@
1
- import type { MapInstance } from '../../core/MapInstance'
2
- import type { CompositionMapConfig } from './composition-map'
3
-
4
- /** Creates a sparkline map instance */
5
- export function map(config?: CompositionMapConfig): MapInstance
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { CompositionMapConfig } from './composition-map'
3
+
4
+ /** Creates a sparkline map instance */
5
+ export function map(config?: CompositionMapConfig): MapInstance
@@ -1,5 +1,5 @@
1
- import type { MapInstance } from '../../core/MapInstance'
2
- import type { CompositionMapConfig } from './composition-map'
3
-
4
- /** Creates a stripe composition map instance */
5
- export function map(config?: CompositionMapConfig): MapInstance
1
+ import type { MapInstance } from '../../core/MapInstance'
2
+ import type { CompositionMapConfig } from './composition-map'
3
+
4
+ /** Creates a stripe composition map instance */
5
+ export function map(config?: CompositionMapConfig): MapInstance
@@ -21,32 +21,51 @@ export interface PieMap extends MapInstance {
21
21
  noDataFillStyle(): string
22
22
  noDataFillStyle(v: string): this
23
23
 
24
- pieMaxRadius(): number
25
- pieMaxRadius(v: number): this
26
-
27
- pieMinRadius(): number
28
- pieMinRadius(v: number): this
29
-
30
- pieChartInnerRadius(): number
31
- pieChartInnerRadius(v: number): this
32
-
33
- pieOtherColor(): string
34
- pieOtherColor(v: string): this
35
-
36
- pieOtherText(): string
37
- pieOtherText(v: string): this
38
-
39
- pieStrokeFill(): string
40
- pieStrokeFill(v: string): this
41
-
42
- pieStrokeWidth(): number
43
- pieStrokeWidth(v: number): this
24
+ pieSettings(): {
25
+ innerRadius?: number
26
+ }
27
+ pieSettings(v: { innerRadius?: number }): this
28
+
29
+ compositionSettings(): {
30
+ type?: 'flag' | 'pie' | 'ring' | 'segment' | 'radar' | 'agepyramid' | 'halftone'
31
+ /** Radar wedge radius mode: share within symbol (default) or absolute values across map. */
32
+ radarValueMode?: 'share' | 'absolute'
33
+ minSize?: number
34
+ maxSize?: number
35
+ strokeFill?: string
36
+ strokeWidth?: number
37
+ reverseOrder?: boolean
38
+ /** Category code order for composition rendering. */
39
+ order?: string[]
40
+ stripesOrientation?: number
41
+ offsetAngle?: number
42
+ agePyramidHeightFactor?: number
43
+ otherColor?: string
44
+ otherText?: string
45
+ }
46
+ compositionSettings(v: {
47
+ type?: 'flag' | 'pie' | 'ring' | 'segment' | 'radar' | 'agepyramid' | 'halftone'
48
+ /** Radar wedge radius mode: share within symbol (default) or absolute values across map. */
49
+ radarValueMode?: 'share' | 'absolute'
50
+ minSize?: number
51
+ maxSize?: number
52
+ strokeFill?: string
53
+ strokeWidth?: number
54
+ reverseOrder?: boolean
55
+ /** Category code order for composition rendering. */
56
+ order?: string[]
57
+ stripesOrientation?: number
58
+ offsetAngle?: number
59
+ agePyramidHeightFactor?: number
60
+ otherColor?: string
61
+ otherText?: string
62
+ }): this
44
63
 
45
64
  dorling(): boolean
46
65
  dorling(v: boolean): this
47
66
 
48
- pieTotalCode(): string | undefined
49
- pieTotalCode(v: string | undefined): this
67
+ compositionTotalCode(): string | undefined
68
+ compositionTotalCode(v: string | undefined): this
50
69
 
51
70
  statCodes(): string[] | undefined
52
71
  statCodes(v: string[] | undefined): this