@formant/ava 3.4.1-formant → 3.4.2-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.
@@ -1,13 +1,14 @@
1
1
  export var INSIGHT_COLOR_PLATTE = {
2
2
  highlight: '#E09322',
3
3
  outlier: '#CB5140',
4
- font: '#2C3542',
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: 'classic', axis: {
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: 'In ${dateRange}, ${measure} has ${total} major changes, which is worthy of attention.',
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: '${m1} is most correlated with ${m2} with a correlation coefficient of ${pcorr}.',
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: 'The quantity is disassembled according to ${dimension}, and ${measure} are evenly distributed, with an average of ${mean}.',
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: 'Breaking down the ${measure} by ${dimension}, the ${measure} for ${dimValue} is significantly higher than the other dimensions, at ${y}, ${proportion} of the total (${total}).',
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: 'In ${dateRange}, ${measure} fluctuates within the range of ${max} to ${min}, with ${total} outliers, sorted by size above the baseline as follows.',
78
+ template: '${total} outliers detected for ${measure} during ${dateRange}',
79
79
  variableMetaMap: variableMetaMap,
80
80
  },
81
81
  {
82
- template: '${.x}, ${measure} for ${.y}, compared to the baseline value ${.base}, ${.diffDesc} ${.diff}.',
82
+ template: '${.x}: ${measure} at ${.y} (${.diffDesc} ${.diff} above baseline)',
83
83
  displayType: 'bullet',
84
84
  bulletOrder: true,
85
85
  useVariable: 'outliers',
@@ -4,6 +4,7 @@ export declare const BOLD_FONT_WEIGHT = 500;
4
4
  export declare const TEXT_STYLE: {
5
5
  textAlign: string;
6
6
  fill: string;
7
+ fontFamily: string;
7
8
  opacity: number;
8
9
  };
9
10
  export declare const ChartTypeMap: Record<InsightType, ChartType>;
@@ -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: '#2C3542',
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: 'classic', axis: {
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: 'In ${dateRange}, ${measure} has ${total} major changes, which is worthy of attention.',
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: '${m1} is most correlated with ${m2} with a correlation coefficient of ${pcorr}.',
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: 'The quantity is disassembled according to ${dimension}, and ${measure} are evenly distributed, with an average of ${mean}.',
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: 'Breaking down the ${measure} by ${dimension}, the ${measure} for ${dimValue} is significantly higher than the other dimensions, at ${y}, ${proportion} of the total (${total}).',
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: 'In ${dateRange}, ${measure} fluctuates within the range of ${max} to ${min}, with ${total} outliers, sorted by size above the baseline as follows.',
80
+ template: '${total} outliers detected for ${measure} during ${dateRange}',
81
81
  variableMetaMap: variableMetaMap,
82
82
  },
83
83
  {
84
- template: '${.x}, ${measure} for ${.y}, compared to the baseline value ${.base}, ${.diffDesc} ${.diff}.',
84
+ template: '${.x}: ${measure} at ${.y} (${.diffDesc} ${.diff} above baseline)',
85
85
  displayType: 'bullet',
86
86
  bulletOrder: true,
87
87
  useVariable: 'outliers',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formant/ava",
3
- "version": "3.4.1-formant",
3
+ "version": "3.4.2-formant",
4
4
  "description": "A framework for automated visual analytics.",
5
5
  "author": {
6
6
  "name": "formant",