Difference between revisions of "PieChart"

From Sega Retro

(Created page with "<includeonly>{{#vardefine:opp|200}} {{#vardefine:hyp|{{#expr:{{#var:opp}}/sin({{Deg2Rad|70}})}}}} {{#vardefine:adj|{{#expr:sqrt(({{#var:hyp}}^2) - ({{#var:opp}}^2))}}}} {{#va...")
 
Line 4: Line 4:
  
 
{{#vardefine:diameter|400}}
 
{{#vardefine:diameter|400}}
<div style="width:{{#var:diameter}}px; height:{{#var:diameter}}px; background-color:#FF0000;">
 
 
<div style="width:{{#var:diameter}}px; height:{{#var:diameter}}px; background-color:#FFFF00; border: 2px solid #000000; border-radius:{{#var:diameter}}px; overflow: hidden;">
 
<div style="width:{{#var:diameter}}px; height:{{#var:diameter}}px; background-color:#FFFF00; border: 2px solid #000000; border-radius:{{#var:diameter}}px; overflow: hidden;">
 
<div style="width:200px; height:200px; background-color:#FF00FF; border:0px; transform: skew(20deg); position:relative; top: 200px; left:{{#expr:200+({{#var:adj}}/2)}}px;"> </div>
 
<div style="width:200px; height:200px; background-color:#FF00FF; border:0px; transform: skew(20deg); position:relative; top: 200px; left:{{#expr:200+({{#var:adj}}/2)}}px;"> </div>
 
</div>
 
</div>
</div>
 
 
  
 
</includeonly><noinclude>I was wondering if you could make a pie chart from CSS alone. Turns out [https://www.mediawiki.org/wiki/Template:Pie_chart you can].
 
</includeonly><noinclude>I was wondering if you could make a pie chart from CSS alone. Turns out [https://www.mediawiki.org/wiki/Template:Pie_chart you can].

Revision as of 10:51, 9 March 2022

I was wondering if you could make a pie chart from CSS alone. Turns out you can.

So let's have a go. Mine will be slightly different because I don't like the idea of using an image. Also it might not work. -Black Squirrel (talk) 10:45, 9 March 2022 (EST)