Widget:Radar: Difference between revisions
From Elwiki
mNo edit summary |
mNo edit summary |
||
Line 19: | Line 19: | ||
| '''color''' || ''HexColor'' (#RRGGBB format only) || The color for the radar area || | | '''color''' || ''HexColor'' (#RRGGBB format only) || The color for the radar area || | ||
|- | |- | ||
| '''label''' || ''Array<String>'' || Label(s) for each axis in sequence || (Empty String) | | '''label''' || ''Array<String>'' || Label(s) for each axis in sequence, ''\n'' for new line || (Empty String) | ||
|- | |- | ||
| '''max''' || ''Array<Number>''<br> or<br>''Integer'' || Max value for each axis. | | '''max''' || ''Array<Number>''<br> or<br>''Integer'' || Max value for each axis. | ||
Line 104: | Line 104: | ||
<!--{foreach $text as $i => $val}--> | <!--{foreach $text as $i => $val}--> | ||
<tspan dy="<!--{$i*$fontcorrection}-->"><!--{$val|default:''|escape:'html'}--></tspan> | <tspan dy="<!--{$i*$fontcorrection}-->"><!--{$val|default:''|escape:'html'}--></tspan> | ||
<!--{/foreach}--> | |||
</text> | </text> | ||
<!--{/for}--> | <!--{/for}--> |
Revision as of 07:34, 29 May 2020
Widget:Radar is a component for radar chart.
Arguments are listed as following:
- Array argument(s) can be called multiple times.
Key | Type | Description | Default |
---|---|---|---|
size | Number | Size of the chart | (Depends on parent container) |
dim | Integer | Number of axes | |
fontfamily | String | Name of font(s) | Microsoft YaHei |
fontsize | Number | Font size | 28 |
color | HexColor (#RRGGBB format only) | The color for the radar area | |
label | Array<String> | Label(s) for each axis in sequence, \n for new line | (Empty String) |
max | Array<Number> or Integer |
Max value for each axis.
|
max[0] (Array Type) |
value | Array<Number> | Value for each axis. | 0 |