UNPKG

@antv/t8

Version:

T8 is a text visualization solution for unstructured data within the AntV technology stack, and it is a declarative T8 markdown syntax that can be used to describe the content of data interpretation reports.

18 lines (14 loc) 689 B
'use strict'; var createEntityPhraseFactory = require('../createEntityPhraseFactory.js'); var isType = require('../../utils/isType.js'); var defaultContributeRatioDescriptor = { style: function (value, _, themeSeedToken) { return ({ color: themeSeedToken.colorConclusion, }); }, tooltip: { title: function (value, metadata) { return (isType.isNumber(metadata.origin) ? "".concat(metadata.origin) : null); }, }, }; var createContributeRatio = createEntityPhraseFactory.createEntityPhraseFactory('contribute_ratio', defaultContributeRatioDescriptor); exports.createContributeRatio = createContributeRatio; //# sourceMappingURL=createContributeRatio.js.map