Diziler 3
by Erdinç Uzun
HTML
<svg id="svg03" width="600" height="200">
</svg>
JavaScript
var temp;
temp += '<text x="35" y="20">Adresler:</text>';
temp += '<text x="35" y="60">Veriler:</text>';
for (i = 0; i < 10; i++) {
x1 = 100+i*50;
x2 = 116+i*50;
temp += '<rect x="'+x1+'" y="30" width="50" height="50" style="fill:rgb(255,255,255);stroke-width:1;stroke:rgb(0,0,0)"></rect>';
temp += '<text x="'+x2+'" y="20">'+i+'</text>';
}
temp += '<text x="50" y="105">34%10=4</text>';
temp += '<text x="50" y="120">61%10=1</text>';
temp += '<text x="50" y="135">23%10=3</text>';
temp += '<text x="50" y="150">59%10=9</text>';
temp += '<text x="50" y="165">18%10=8</text>';
temp += '<text x="315" y="60">34</text>';
temp += '<text x="165" y="60">61</text>';
temp += '<text x="265" y="60">23</text>';
temp += '<text x="565" y="60">59</text>';
temp += '<text x="515" y="60">18</text>';
$("#svg03").html(temp);