@formant/ava
Version:
A framework for automated visual analytics.
21 lines (20 loc) • 575 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.allCanBeTable = void 0;
var utils_1 = require("../utils");
var applyChartTypes = ['table'];
exports.allCanBeTable = {
id: 'all-can-be-table',
type: 'HARD',
docs: {
lintText: 'all dataset can be table',
},
trigger: function (_a) {
var chartType = _a.chartType;
return applyChartTypes.includes(chartType);
},
validator: function (_a) {
var weight = _a.weight;
return (0, utils_1.isUndefined)(weight) ? 1 : weight;
},
};