Widget:Radar: Difference between revisions

From Elwiki
mNo edit summary
mNo edit summary
Line 26: Line 26:
             <!--{/for}-->
             <!--{/for}-->
         "></polygon>
         "></polygon>
         <polygon stroke="#999" fill="transparent" points="
         <polygon stroke="#ccc" fill="transparent" points="
             <!--{for $i=1 to $dim}-->
             <!--{for $i=1 to $dim}-->
             <!--{($xs[$i]*50)|cat:','|cat:($ys[$i]*50)}-->
             <!--{($xs[$i]*50)|cat:','|cat:($ys[$i]*50)}-->
             <!--{/for}-->
             <!--{/for}-->
         "></polygon>
         "></polygon>
        <!--{for $i=1 to $dim}-->
        <line x1="0" y1="0" x2="<!--{$xs[$i]*200}-->" y2="<!--{$ys[$i]*200}-->" stroke="#000">
        <!--{/for}-->
         <!--{/nocache}-->
         <!--{/nocache}-->
     </svg>
     </svg>
</div>
</div>

Revision as of 04:01, 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="#999" fill="transparent" points="
       "></polygon>
       <polygon stroke="#ccc" fill="transparent" points="
       "></polygon>
       <polygon stroke="#ccc" fill="transparent" points="
       "></polygon>
       <polygon stroke="#ccc" fill="transparent" points="
       "></polygon>
       <line x1="0" y1="0" x2="" y2="" stroke="#000">
   </svg>