@formant/ava 3.4.1-formant → 3.4.3-formant
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/dist/ava.min.js +1 -1
- package/esm/insight/chart/constants.js +2 -1
- package/esm/insight/chart/strategy/viewSpec.js +1 -1
- package/esm/insight/narrative/strategy/changePoint.js +1 -1
- package/esm/insight/narrative/strategy/correlation.js +1 -1
- package/esm/insight/narrative/strategy/lowVariance.js +1 -1
- package/esm/insight/narrative/strategy/majority.js +1 -1
- package/esm/insight/narrative/strategy/timeSeriesOutlier.js +2 -2
- package/lib/insight/chart/constants.d.ts +1 -0
- package/lib/insight/chart/constants.js +2 -1
- package/lib/insight/chart/strategy/viewSpec.js +1 -1
- package/lib/insight/narrative/strategy/changePoint.js +1 -1
- package/lib/insight/narrative/strategy/correlation.js +1 -1
- package/lib/insight/narrative/strategy/lowVariance.js +1 -1
- package/lib/insight/narrative/strategy/majority.js +1 -1
- package/lib/insight/narrative/strategy/timeSeriesOutlier.js +2 -2
- package/package.json +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export var INSIGHT_COLOR_PLATTE = {
|
|
2
2
|
highlight: '#E09322',
|
|
3
3
|
outlier: '#CB5140',
|
|
4
|
-
font: '#
|
|
4
|
+
font: '#bac4e2',
|
|
5
5
|
defaultPointColor: '#fff',
|
|
6
6
|
};
|
|
7
7
|
export var BOLD_FONT_WEIGHT = 500;
|
|
8
8
|
export var TEXT_STYLE = {
|
|
9
9
|
textAlign: 'center',
|
|
10
10
|
fill: INSIGHT_COLOR_PLATTE.font,
|
|
11
|
+
fontFamily: 'Moderat',
|
|
11
12
|
opacity: 0.65,
|
|
12
13
|
};
|
|
13
14
|
export var ChartTypeMap = {
|
|
@@ -7,7 +7,7 @@ export var viewSpecStrategy = function (marks, insight) {
|
|
|
7
7
|
: {
|
|
8
8
|
scale: { y: { nice: true } },
|
|
9
9
|
};
|
|
10
|
-
return __assign({ type: 'view', theme: '
|
|
10
|
+
return __assign({ type: 'view', theme: 'dark', axis: {
|
|
11
11
|
x: { labelAutoHide: true, labelAutoRotate: false, title: false },
|
|
12
12
|
y: { title: false },
|
|
13
13
|
}, interaction: {
|
|
@@ -42,7 +42,7 @@ var ChangePointNarrativeStrategy = /** @class */ (function (_super) {
|
|
|
42
42
|
],
|
|
43
43
|
'en-US': [
|
|
44
44
|
{
|
|
45
|
-
template: '
|
|
45
|
+
template: '${total} major changes detected for ${measure} during ${dateRange}',
|
|
46
46
|
variableMetaMap: variableMetaMap,
|
|
47
47
|
},
|
|
48
48
|
],
|
|
@@ -41,7 +41,7 @@ var CorrelationNarrativeStrategy = /** @class */ (function (_super) {
|
|
|
41
41
|
],
|
|
42
42
|
'en-US': [
|
|
43
43
|
{
|
|
44
|
-
template:
|
|
44
|
+
template: " ${m1} and ${m2}, are highly correlated. Their relationship is measured by a number, ${pcorr}, which tells us just how closely they're linked. A higher number means they move in sync more often.",
|
|
45
45
|
variableMetaMap: variableMetaMap,
|
|
46
46
|
},
|
|
47
47
|
],
|
|
@@ -38,7 +38,7 @@ var LowVarianceNarrativeStrategy = /** @class */ (function (_super) {
|
|
|
38
38
|
],
|
|
39
39
|
'en-US': [
|
|
40
40
|
{
|
|
41
|
-
template: '
|
|
41
|
+
template: 'We broke down the total based on ${dimension}, and the ${measure} are spread out evenly, averaging ${mean} each.',
|
|
42
42
|
variableMetaMap: variableMetaMap,
|
|
43
43
|
},
|
|
44
44
|
],
|
|
@@ -52,7 +52,7 @@ var MajorityNarrativeStrategy = /** @class */ (function (_super) {
|
|
|
52
52
|
],
|
|
53
53
|
'en-US': [
|
|
54
54
|
{
|
|
55
|
-
template: '
|
|
55
|
+
template: 'The ${measure} for ${dimValue} is significantly higher than the other dimensions, at ${y}, ${proportion} of the total (${total}).',
|
|
56
56
|
variableMetaMap: variableMetaMap,
|
|
57
57
|
},
|
|
58
58
|
],
|
|
@@ -75,11 +75,11 @@ var TimeSeriesOutlierNarrativeStrategy = /** @class */ (function (_super) {
|
|
|
75
75
|
],
|
|
76
76
|
'en-US': [
|
|
77
77
|
{
|
|
78
|
-
template: '
|
|
78
|
+
template: '${total} outliers detected for ${measure} during ${dateRange}',
|
|
79
79
|
variableMetaMap: variableMetaMap,
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
template: '${.x}
|
|
82
|
+
template: '${.x}: ${measure} at ${.y} (${.diffDesc} ${.diff} above baseline)',
|
|
83
83
|
displayType: 'bullet',
|
|
84
84
|
bulletOrder: true,
|
|
85
85
|
useVariable: 'outliers',
|
|
@@ -4,13 +4,14 @@ exports.PIE_RADIUS_STYLE = exports.ChartTypeMap = exports.TEXT_STYLE = exports.B
|
|
|
4
4
|
exports.INSIGHT_COLOR_PLATTE = {
|
|
5
5
|
highlight: '#E09322',
|
|
6
6
|
outlier: '#CB5140',
|
|
7
|
-
font: '#
|
|
7
|
+
font: '#bac4e2',
|
|
8
8
|
defaultPointColor: '#fff',
|
|
9
9
|
};
|
|
10
10
|
exports.BOLD_FONT_WEIGHT = 500;
|
|
11
11
|
exports.TEXT_STYLE = {
|
|
12
12
|
textAlign: 'center',
|
|
13
13
|
fill: exports.INSIGHT_COLOR_PLATTE.font,
|
|
14
|
+
fontFamily: 'Moderat',
|
|
14
15
|
opacity: 0.65,
|
|
15
16
|
};
|
|
16
17
|
exports.ChartTypeMap = {
|
|
@@ -10,7 +10,7 @@ var viewSpecStrategy = function (marks, insight) {
|
|
|
10
10
|
: {
|
|
11
11
|
scale: { y: { nice: true } },
|
|
12
12
|
};
|
|
13
|
-
return tslib_1.__assign({ type: 'view', theme: '
|
|
13
|
+
return tslib_1.__assign({ type: 'view', theme: 'dark', axis: {
|
|
14
14
|
x: { labelAutoHide: true, labelAutoRotate: false, title: false },
|
|
15
15
|
y: { title: false },
|
|
16
16
|
}, interaction: {
|
|
@@ -44,7 +44,7 @@ var ChangePointNarrativeStrategy = /** @class */ (function (_super) {
|
|
|
44
44
|
],
|
|
45
45
|
'en-US': [
|
|
46
46
|
{
|
|
47
|
-
template: '
|
|
47
|
+
template: '${total} major changes detected for ${measure} during ${dateRange}',
|
|
48
48
|
variableMetaMap: variableMetaMap,
|
|
49
49
|
},
|
|
50
50
|
],
|
|
@@ -43,7 +43,7 @@ var CorrelationNarrativeStrategy = /** @class */ (function (_super) {
|
|
|
43
43
|
],
|
|
44
44
|
'en-US': [
|
|
45
45
|
{
|
|
46
|
-
template:
|
|
46
|
+
template: " ${m1} and ${m2}, are highly correlated. Their relationship is measured by a number, ${pcorr}, which tells us just how closely they're linked. A higher number means they move in sync more often.",
|
|
47
47
|
variableMetaMap: variableMetaMap,
|
|
48
48
|
},
|
|
49
49
|
],
|
|
@@ -40,7 +40,7 @@ var LowVarianceNarrativeStrategy = /** @class */ (function (_super) {
|
|
|
40
40
|
],
|
|
41
41
|
'en-US': [
|
|
42
42
|
{
|
|
43
|
-
template: '
|
|
43
|
+
template: 'We broke down the total based on ${dimension}, and the ${measure} are spread out evenly, averaging ${mean} each.',
|
|
44
44
|
variableMetaMap: variableMetaMap,
|
|
45
45
|
},
|
|
46
46
|
],
|
|
@@ -54,7 +54,7 @@ var MajorityNarrativeStrategy = /** @class */ (function (_super) {
|
|
|
54
54
|
],
|
|
55
55
|
'en-US': [
|
|
56
56
|
{
|
|
57
|
-
template: '
|
|
57
|
+
template: 'The ${measure} for ${dimValue} is significantly higher than the other dimensions, at ${y}, ${proportion} of the total (${total}).',
|
|
58
58
|
variableMetaMap: variableMetaMap,
|
|
59
59
|
},
|
|
60
60
|
],
|
|
@@ -77,11 +77,11 @@ var TimeSeriesOutlierNarrativeStrategy = /** @class */ (function (_super) {
|
|
|
77
77
|
],
|
|
78
78
|
'en-US': [
|
|
79
79
|
{
|
|
80
|
-
template: '
|
|
80
|
+
template: '${total} outliers detected for ${measure} during ${dateRange}',
|
|
81
81
|
variableMetaMap: variableMetaMap,
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
template: '${.x}
|
|
84
|
+
template: '${.x}: ${measure} at ${.y} (${.diffDesc} ${.diff} above baseline)',
|
|
85
85
|
displayType: 'bullet',
|
|
86
86
|
bulletOrder: true,
|
|
87
87
|
useVariable: 'outliers',
|