Skip to content

Commit 14e222a

Browse files
docs: cohort component details (#1124)
1 parent 0a92919 commit 14e222a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/components/cohort.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If you don't want to use `component_class` parameter, you can prepare `data` in
2525
```html
2626
{% load unfold %}
2727

28-
{% component "unfold/components/chart/cohort.html" with data=my_data_variable data=my_data %}
28+
{% component "unfold/components/chart/cohort.html" with data=my_data_variable %}
2929
{% endcomponent %}
3030
```
3131

@@ -76,13 +76,13 @@ DATA = {
7676
},
7777
# Second row
7878
{
79-
"header": {
8079
# Row heading
81-
"title": "Title",
80+
"header": {
81+
"title": "Title",
8282
"subtitle": "something", # Optional
8383
},
84-
# Col 1 cell value
8584
"cols": [
85+
# Col 1 cell value
8686
{
8787
"value": "1",
8888
}

docs/components/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Below you can find a more complex example which is using multiple components and
6363
| unfold/components/card.html | Card component | class, title, footer, label, icon |
6464
| unfold/components/chart/bar.html | Bar chart implementation | class, data, height, width |
6565
| unfold/components/chart/line.html | Line chart implementation | class, data, height, width |
66+
| unfold/components/cohort.html | Cohort component | data |
6667
| unfold/components/container.html | Wrapper for settings max width | class |
6768
| unfold/components/flex.html | Flex items | class, col |
6869
| unfold/components/icon.html | Icon element | class |
@@ -73,7 +74,6 @@ Below you can find a more complex example which is using multiple components and
7374
| unfold/components/text.html | Paragraph of text | class |
7475
| unfold/components/title.html | Basic heading element | class |
7576
| unfold/components/tracker.html | Tracker component | data |
76-
| unfold/components/cohort.html | Cohort component | data |
7777

7878

7979
## Table component example

0 commit comments

Comments
 (0)