eurostat-map 4.4.4 → 4.5.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 +177 -148
- package/build/215.eurostatmap.min.js +1 -1
- package/build/eurostatmap.js +19934 -15872
- package/build/eurostatmap.min.js +2 -2
- package/build/eurostatmap.min.js.map +1 -1
- package/build/package.json +87 -87
- 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 +39 -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/map-types/choropleth/TrivariateChoroplethConfig.d.ts +25 -16
- package/build/types/map-types/choropleth/TrivariateChoroplethMap.d.ts +5 -2
- 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/pie/PieMap.d.ts +5 -5
- package/build/types/map-types/composition/pie/PieMapConfig.d.ts +2 -0
- 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 +46 -0
- package/build/types/map-types/composition/waffle/WaffleMapConfig.d.ts +24 -10
- 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/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 +6 -3
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { MapInstance } from '../../../core/MapInstance'
|
|
2
|
+
import type { CompositionStatConfig } from '../CompositionStatConfig'
|
|
3
|
+
import type { StripeCompositionLegendConfig } from '../../../legend/composition/StripeCompositionLegendConfig'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Stripe map type.
|
|
7
|
+
*/
|
|
8
|
+
export interface StripeMap extends MapInstance {
|
|
9
|
+
legend(): StripeCompositionLegendConfig | false
|
|
10
|
+
legend(config: StripeCompositionLegendConfig | false): this
|
|
11
|
+
|
|
12
|
+
stripeSettings(): {
|
|
13
|
+
width: number
|
|
14
|
+
orientation: number
|
|
15
|
+
otherColor: string
|
|
16
|
+
otherText: string
|
|
17
|
+
}
|
|
18
|
+
stripeSettings(v: { width?: number; orientation?: number; otherColor?: string; otherText?: string }): this
|
|
19
|
+
|
|
20
|
+
/** @deprecated Use stripeSettings({ width }) */
|
|
21
|
+
stripeWidth(): number
|
|
22
|
+
/** @deprecated Use stripeSettings({ width }) */
|
|
23
|
+
stripeWidth(v: number): this
|
|
24
|
+
|
|
25
|
+
/** @deprecated Use stripeSettings({ orientation }) */
|
|
26
|
+
stripeOrientation(): number
|
|
27
|
+
/** @deprecated Use stripeSettings({ orientation }) */
|
|
28
|
+
stripeOrientation(v: number): this
|
|
29
|
+
|
|
30
|
+
catColors(): any
|
|
31
|
+
catColors(v: any): this
|
|
32
|
+
|
|
33
|
+
catLabels(): any
|
|
34
|
+
catLabels(v: any): this
|
|
35
|
+
|
|
36
|
+
/** @deprecated Use stripeSettings({ otherColor }) */
|
|
37
|
+
stripeOtherColor(): string
|
|
38
|
+
/** @deprecated Use stripeSettings({ otherColor }) */
|
|
39
|
+
stripeOtherColor(v: string): this
|
|
40
|
+
|
|
41
|
+
/** @deprecated Use stripeSettings({ otherText }) */
|
|
42
|
+
stripeOtherText(): string
|
|
43
|
+
/** @deprecated Use stripeSettings({ otherText }) */
|
|
44
|
+
stripeOtherText(v: string): this
|
|
45
|
+
|
|
46
|
+
showOnlyWhenComplete(): boolean
|
|
47
|
+
showOnlyWhenComplete(v: boolean): this
|
|
48
|
+
|
|
49
|
+
noDataFillStyle(): string
|
|
50
|
+
noDataFillStyle(v: string): this
|
|
51
|
+
|
|
52
|
+
pieChartRadius(): number
|
|
53
|
+
pieChartRadius(v: number): this
|
|
54
|
+
|
|
55
|
+
pieChartInnerRadius(): number
|
|
56
|
+
pieChartInnerRadius(v: number): this
|
|
57
|
+
|
|
58
|
+
stripeTotalCode(): string | undefined
|
|
59
|
+
stripeTotalCode(v: string | undefined): this
|
|
60
|
+
|
|
61
|
+
statCodes(): string[] | undefined
|
|
62
|
+
statCodes(v: string[] | undefined): this
|
|
63
|
+
|
|
64
|
+
statStripe(config: CompositionStatConfig): this
|
|
65
|
+
/** @deprecated Legacy positional signature. Prefer statStripe({ categoryParameter, categoryCodes, ... }). */
|
|
66
|
+
statStripe(
|
|
67
|
+
/** Config. */
|
|
68
|
+
config: CompositionStatConfig,
|
|
69
|
+
/** Category parameter. */
|
|
70
|
+
categoryParameter?: string,
|
|
71
|
+
/** Category codes. */
|
|
72
|
+
categoryCodes?: string[],
|
|
73
|
+
/** Category labels. */
|
|
74
|
+
categoryLabels?: string[],
|
|
75
|
+
/** Category colors. */
|
|
76
|
+
categoryColors?: string[],
|
|
77
|
+
/** Total code. */
|
|
78
|
+
totalCode?: string
|
|
79
|
+
): this
|
|
80
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { MapConfig } from '../../../core/MapConfig'
|
|
2
|
+
import type { StripeCompositionLegendConfig } from '../../../legend/composition/StripeCompositionLegendConfig'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Configuration for stripe composition maps.
|
|
6
|
+
*/
|
|
7
|
+
export interface StripeMapConfig extends MapConfig {
|
|
8
|
+
/** Grouped stripe settings. */
|
|
9
|
+
stripeSettings?: {
|
|
10
|
+
width?: number
|
|
11
|
+
orientation?: number
|
|
12
|
+
otherColor?: string
|
|
13
|
+
otherText?: string
|
|
14
|
+
}
|
|
15
|
+
/** @deprecated Use stripeSettings.width */
|
|
16
|
+
/** Stripe width. */
|
|
17
|
+
stripeWidth?: number
|
|
18
|
+
/** @deprecated Use stripeSettings.orientation */
|
|
19
|
+
/** Stripe orientation. */
|
|
20
|
+
stripeOrientation?: number
|
|
21
|
+
/** Cat colors. */
|
|
22
|
+
catColors?: Record<string, string>
|
|
23
|
+
/** Cat labels. */
|
|
24
|
+
catLabels?: Record<string, string>
|
|
25
|
+
/** @deprecated Use stripeSettings.otherColor */
|
|
26
|
+
/** Stripe other color. */
|
|
27
|
+
stripeOtherColor?: string
|
|
28
|
+
/** @deprecated Use stripeSettings.otherText */
|
|
29
|
+
/** Stripe other text. */
|
|
30
|
+
stripeOtherText?: string
|
|
31
|
+
/** Show only when complete. */
|
|
32
|
+
showOnlyWhenComplete?: boolean
|
|
33
|
+
/** No data fill style. */
|
|
34
|
+
noDataFillStyle?: string
|
|
35
|
+
/** Pie chart radius. */
|
|
36
|
+
pieChartRadius?: number
|
|
37
|
+
/** Pie chart inner radius. */
|
|
38
|
+
pieChartInnerRadius?: number
|
|
39
|
+
/** Stripe total code. */
|
|
40
|
+
stripeTotalCode?: string
|
|
41
|
+
/** Stat codes. */
|
|
42
|
+
statCodes?: string[]
|
|
43
|
+
/** Legend. */
|
|
44
|
+
legend?: StripeCompositionLegendConfig | false
|
|
45
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { MapInstance } from '../../../core/MapInstance'
|
|
2
|
+
import type { CompositionStatConfig } from '../CompositionStatConfig'
|
|
3
|
+
import type { WaffleLegendConfig } from '../../../legend/composition/WaffleLegendConfig'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Waffle map type.
|
|
7
|
+
*/
|
|
8
|
+
export interface WaffleMap extends MapInstance {
|
|
9
|
+
legend(): WaffleLegendConfig | false
|
|
10
|
+
legend(config: WaffleLegendConfig | 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
|
+
waffleSettings(): {
|
|
25
|
+
minSize?: number
|
|
26
|
+
maxSize?: number
|
|
27
|
+
gridSize?: number
|
|
28
|
+
cellPadding?: number
|
|
29
|
+
strokeFill?: string
|
|
30
|
+
strokeWidth?: number
|
|
31
|
+
roundedCorners?: number
|
|
32
|
+
tooltipSize?: number
|
|
33
|
+
otherColor?: string
|
|
34
|
+
otherText?: string
|
|
35
|
+
}
|
|
36
|
+
waffleSettings(v: {
|
|
37
|
+
minSize?: number
|
|
38
|
+
maxSize?: number
|
|
39
|
+
gridSize?: number
|
|
40
|
+
cellPadding?: number
|
|
41
|
+
strokeFill?: string
|
|
42
|
+
strokeWidth?: number
|
|
43
|
+
roundedCorners?: number
|
|
44
|
+
tooltipSize?: number
|
|
45
|
+
otherColor?: string
|
|
46
|
+
otherText?: string
|
|
47
|
+
}): this
|
|
48
|
+
|
|
49
|
+
/** @deprecated Use waffleSettings({ maxSize }) */
|
|
50
|
+
waffleMaxSize(): number
|
|
51
|
+
/** @deprecated Use waffleSettings({ maxSize }) */
|
|
52
|
+
waffleMaxSize(v: number): this
|
|
53
|
+
|
|
54
|
+
/** @deprecated Use waffleSettings({ minSize }) */
|
|
55
|
+
waffleMinSize(): number
|
|
56
|
+
/** @deprecated Use waffleSettings({ minSize }) */
|
|
57
|
+
waffleMinSize(v: number): this
|
|
58
|
+
|
|
59
|
+
/** @deprecated Use waffleSettings({ gridSize }) */
|
|
60
|
+
waffleGridSize(): number
|
|
61
|
+
/** @deprecated Use waffleSettings({ gridSize }) */
|
|
62
|
+
waffleGridSize(v: number): this
|
|
63
|
+
|
|
64
|
+
/** @deprecated Use waffleSettings({ cellPadding }) */
|
|
65
|
+
waffleCellPadding(): number
|
|
66
|
+
/** @deprecated Use waffleSettings({ cellPadding }) */
|
|
67
|
+
waffleCellPadding(v: number): this
|
|
68
|
+
|
|
69
|
+
/** @deprecated Use waffleSettings({ otherColor }) */
|
|
70
|
+
waffleOtherColor(): string
|
|
71
|
+
/** @deprecated Use waffleSettings({ otherColor }) */
|
|
72
|
+
waffleOtherColor(v: string): this
|
|
73
|
+
|
|
74
|
+
/** @deprecated Use waffleSettings({ otherText }) */
|
|
75
|
+
waffleOtherText(): string
|
|
76
|
+
/** @deprecated Use waffleSettings({ otherText }) */
|
|
77
|
+
waffleOtherText(v: string): this
|
|
78
|
+
|
|
79
|
+
/** @deprecated Use waffleSettings({ strokeFill }) */
|
|
80
|
+
waffleStrokeFill(): string
|
|
81
|
+
/** @deprecated Use waffleSettings({ strokeFill }) */
|
|
82
|
+
waffleStrokeFill(v: string): this
|
|
83
|
+
|
|
84
|
+
/** @deprecated Use waffleSettings({ strokeWidth }) */
|
|
85
|
+
waffleStrokeWidth(): number
|
|
86
|
+
/** @deprecated Use waffleSettings({ strokeWidth }) */
|
|
87
|
+
waffleStrokeWidth(v: number): this
|
|
88
|
+
|
|
89
|
+
/** @deprecated Use waffleSettings({ roundedCorners }) */
|
|
90
|
+
waffleRoundedCorners(): number
|
|
91
|
+
/** @deprecated Use waffleSettings({ roundedCorners }) */
|
|
92
|
+
waffleRoundedCorners(v: number): this
|
|
93
|
+
|
|
94
|
+
/** @deprecated Use waffleSettings({ tooltipSize }) */
|
|
95
|
+
waffleTooltipSize(): number
|
|
96
|
+
/** @deprecated Use waffleSettings({ tooltipSize }) */
|
|
97
|
+
waffleTooltipSize(v: number): this
|
|
98
|
+
|
|
99
|
+
dorling(): boolean
|
|
100
|
+
dorling(v: boolean): this
|
|
101
|
+
|
|
102
|
+
waffleTotalCode(): string | undefined
|
|
103
|
+
waffleTotalCode(v: string | undefined): this
|
|
104
|
+
|
|
105
|
+
statCodes(): string[] | undefined
|
|
106
|
+
statCodes(v: string[] | undefined): this
|
|
107
|
+
|
|
108
|
+
statWaffle(config: CompositionStatConfig): this
|
|
109
|
+
/** @deprecated Legacy positional signature. Prefer statWaffle({ categoryParameter, categoryCodes, ... }). */
|
|
110
|
+
statWaffle(
|
|
111
|
+
/** Config. */
|
|
112
|
+
config: CompositionStatConfig,
|
|
113
|
+
/** Category parameter. */
|
|
114
|
+
categoryParameter?: string,
|
|
115
|
+
/** Category codes. */
|
|
116
|
+
categoryCodes?: string[],
|
|
117
|
+
/** Category labels. */
|
|
118
|
+
categoryLabels?: string[],
|
|
119
|
+
/** Category colors. */
|
|
120
|
+
categoryColors?: string[],
|
|
121
|
+
/** Total code. */
|
|
122
|
+
totalCode?: string
|
|
123
|
+
): this
|
|
124
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { MapConfig } from '../../../core/MapConfig'
|
|
2
|
+
import type { WaffleLegendConfig } from '../../../legend/composition/WaffleLegendConfig'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Configuration for waffle chart composition maps.
|
|
6
|
+
*/
|
|
7
|
+
export interface WaffleMapConfig extends MapConfig {
|
|
8
|
+
/** Consolidated waffle chart settings. */
|
|
9
|
+
waffleSettings?: {
|
|
10
|
+
minSize?: number
|
|
11
|
+
maxSize?: number
|
|
12
|
+
gridSize?: number
|
|
13
|
+
cellPadding?: number
|
|
14
|
+
strokeFill?: string
|
|
15
|
+
strokeWidth?: number
|
|
16
|
+
roundedCorners?: number
|
|
17
|
+
tooltipSize?: number
|
|
18
|
+
otherColor?: string
|
|
19
|
+
otherText?: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** @deprecated Use waffleSettings.minSize */
|
|
23
|
+
waffleMinSize?: number
|
|
24
|
+
/** @deprecated Use waffleSettings.maxSize */
|
|
25
|
+
waffleMaxSize?: number
|
|
26
|
+
/** @deprecated Use waffleSettings.gridSize */
|
|
27
|
+
waffleGridSize?: number
|
|
28
|
+
/** @deprecated Use waffleSettings.cellPadding */
|
|
29
|
+
waffleCellPadding?: number
|
|
30
|
+
/** @deprecated Use waffleSettings.strokeFill */
|
|
31
|
+
waffleStrokeFill?: string
|
|
32
|
+
/** @deprecated Use waffleSettings.strokeWidth */
|
|
33
|
+
waffleStrokeWidth?: number
|
|
34
|
+
/** @deprecated Use waffleSettings.roundedCorners */
|
|
35
|
+
waffleRoundedCorners?: number
|
|
36
|
+
/** @deprecated Use waffleSettings.tooltipSize */
|
|
37
|
+
waffleTooltipSize?: number
|
|
38
|
+
/** Cat colors. */
|
|
39
|
+
catColors?: Record<string, string>
|
|
40
|
+
/** Cat labels. */
|
|
41
|
+
catLabels?: Record<string, string>
|
|
42
|
+
/** @deprecated Use waffleSettings.otherColor */
|
|
43
|
+
waffleOtherColor?: string
|
|
44
|
+
/** @deprecated Use waffleSettings.otherText */
|
|
45
|
+
waffleOtherText?: string
|
|
46
|
+
/** Show only when complete. */
|
|
47
|
+
showOnlyWhenComplete?: boolean
|
|
48
|
+
/** No data fill style. */
|
|
49
|
+
noDataFillStyle?: string
|
|
50
|
+
/** Dorling. */
|
|
51
|
+
dorling?: boolean
|
|
52
|
+
/** Waffle total code. */
|
|
53
|
+
waffleTotalCode?: string
|
|
54
|
+
/** Stat codes. */
|
|
55
|
+
statCodes?: string[]
|
|
56
|
+
/** Legend. */
|
|
57
|
+
legend?: WaffleLegendConfig | false
|
|
58
|
+
}
|