Widget:Radar: Difference between revisions
From Elwiki
mNo edit summary |
mNo edit summary |
||
Line 93: | Line 93: | ||
<line x1="0" y1="0" x2="<!--{$xs[$i]*200}-->" y2="<!--{$ys[$i]*200}-->" stroke="#ccc"></line> | <line x1="0" y1="0" x2="<!--{$xs[$i]*200}-->" y2="<!--{$ys[$i]*200}-->" stroke="#ccc"></line> | ||
<text | <text | ||
transform=" | transform=" | ||
translate(0,<!--{$fontcorrection/2}-->) | translate(0,<!--{$fontcorrection/2}-->) | ||
Line 102: | Line 102: | ||
font-size="<!--{$fontcorrection}-->" | font-size="<!--{$fontcorrection}-->" | ||
font-family="<!--{$fontfamily|default:'Microsoft YaHei'}-->"> | font-family="<!--{$fontfamily|default:'Microsoft YaHei'}-->"> | ||
<!--{ | <!--{$label[$i-1]|default:''|escape:'html'}--> | ||
</text> | </text> | ||
<!--{/for}--> | <!--{/for}--> |
Revision as of 09:17, 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 | 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 |