Widget:Radar: Difference between revisions
From Elwiki
mNo edit summary |
mNo edit summary |
||
Line 9: | Line 9: | ||
<!--{append var="xs" value=$x index=$i}--> | <!--{append var="xs" value=$x index=$i}--> | ||
<!--{append var="ys" value=$y index=$i}--> | <!--{append var="ys" value=$y index=$i}--> | ||
<!--{ | <!--{math equation="min(xs)-100" xs=$xs assign="xmin"}--> | ||
<!--{ | <!--{math equation="max(xs)+100" xs=$xs assign="xmax"}--> | ||
<!--{ | <!--{math equation="min(ys)-50" ys=$ys assign="ymin"}--> | ||
<!--{ | <!--{math equation="max(ys)+30" ys=$ys assign="ymax"}--> | ||
<!--{$dx=$ | <!--{$dx=$xmax-$xmin}--> | ||
<!--{$dy=$ | <!--{$dy=$ymax-$ymin}--> | ||
<!--{/for}--> | <!--{/for}--> | ||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="600" height="600" viewBox="<!--{$ | <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="600" height="600" viewBox="<!--{$xmin}--> <!--{$ymin}--> <!--{$dx}--> <!--{$dy}-->"> | ||
<polygon stroke="#ccc" fill="#eee" points=" | <polygon stroke="#ccc" fill="#eee" points=" |
Revision as of 06:09, 29 May 2020
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="600" height="600" viewBox=" "> <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>
<text transform="translate()" fill="#000" text-anchor="middle"></text> <polygon stroke-width="0" fill="7f" points=" "></polygon> </svg>