This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:create:functions:diagram2 [19.01.2020 16:04] – leonie.junker | en:create:functions:diagram2 [19.01.2020 16:11] (current) – leonie.junker | ||
---|---|---|---|
Line 3: | Line 3: | ||
'' | '' | ||
- | With the function '' | + | With the function '' |
Currently this function can only display a polarity profile. | Currently this function can only display a polarity profile. | ||
Line 9: | Line 10: | ||
* //Type//\\ Defines the type of chart: | * //Type//\\ Defines the type of chart: | ||
* ''' | * ''' | ||
+ | |||
* //Data//\\ The data is specified as a two-dimensional array, i.e. an array with one array per data series (see example). | * //Data//\\ The data is specified as a two-dimensional array, i.e. an array with one array per data series (see example). | ||
* //Options// A number of options are available for controlling the display. Some of these only apply to certain types of chart. The options are specified as a named array (see example). | * //Options// A number of options are available for controlling the display. Some of these only apply to certain types of chart. The options are specified as a named array (see example). | ||
Line 20: | Line 22: | ||
* array // | * array // | ||
* array // | * array // | ||
+ | |||
+ | |||
====== Examples ===== | ====== Examples ===== | ||
- | For example, a multidimensional array could look like this: | + | For example a multidimensional array could look like this: |
<code php> | <code php> | ||
Line 37: | Line 41: | ||
array( | array( | ||
' | ' | ||
- | | + | |
' | ' | ||
' | ' | ||
- | labels => true, | + | |
' | ' | ||
) | ) | ||
</ | </ | ||
- | A diagram can be output as follows: | + | A diagram can be an output as follows: |
<code php> | <code php> | ||
Line 55: | Line 59: | ||
array( | array( | ||
' | ' | ||
- | | + | |
- | labelwidth => 100, | + | |
' | ' | ||
' | ' | ||
- | labels => true, | + | |
' | ' | ||
' | ' |