Widget:Radar: Difference between revisions

From Elwiki
mNo edit summary
mNo edit summary
Line 11: Line 11:
             <!--{append var="ys" value=$y index=$i}-->
             <!--{append var="ys" value=$y index=$i}-->
         <!--{/for}-->
         <!--{/for}-->
         <polygon stroke="#999" fill="#fff" points="
         <polygon stroke="#999" fill="#eee" points="
             <!--{for $i=1 to $dim}-->
             <!--{for $i=1 to $dim}-->
             <!--{($xs[$i]*200)|cat:','|cat:($ys[$i]*200)}-->
             <!--{($xs[$i]*200)|cat:','|cat:($ys[$i]*200)}-->
             <!--{/for}-->
             <!--{/for}-->
         "></polygon>
         "></polygon>
         <polygon stroke="#ccc" fill="#eee" points="
         <polygon stroke="#ccc" fill="#fff" points="
             <!--{for $i=1 to $dim}-->
             <!--{for $i=1 to $dim}-->
             <!--{($xs[$i]*150)|cat:','|cat:($ys[$i]*150)}-->
             <!--{($xs[$i]*150)|cat:','|cat:($ys[$i]*150)}-->
             <!--{/for}-->
             <!--{/for}-->
         "></polygon>
         "></polygon>
         <polygon stroke="#ccc" fill="#fff" points="
         <polygon stroke="#ccc" fill="#eee" points="
             <!--{for $i=1 to $dim}-->
             <!--{for $i=1 to $dim}-->
             <!--{($xs[$i]*100)|cat:','|cat:($ys[$i]*100)}-->
             <!--{($xs[$i]*100)|cat:','|cat:($ys[$i]*100)}-->
             <!--{/for}-->
             <!--{/for}-->
         "></polygon>
         "></polygon>
         <polygon stroke="#ccc" fill="#eee" points="
         <polygon stroke="#ccc" fill="#fff" 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)}-->

Revision as of 04:21, 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="#eee" points="
       "></polygon>
       <polygon stroke="#ccc" fill="#fff" points="
       "></polygon>
       <polygon stroke="#ccc" fill="#eee" points="
       "></polygon>
       <polygon stroke="#ccc" fill="#fff" points="
       "></polygon>
       <line x1="0" y1="0" x2="" y2="" stroke="#999" stroke-width="2"></line>
   </svg>