Widget:Radar: Difference between revisions
From Elwiki
mNo edit summary |
mNo edit summary |
||
Line 40: | Line 40: | ||
<!--{/for}--> | <!--{/for}--> | ||
<polygon stroke-width="0" fill="<!--{$color}-->7f" points=" | <polygon stroke-width="0" fill="<!--{$color}-->7f" points=" | ||
<!--{ | <!--{for $i=1 to $dim}--> | ||
<!--{$denom=$max[$i]|default:$max}--> | <!--{$denom=$max[$i-1]|default:$max}--> | ||
<!--{$numer=$ | <!--{$numer=$value[$i-1]|default:0}--> | ||
<!--{$ratio=$numer/$denom}--> | <!--{$ratio=$numer/$denom}--> | ||
<!--{(200*$ratio*$xs[$i])|cat:','|cat:(200*$ratio*$ys[$i])}--> | |||
<!--{(200*$ratio*$xs[$i | <!--{/for}--> | ||
<!--{/ | |||
"></polygon> | "></polygon> | ||
<!--{/nocache}--> | <!--{/nocache}--> | ||
</svg> | </svg> | ||
</div> | </div> |
Revision as of 05:24, 29 May 2020
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="600" height="600" viewBox="-300 -300 600 600"> <polygon stroke="#ccc" fill="#eee" points=" "></polygon> <polygon stroke="#ccc" fill="#fff" points=" "></polygon> <polygon stroke="#ccc" fill="#eee" points=" "></polygon> <polygon stroke="#ccc" fill="#fff" points=" "></polygon> <polygon stroke="#ccc" fill="#eee" points=" "></polygon> <line x1="0" y1="0" x2="" y2="" stroke="#ccc"></line> <polygon stroke-width="0" fill="7f" points=" "></polygon> </svg>