File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { NarrativeTextSpec } from '@antv/ava';
1717
1818## 结构介绍
1919
20- ![ ntv-schema] ( https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*iKn_RIyeOi8AAAAAAAAAAAAADmJ7AQ /original )
20+ ![ ntv-schema] ( https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*KOkHSqUbb7MAAAAAAAAAAAAADmJ7AQ /original )
2121
2222从结构层看:
2323- 整套解读结构称为 narrative,包括一个题目(headline)和多个章节(section);
@@ -58,12 +58,13 @@ import { NarrativeTextSpec } from '@antv/ava';
5858
5959### Phrase 短语
6060
61- 而短语层则体现出“数据描述文本”和普通文本的最大差别。短语(phrase)分为五种 :
61+ 而短语层则体现出“数据描述文本”和普通文本的最大差别。短语(phrase)分为六种 :
62621 . text 普通纯文本内容,支持配置属性 bold 加粗、italic 斜体、underline 下划线,以及 url 传入超链接;
63632 . escape 转义字符;
64643 . formula 数学公式,对应 katex 语法。备注:如使用 ` NarrativeTextVis ` 组件渲染含 formula 的内容,需要自行引入 css cdn 资源,详情见 [ katex 官方网站] ( https://katex.org/ ) ;
65654 . entity 是具有数据含义的短语,将数据映射为文本,是解读文本可视化的主要内容;
66- 5 . custom 则是一种提供给用户自定义的短语插槽,当前常被用于实现一些短语级别的交互。
66+ 5 . image 图片,同 html img 标签,value 作为 src 地址,支持配置属性 alt;
67+ 6 . custom 则是一种提供给用户自定义的短语插槽,当前常被用于实现一些短语级别的交互。
6768
6869以下是所有类型为 Entity 的短语一览,其他短语类型效果与使用参考 demo [ 其他短语类型] ( ../../../examples/ntv/basic/#extra-phrases ) 。
6970
You can’t perform that action at this time.
0 commit comments