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.

17 lines (14 loc) 659 B
import { createEntityPhraseFactory } from '../createEntityPhraseFactory.js'; import { isNumber } from '../../utils/isType.js'; var defaultOtherMetricValueDescriptor = { style: function (value, _, themeSeedToken) { return ({ fontWeight: 'bold', color: themeSeedToken.colorOtherValue, }); }, tooltip: { title: function (value, metadata) { return (isNumber(metadata.origin) ? "".concat(metadata.origin) : null); }, }, }; var createOtherMetricValue = createEntityPhraseFactory('other_metric_value', defaultOtherMetricValueDescriptor); export { createOtherMetricValue }; //# sourceMappingURL=createOtherMetricValue.js.map