Widget:Radar: Difference between revisions

From Elwiki
mNo edit summary
mNo edit summary
Line 39: Line 39:
         <line x1="0" y1="0" x2="<!--{$xs[$i]*200}-->" y2="<!--{$ys[$i]*200}-->" stroke="#ccc"></line>
         <line x1="0" y1="0" x2="<!--{$xs[$i]*200}-->" y2="<!--{$ys[$i]*200}-->" stroke="#ccc"></line>


         <text transform="translate(<!--{($xs[$i]*230)|cat:','|cat:($ys[$i]*230)}-->)" fill="#000"><!--{$label[$i-1]|default:''|escape:'html'}--></text>
         <text transform="translate(<!--{($xs[$i]*230)|cat:','|cat:($ys[$i]*230)}-->)" fill="#000" text-anchor="middle"><!--{$label[$i-1]|default:''|escape:'html'}--></text>
         <!--{/for}-->
         <!--{/for}-->
         <polygon stroke-width="0" fill="<!--{$color}-->7f" points="
         <polygon stroke-width="0" fill="<!--{$color}-->7f" points="

Revision as of 05:59, 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>