Widget:Radar: Difference between revisions

From Elwiki
mNo edit summary
mNo edit summary
Line 10: Line 10:
         <!--{append var="ys" value=$y index=$i}-->
         <!--{append var="ys" value=$y index=$i}-->
     <!--{/for}-->
     <!--{/for}-->
    <!--{math equation="min(xs)-100" xs=$xs assign="xmin"}-->
     <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="600" height="600" viewBox="-300 -300 600 600">
    <!--{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=$xmax-$xmin}-->
    <!--{$dy=$ymax-$ymin}-->
     <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:14, 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>
       <text transform="translate()" fill="#000" text-anchor="middle"></text>
       <polygon stroke-width="0" fill="7f" points="
       "></polygon>
   </svg>