Flow Charts

From Wiki
Jump to navigation Jump to search

Context provides a charts module to create flow charts. The details are in the Charts uncovered manual by Pragma. There is also Flowchart creater to create flowchart code using javascript.

For example


  \name {flow}
  \location {1,1}
  \text {Flow}
  \connection [rl] {chart}
  \name {chart}
  \text {Charts}

The more sophisticated example:





	\connection[rl] {lowpass1}

	\name {lowpass1}
	\location {2,1}
	\text {Low Pass\crlf Filter}
	\connection[bt] {adconv}

	\text{Analog/Digital\crlf conversion}

	\text{Digital Signal\crlf Processing}

	\text{Digital/Analog\crlf Conversion}

	\name {lowpass2}
	\location {4,3}
	\text {Low Pass\crlf Filter}

	\name {output}
	\location {5,3}


\placefigure[here][fig:chart]{The path of signal in digital processing.}

Syntax for \connection

\connection [<from><to>] {<FLOWcell>}

<from> and <to> are the points from which point to which point the connection should be drawn. The following graphic depicts the names of the points.

       -t    t    +t
 +l |                | +r
    |                |
  l |                |  r
    |                |
 -l |                | -r
    |                |
       -b    b    +b


The following code draws a line from the left top point of the current cell to the right bottom point of cell foobar.

\connection [-t+b] {foobar}

The code for connections in the pdf manual, e.g.


No longer works

Aligning text within the cell

To align left or right, use


Forcing a paragraph break with \par in a cell does not work...

\text[l]{firstline \par secondline}

Whereas using \\ does work, so:

\text[l]{firstline \\ secondline}