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.

22 lines (18 loc) 914 B
'use strict'; require('../../charts/utils/selection.js'); require('tslib'); var index = require('../../charts/association/index.js'); var createEntityPhraseFactory = require('../createEntityPhraseFactory.js'); var createInlineDocument = require('../utils/createInlineDocument.js'); var defaultAssociationDescriptor = { render: function (value, _a, paragraphType, themeSeedToken) { var detail = _a.detail; var chartElement = document.createElement('span'); index.renderAssociationChart(chartElement, { data: detail }, paragraphType, themeSeedToken); return createInlineDocument.createInlineDocument(chartElement, value, 'suffix'); }, tooltip: false, }; var createAssociation = createEntityPhraseFactory.createEntityPhraseFactory('association', defaultAssociationDescriptor); exports.createAssociation = createAssociation; //# sourceMappingURL=createAssociation.js.map