Widget:Radar: Difference between revisions
From Elwiki
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div style="width: 100%;"> | <noinclude> | ||
<!--{$PI=3. | '''Widget:Radar''' is a component for radar chart. | ||
Arguments are listed as following: | |||
{{*}} Array argument(s) can be called multiple times. | |||
{| class="wikitable" | |||
! Key !! Type !! Description !! Default | |||
|- | |||
| '''dim''' || ''Integer'' || Number of axes || | |||
|- | |||
| '''label''' || ''Array<String>'' || Label(s) for each axis in sequence || (Empty String) | |||
|- | |||
| '''max''' || ''Array<Number>''<br> or<br>''Integer'' || Max value for each axis. | |||
* When using an integer, all axes will have the same max value. | |||
* When using an array, each axis will use the corresponding max value. | |||
* When using an array but the corresponding max value is missing, the first value in the array will be used. | |||
|| '''max[0]''' (Array Type) | |||
|- | |||
| '''value''' || ''Array<Number>'' || Value for each axis. || 0 | |||
|- | |||
| ''' | |||
|} | |||
</noinclude><includeonly><div style="width: 100%;"> | |||
<!--{$PI=3.14159265358979323846}--> | |||
<!--{nocache}--> | <!--{nocache}--> | ||
<!--{$step=2*$PI/$dim}--> | <!--{$step=2*$PI/$dim}--> |
Revision as of 07:03, 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 |
---|---|---|---|
dim | Integer | Number of axes | |
label | Array<String> | Label(s) for each axis in sequence | (Empty String) |
max | Array<Number> or Integer |
Max value for each axis.
|
max[0] (Array Type) |
value | Array<Number> | Value for each axis. | 0 |