Widget:Radar: Difference between revisions
From Elwiki
mNo edit summary |
mNo edit summary |
||
Line 65: | Line 65: | ||
<polygon stroke-width="0" fill="<!--{$color}-->7f" points=" | <polygon stroke-width="0" fill="<!--{$color}-->7f" points=" | ||
<!--{for $i=1 to $dim}--> | <!--{for $i=1 to $dim}--> | ||
<!--{$denom=$max[$i-1]|default:$max}--> | <!--{$denom=$max[$i-1]|default:$max[0]|default:$max}--> | ||
<!--{$numer=$value[$i-1]|default:0}--> | <!--{$numer=$value[$i-1]|default:0}--> | ||
<!--{$ratio=$numer/$denom}--> | <!--{$ratio=$numer/$denom}--> |
Revision as of 06:36, 29 May 2020
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="600" height="600" viewBox=" " style="width: 100%"> <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>