Widget:Radar: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 34: Line 34:
         <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>
         <!--{/for}-->
         <!--{/for}-->
        <polygon stroke="#ccc" fill="#fff" points="
            <!--{foreach $value as $i => $val}-->
            <!--{$denom=$max[$i]|default:$max}-->
            <!--{$ratio=$val/$denom}-->
            <!--{($xs[$i]*200*$ratio)|cat:','|cat:($ys[$i]*200*$ratio)}-->
            <!--{/foreach}-->
        "></polygon>
         <!--{/nocache}-->
         <!--{/nocache}-->
     </svg>
     </svg>
</div>
</div>