CSS pie chart
How do I make an css pie chart?
What is a css pie chart? How do you make a css pie chart? This script and codes were developed by Shankar Cabus on 24 June 2022, Friday.
CSS pie chart - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS pie chart</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .color { content: ""; position: absolute; border-radius: 50%; left: calc(50% - 7.5em); top: calc(50% - 7.5em); width: 15em; height: 15em; clip: rect(0, 15em, 15em, 7.5em); background: red;
}
.color:after { content: ""; position: absolute; border-radius: 50%; left: calc(50% - 7.5em); top: calc(50% - 7.5em); width: 15em; height: 15em; clip: rect(0, 7.5em, 15em, 0); background: blue; transform: rotate(45deg);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="color"></div> <script src="js/index.js"></script>
</body>
</html>
CSS pie chart - Script Codes CSS Codes
.color { content: ""; position: absolute; border-radius: 50%; left: calc(50% - 7.5em); top: calc(50% - 7.5em); width: 15em; height: 15em; clip: rect(0, 15em, 15em, 7.5em); background: red;
}
.color:after { content: ""; position: absolute; border-radius: 50%; left: calc(50% - 7.5em); top: calc(50% - 7.5em); width: 15em; height: 15em; clip: rect(0, 7.5em, 15em, 0); background: blue; transform: rotate(45deg);
}
CSS pie chart - Script Codes JS Codes
/* See more in http://css-tricks.com/conical-gradients-css/
*/
Developer | Shankar Cabus |
Username | shankarcabus |
Uploaded | June 24, 2022 |
Rating | 3 |
Size | 2,335 Kb |
Views | 56,672 |
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!
Name | Size |
Vertical align | 1,952 Kb |
Conical gradient in pure CSS | 3,548 Kb |
Flat Progress Bar CSS e HTML | 3,296 Kb |
Super Mario CSS | 8,335 Kb |
Transformers Cube with device orientation | 2,616 Kb |
Front in Aracaju Logo Pure CSS | 2,581 Kb |
Guest Post on CSS-Tricks | 6,425 Kb |
Color Picker in Pure CSS | 5,072 Kb |
MacOS Beach Ball in Pure CSS | 4,268 Kb |
Single element heart | 2,602 Kb |
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!
Name | Username | Size |
FreeCodeCamp - Simon Game | Ivhed | 8,481 Kb |
CSS3 Form Page Design | Rssatnam | 3,613 Kb |
Blank Starter | Mhartington | 2,171 Kb |
CSS 3D Radio buttons | Andreasnylin | 1,650 Kb |
A Pen by Oliver Schafeld | Schafeld | 1,720 Kb |
Fellowship of the Ring | Aussieyang | 2,639 Kb |
Project Euler Problem 17 | Bfillmer | 2,739 Kb |
Haml Calendar | Katydecorah | 5,643 Kb |
Animated Donut Chart | Jplhomer | 3,808 Kb |
Exploring css spinners | Akagr | 3,569 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!