Need views in MyST¶
The MyST forms of the specimens on Need views, each rendered live by this page’s own Markdown parser. The views show the six specimen needs defined on that page, because a view selects needs from the whole project.
Tables¶
A needs table
```{needtable} The view specimens
:tags: ex-views
:columns: id, title, status, links as "Links to"
:sort: title
:style: datatables
:page_size: 5
```
ID |
Title |
Status |
Links to |
|---|---|---|---|
CSV reader |
done |
||
CSV reader test |
open |
||
Export a PDF report |
open |
||
Import a CSV file |
done |
||
Lay out the pages |
open |
||
Read the header row |
done |
Lists¶
A needs list
```{needlist}
:tags: ex-views
:status: open
:show_status:
:sort_by: id
```
Extracts¶
An extract
```{needextract} EX_REQ_VIEWS_2
```
A user can save the report as a PDF file. |
Flow diagrams¶
A flow diagram
```{needflow}
:tags: ex-views
```

Sequence diagrams¶
Pie charts¶
A pie chart
```{needpie} Needs by status
:tags: ex-views
:labels: open, done
:colors: "#DCB239, #BFD8D2"
:legend:
status == "open"
status == "done"
```
Bar charts¶
A bar chart
```{needbar} Needs by type and status
:tags: ex-views
:xlabels: Requirements, Specifications
:ylabels: open, done
:legend:
type == "req" and status == "open", type == "spec" and status == "open"
type == "req" and status == "done", type == "spec" and status == "done"
```
Gantt charts¶
A Gantt chart
```{needgantt} The import and export plan
:tags: ex-views
```
UML diagrams¶
A UML diagram and an architecture diagram
```{needuml}
{{flow("EX_IMPL_VIEWS_1")}}
{{flow("EX_REQ_VIEWS_1")}}
EX_IMPL_VIEWS_1 --> EX_REQ_VIEWS_1
```
````{impl} PDF writer
:id: EX_IMPL_VIEWS_MYST_ARCH
:status: open
```{needarch}
{{flow(need().id)}}
{{flow("EX_SPEC_VIEWS_2")}}
{{need().id}} --> EX_SPEC_VIEWS_2
```
````
|