Widget:Radar: Difference between revisions
From Elwiki
mNo edit summary |
mNo edit summary |
||
Line 30: | Line 30: | ||
|} | |} | ||
</noinclude><includeonly><div style="width: <!--{$size|default:'100%'}-->"> | </noinclude><includeonly><div style="width: <!--{$size|default:'100%'}-->"> | ||
<!--{strip}--> | |||
<!--{$PI=3.14159265358979323846}--> | <!--{$PI=3.14159265358979323846}--> | ||
<!--{nocache}--> | <!--{nocache}--> | ||
Line 66: | Line 67: | ||
<polygon stroke="#ccc" fill="#eee" points=" | <polygon stroke="#ccc" fill="#eee" points=" | ||
<!--{for $i=1 to $dim}--> | <!--{for $i=1 to $dim}--> | ||
<!--{($xs[$i]*200)|cat:','|cat:($ys[$i]*200)}--> | <!--{($xs[$i]*200)|cat:','|cat:($ys[$i]*200)|cat:' '}--> | ||
<!--{/for}--> | <!--{/for}--> | ||
"></polygon> | "></polygon> | ||
Line 114: | Line 115: | ||
</svg> | </svg> | ||
<!--{/nocache}--> | <!--{/nocache}--> | ||
<!--{/strip}--> | |||
</div></includeonly> | </div></includeonly> |
Revision as of 09:33, 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 | String | Size of the chart, use CSS notation | (Depends on parent container) |
dim | Integer | Number of axes | |
fontfamily | String | Name of font(s) | Microsoft YaHei |
fontsize | Number | Font size | 24 |
color | HexColor (#RRGGBB format only) | The color for the radar area | |
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 |