@formant/ava 3.4.16-formant → 3.4.19-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,6 +1,6 @@
1
1
  export var INSIGHT_COLOR_PLATTE = {
2
- highlight: '#E09322',
3
- outlier: '#CB5140',
2
+ highlight: '#f89973',
3
+ outlier: '#ea719d',
4
4
  font: '#bac4e2',
5
5
  defaultPointColor: '#fff',
6
6
  };
@@ -9,7 +9,7 @@ export var TEXT_STYLE = {
9
9
  textAlign: 'center',
10
10
  fill: INSIGHT_COLOR_PLATTE.font,
11
11
  fontFamily: 'Moderat',
12
- opacity: 0.65,
12
+ opacity: 0.85,
13
13
  };
14
14
  export var ChartTypeMap = {
15
15
  category_outlier: 'column_chart',
@@ -1,9 +1,7 @@
1
1
  import { __read, __spreadArray } from "tslib";
2
2
  import { size } from 'lodash';
3
- import { dataFormat } from '../../../../utils';
4
- import { BOLD_FONT_WEIGHT } from '../../constants';
5
3
  import { insight2ChartStrategy } from '../chart';
6
- import { textMarkStrategy, intervalMarkStrategy } from '../commonMarks';
4
+ import { intervalMarkStrategy } from '../commonMarks';
7
5
  import { augmentedMarks2Marks } from '../../utils';
8
6
  export var categoryOutlierAugmentedMarksStrategy = function (insight) {
9
7
  var patterns = insight.patterns;
@@ -12,12 +10,8 @@ export var categoryOutlierAugmentedMarksStrategy = function (insight) {
12
10
  var categoryOutlierMarks = [];
13
11
  patterns.forEach(function (pattern) {
14
12
  var rectMark = intervalMarkStrategy([pattern]);
15
- var textMark = textMarkStrategy([pattern], {
16
- style: { fontWeight: BOLD_FONT_WEIGHT, dy: -8 },
17
- formatter: dataFormat,
18
- });
19
13
  categoryOutlierMarks.push({
20
- categoryOutlier: [rectMark, textMark],
14
+ categoryOutlier: [rectMark],
21
15
  });
22
16
  });
23
17
  return categoryOutlierMarks;
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PIE_RADIUS_STYLE = exports.ChartTypeMap = exports.TEXT_STYLE = exports.BOLD_FONT_WEIGHT = exports.INSIGHT_COLOR_PLATTE = void 0;
4
4
  exports.INSIGHT_COLOR_PLATTE = {
5
- highlight: '#E09322',
6
- outlier: '#CB5140',
5
+ highlight: '#f89973',
6
+ outlier: '#ea719d',
7
7
  font: '#bac4e2',
8
8
  defaultPointColor: '#fff',
9
9
  };
@@ -12,7 +12,7 @@ exports.TEXT_STYLE = {
12
12
  textAlign: 'center',
13
13
  fill: exports.INSIGHT_COLOR_PLATTE.font,
14
14
  fontFamily: 'Moderat',
15
- opacity: 0.65,
15
+ opacity: 0.85,
16
16
  };
17
17
  exports.ChartTypeMap = {
18
18
  category_outlier: 'column_chart',
@@ -3,11 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.categoryOutlierStrategy = exports.categoryOutlierAugmentedMarksStrategy = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  var lodash_1 = require("lodash");
6
- var utils_1 = require("../../../../utils");
7
- var constants_1 = require("../../constants");
8
6
  var chart_1 = require("../chart");
9
7
  var commonMarks_1 = require("../commonMarks");
10
- var utils_2 = require("../../utils");
8
+ var utils_1 = require("../../utils");
11
9
  var categoryOutlierAugmentedMarksStrategy = function (insight) {
12
10
  var patterns = insight.patterns;
13
11
  if (!(0, lodash_1.size)(patterns))
@@ -15,12 +13,8 @@ var categoryOutlierAugmentedMarksStrategy = function (insight) {
15
13
  var categoryOutlierMarks = [];
16
14
  patterns.forEach(function (pattern) {
17
15
  var rectMark = (0, commonMarks_1.intervalMarkStrategy)([pattern]);
18
- var textMark = (0, commonMarks_1.textMarkStrategy)([pattern], {
19
- style: { fontWeight: constants_1.BOLD_FONT_WEIGHT, dy: -8 },
20
- formatter: utils_1.dataFormat,
21
- });
22
16
  categoryOutlierMarks.push({
23
- categoryOutlier: [rectMark, textMark],
17
+ categoryOutlier: [rectMark],
24
18
  });
25
19
  });
26
20
  return categoryOutlierMarks;
@@ -29,7 +23,7 @@ exports.categoryOutlierAugmentedMarksStrategy = categoryOutlierAugmentedMarksStr
29
23
  var categoryOutlierStrategy = function (insight) {
30
24
  var chart = (0, chart_1.insight2ChartStrategy)(insight);
31
25
  var categoryOutlierMarks = (0, exports.categoryOutlierAugmentedMarksStrategy)(insight);
32
- var marks = (0, utils_2.augmentedMarks2Marks)(categoryOutlierMarks);
26
+ var marks = (0, utils_1.augmentedMarks2Marks)(categoryOutlierMarks);
33
27
  return tslib_1.__spreadArray([chart], tslib_1.__read(marks), false);
34
28
  };
35
29
  exports.categoryOutlierStrategy = categoryOutlierStrategy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formant/ava",
3
- "version": "3.4.16-formant",
3
+ "version": "3.4.19-formant",
4
4
  "description": "A framework for automated visual analytics.",
5
5
  "author": {
6
6
  "name": "formant",
@@ -59,12 +59,11 @@
59
59
  "@antv/smart-color": "^0.2.1",
60
60
  "bayesian-changepoint": "^1.0.1",
61
61
  "csstype": "^3.1.2",
62
- "date-fns": "^4.1.0",
62
+ "date-fns": "^2.30.0",
63
63
  "heap-js": "^2.1.6",
64
64
  "little-date": "^1.0.0",
65
65
  "regression": "^2.0.1",
66
- "tslib": "^2.3.1",
67
- "twix": "^1.3.0"
66
+ "tslib": "^2.3.1"
68
67
  },
69
68
  "devDependencies": {
70
69
  "@antv/algorithm": "^0.1.25",