@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.
20 lines (17 loc) • 845 B
JavaScript
import '../../charts/utils/selection.js';
import 'tslib';
import { renderAssociationChart } from '../../charts/association/index.js';
import { createEntityPhraseFactory } from '../createEntityPhraseFactory.js';
import { createInlineDocument } from '../utils/createInlineDocument.js';
var defaultAssociationDescriptor = {
render: function (value, _a, paragraphType, themeSeedToken) {
var detail = _a.detail;
var chartElement = document.createElement('span');
renderAssociationChart(chartElement, { data: detail }, paragraphType, themeSeedToken);
return createInlineDocument(chartElement, value, 'suffix');
},
tooltip: false,
};
var createAssociation = createEntityPhraseFactory('association', defaultAssociationDescriptor);
export { createAssociation };
//# sourceMappingURL=createAssociation.js.map