CSS pie graphs

Size
1,722 Kb
Views
6,072

How do I make an css pie graphs?

What is a css pie graphs? How do you make a css pie graphs? This script and codes were developed by Rico Sta. Cruz on 19 January 2023, Thursday.

CSS pie graphs Previews

CSS pie graphs - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS pie graphs</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <span class='item-bullet -p1'></span>
<span class='item-bullet -p2'></span>
<span class='item-bullet -p3'></span>
<span class='item-bullet -p4'></span>
<span class='item-bullet -p5'></span>
<span class='item-bullet -p6'></span>
<span class='item-bullet -p7'></span>
<span class='item-bullet -p8'></span>
<span class='item-bullet -p9'></span>
<span class='item-bullet -p10'></span>
<span class='item-bullet -p11'></span>
<span class='item-bullet -p12'></span>
</body>
</html>

CSS pie graphs - Script Codes CSS Codes

.item-bullet { display: inline-block; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(to right, #ECEFF1 50%, #4CAF50 50%); overflow: hidden; position: relative;
}
.item-bullet::before { content: ''; display: block; width: 50%; height: 100%; background: #ECEFF1; position: absolute; top: 0%; left: 50%; transform-origin: 0 50%; transform: rotate(0deg);
}
.item-bullet.-p7::before,
.item-bullet.-p8::before,
.item-bullet.-p9::before,
.item-bullet.-p10::before,
.item-bullet.-p11::before,
.item-bullet.-p12::before { background: #4CAF50;
}
.item-bullet.-p1::before { transform: rotate(30deg); }
.item-bullet.-p2::before { transform: rotate(60deg); }
.item-bullet.-p3::before { transform: rotate(90deg); }
.item-bullet.-p4::before { transform: rotate(120deg); }
.item-bullet.-p5::before { transform: rotate(150deg); }
.item-bullet.-p6::before { display: none; }
.item-bullet.-p7::before { transform: rotate(30deg); }
.item-bullet.-p8::before { transform: rotate(60deg); }
.item-bullet.-p9::before { transform: rotate(90deg); }
.item-bullet.-p10::before { transform: rotate(120deg); }
.item-bullet.-p11::before { transform: rotate(150deg); }
.item-bullet.-p12::before { transform: rotate(180deg); }
CSS pie graphs - Script Codes
CSS pie graphs - Script Codes
Home Page Home
Developer Rico Sta. Cruz
Username rstacruz
Uploaded January 19, 2023
Rating 3
Size 1,722 Kb
Views 6,072
Do you need developer help for CSS pie graphs?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Rico Sta. Cruz (rstacruz) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!