You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/src/content/learn/infographic-syntax.en.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Infographic syntax is a Mermaid-like grammar for describing templates, designs,
6
6
7
7
<InfographicStreamRunner>
8
8
9
-
```plain
9
+
```infographic
10
10
infographic list-row-horizontal-icon-arrow
11
11
data
12
12
title Customer Growth Engine
@@ -63,7 +63,7 @@ Information structure captures the data abstraction that determines content and
63
63
64
64
The entry point starts with `infographic [template-name]`, followed by blocks that describe the template, design, data, and theme.
65
65
66
-
```plain
66
+
```infographic
67
67
infographic list-row-horizontal-icon-arrow
68
68
data
69
69
title Customer Growth Engine
@@ -91,15 +91,15 @@ data
91
91
92
92
The template is declared directly in the entry point.
93
93
94
-
```plain
94
+
```infographic
95
95
infographic <template-name>
96
96
```
97
97
98
98
### design {#design}
99
99
100
100
The `design` block selects structures, cards, titles, and other modules.
101
101
102
-
```plain
102
+
```infographic
103
103
design
104
104
structure <structure-name>
105
105
gap 12
@@ -130,7 +130,7 @@ In general, the selected template expects a certain data item field. For example
130
130
131
131
List data represents a group of peer items without ordering, common for checklists or feature lists. Use `lists`.
132
132
133
-
```plain
133
+
```infographic
134
134
infographic list-grid-compact-card
135
135
data
136
136
title Fruit Shopping List
@@ -147,7 +147,7 @@ data
147
147
148
148
Sequence data is similar to lists but ordered, often used for timelines or steps. Use `sequences`.
149
149
150
-
```plain
150
+
```infographic
151
151
infographic sequence-steps-simple
152
152
data
153
153
sequences
@@ -158,7 +158,7 @@ data
158
158
159
159
Use the `order` field to specify sorting (`asc` or `desc`). In the example below, `order desc` means items are arranged in descending order.
160
160
161
-
```plain
161
+
```infographic
162
162
infographic sequence-stairs-front-pill-badge
163
163
data
164
164
title Job Level Sequence
@@ -173,7 +173,7 @@ data
173
173
174
174
Hierarchy data describes a tree structure, common for org charts or taxonomies. Use `root` for the root node and `children` recursively for descendants.
175
175
176
-
```plain
176
+
```infographic
177
177
infographic hierarchy-structure
178
178
data
179
179
root
@@ -187,7 +187,7 @@ data
187
187
188
188
Compare data is for side-by-side or grouped comparisons (e.g. SWOT or quadrant charts). Use `compares`.
189
189
190
-
```plain
190
+
```infographic
191
191
infographic quadrant-quarter-simple-card
192
192
data
193
193
compares
@@ -203,7 +203,7 @@ data
203
203
204
204
Compare items can also include `children` to create comparison hierarchies, where each root item is a comparison target and children are its metrics:
205
205
206
-
```plain
206
+
```infographic
207
207
infographic compare-swot
208
208
data
209
209
compares
@@ -223,7 +223,7 @@ data
223
223
224
224
Statistical data showcases metrics, using `values`.
225
225
226
-
```plain
226
+
```infographic
227
227
infographic chart-column-simple
228
228
data
229
229
values
@@ -237,7 +237,7 @@ data
237
237
238
238
For grouped data, use `category` (with a compatible template), for example:
239
239
240
-
```plain
240
+
```infographic
241
241
infographic chart-column-grouped-simple
242
242
data
243
243
title Rainfall Data
@@ -274,7 +274,7 @@ Relation data describes node-to-node connections, such as flowcharts and network
0 commit comments