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.

20 lines (17 loc) 809 B
import '../../charts/utils/selection.js'; import 'tslib'; import { renderAnomalyChart } from '../../charts/anomaly/index.js'; import { createEntityPhraseFactory } from '../createEntityPhraseFactory.js'; import { createInlineDocument } from '../utils/createInlineDocument.js'; var defaultAnomalyDescriptor = { render: function (value, _a, paragraphType, themeSeedToken) { var detail = _a.detail; var chartElement = document.createElement('span'); renderAnomalyChart(chartElement, { data: detail }, paragraphType, themeSeedToken); return createInlineDocument(chartElement, value, 'suffix'); }, tooltip: false, }; var createAnomaly = createEntityPhraseFactory('anomaly', defaultAnomalyDescriptor); export { createAnomaly }; //# sourceMappingURL=createAnomaly.js.map